GoogleCloudPlatform / golang-samples
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system47% (27,736 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
go48% (26,926 lines)
yaml42% (500 lines)
html45% (192 lines)
proto43% (94 lines)
avsc82% (24 lines)
Duplication per Component (primary)
spanner48% (3,126 lines)
pubsub98% (2,841 lines)
dlp57% (2,708 lines)
compute51% (2,367 lines)
securitycenter71% (1,406 lines)
bigquery41% (1,375 lines)
media49% (1,042 lines)
cloudsql79% (989 lines)
storage46% (972 lines)
secretmanager75% (899 lines)
appengine_flexible90% (808 lines)
batch71% (778 lines)
jobs54% (640 lines)
vertexai52% (606 lines)
functions36% (593 lines)
vision54% (565 lines)
speech70% (533 lines)
videointelligence88% (492 lines)
parametermanager70% (464 lines)
healthcare36% (414 lines)
genai53% (371 lines)
kms42% (351 lines)
asset49% (285 lines)
endpoints39% (282 lines)
storagetransfer55% (253 lines)
translate50% (248 lines)
firestore23% (224 lines)
run15% (190 lines)
monitoring19% (155 lines)
bigtable14% (129 lines)
pubsublite22% (114 lines)
modelarmor52% (113 lines)
language47% (105 lines)
automl23% (104 lines)
managedkafka32% (91 lines)
aiplatform37% (89 lines)
auth27% (88 lines)
getting-started6% (87 lines)
servicedirectory44% (80 lines)
container_registry26% (72 lines)
texttospeech38% (70 lines)
internal5% (69 lines)
iam12% (59 lines)
dataproc24% (58 lines)
appengine23% (57 lines)
datastore15% (51 lines)
privateca16% (48 lines)
tasks65% (42 lines)
workflows41% (38 lines)
eventarc28% (38 lines)
datacatalog10% (32 lines)
dialogflow14% (30 lines)
logging11% (28 lines)
cdn22% (20 lines)
mediacdn32% (14 lines)
trace38% (14 lines)
profiler2% (13 lines)
memorystore5% (6 lines)
documentai0% (0 lines)
errorreporting0% (0 lines)
ROOT0% (0 lines)
testing0% (0 lines)
dataflow0% (0 lines)
opentelemetry0% (0 lines)
container0% (0 lines)
routeoptimization0% (0 lines)
iap0% (0 lines)

Duplication Between Components (50+ lines)

G dlp dlp media media dlp--media 114 functions functions run run functions--run 112 compute compute compute--dlp 102 container_registry container_registry container_registry--dlp 102 datacatalog datacatalog datacatalog--dlp 96 bigquery bigquery bigquery--dlp 96 internal internal bigquery--internal 50 aiplatform aiplatform vertexai vertexai aiplatform--vertexai 93 appengine_flexible appengine_flexible appengine_flexible--run 58 eventarc eventarc appengine_flexible--eventarc 70 getting-started getting-started appengine_flexible--getting-started 57 eventarc--run 64 eventarc--getting-started 51 auth auth language language auth--language 66 endpoints endpoints endpoints--run 59 videointelligence videointelligence vision vision videointelligence--vision 54

Download: SVG DOT (open online Graphviz editor)

Open 2D force graph... Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 10,571 duplicates...
Size#FoldersFilesLinesCode
119 x 2 cloudsql/mysql/database-sql
cloudsql/postgres/database-sql
54:263 (52%)
54:263 (52%)
view
118 x 2 endpoints/getting-started
endpoints/getting-started
29:162 (90%)
31:164 (90%)
view
93 x 2 cloudsql/mysql/database-sql
cloudsql/postgres/database-sql
268:368 (40%)
268:368 (40%)
view
92 x 2 appengine_flexible/go115_and_earlier/pubsub
appengine_flexible/pubsub
31:168 (100%)
31:168 (100%)
view
92 x 2 cloudsql/postgres/database-sql
cloudsql/sqlserver/database-sql
271:368 (40%)
259:356 (42%)
view
92 x 2 cloudsql/mysql/database-sql
cloudsql/sqlserver/database-sql
271:368 (40%)
259:356 (42%)
view
72 x 2 appengine_flexible/go115...rlier/websockets/static
appengine_flexible/websockets/static
16:101 (100%)
16:101 (100%)
view
66 x 2 compute/instances/custom-machine-type
compute/instances/custom-machine-type
29:116 (43%)
29:116 (44%)
view
65 x 2 media/livestream
media/livestream
51:125 (83%)
63:137 (75%)
view
58 x 2 pubsub/schemas
pubsub/v1samples/schemas
30:111 (100%)
30:111 (100%)
view
56 x 2 dlp/snippets/inspect
dlp/snippets/inspect
41:120 (48%)
41:120 (50%)
view
54 x 2 cloudsql/postgres/database-sql
cloudsql/sqlserver/database-sql
64:146 (23%)
68:149 (24%)
view
54 x 2 cloudsql/mysql/database-sql
cloudsql/sqlserver/database-sql
64:146 (23%)
68:149 (24%)
view
52 x 2 functions/functionsv2/ocr/app
functions/ocr/app
31:98 (92%)
31:98 (94%)
view
51 x 2 dlp/snippets/inspect
dlp/snippets/inspect
129:198 (44%)
129:198 (43%)
view
51 x 2 media/transcoder
media/transcoder
48:103 (73%)
45:100 (77%)
view
50 x 2 appengine_flexible/go115_and_earlier/storage
appengine_flexible/storage
33:105 (100%)
33:105 (100%)
view
47 x 2 pubsub/topics
pubsub/v1samples/topics
29:99 (100%)
29:99 (100%)
view
46 x 2 dlp/snippets/inspect
dlp/snippets/inspect
42:105 (40%)
41:103 (39%)
view
46 x 2 media/transcoder
media/transcoder
39:90 (47%)
39:90 (54%)
view
46 x 2 dlp/snippets/inspect
dlp/snippets/inspect
42:105 (40%)
41:103 (41%)
view
46 x 2 media/transcoder
media/transcoder
37:88 (64%)
34:85 (64%)
view
45 x 2 appengine_flexible/datastore
appengine_flexible/go115_and_earlier/datastore
32:105 (100%)
32:105 (100%)
view
44 x 2 pubsub/schemas
pubsub/v1samples/schemas
30:86 (100%)
30:86 (100%)
view
43 x 2 cloudsql/postgres/database-sql
cloudsql/sqlserver/database-sql
177:263 (18%)
165:251 (19%)
view
43 x 2 cloudsql/mysql/database-sql
cloudsql/sqlserver/database-sql
177:263 (18%)
165:251 (19%)
view
43 x 2 functions/imagemagick
run/image-processing/imagemagick
35:115 (100%)
35:115 (100%)
view
42 x 2 media/transcoder
media/transcoder
39:85 (43%)
37:83 (59%)
view
42 x 2 speech/snippets
speech/snippets
70:123 (59%)
77:130 (53%)
view
42 x 2 media/transcoder
media/transcoder
34:80 (59%)
39:85 (50%)
view
42 x 2 media/transcoder
media/transcoder
39:85 (43%)
34:80 (59%)
view
42 x 2 media/transcoder
media/transcoder
37:83 (59%)
39:85 (50%)
view
41 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
34:95 (100%)
34:95 (100%)
view
40 x 2 videointelligence/annotate
videointelligence/annotate
54:125 (75%)
48:119 (80%)
view
39 x 2 dlp/snippets/risk
dlp/snippets/risk
88:138 (46%)
88:138 (47%)
view
39 x 2 spanner/spanner_snippets
spanner/spanner_snippets/spanner
641:696 (6%)
37:92 (84%)
view
39 x 2 dlp/snippets/inspect
dlp/snippets/inspect
129:182 (33%)
125:178 (35%)
view
39 x 2 dlp/snippets/inspect
dlp/snippets/inspect
129:182 (34%)
125:178 (35%)
view
38 x 2 dlp/snippets/deid
dlp/snippets/deid
32:86 (42%)
31:85 (52%)
view
38 x 2 dlp/snippets/deid
dlp/snippets/deid
31:85 (46%)
32:86 (42%)
view
38 x 2 dlp/snippets/deid
dlp/snippets/deid
31:85 (46%)
31:85 (52%)
view
38 x 2 appengine_flexible/analytics
appengine_flexible/go115_and_earlier/analytics
34:101 (100%)
34:101 (100%)
view
38 x 2 compute/instances/custom-machine-type
compute/instances/custom-machine-type
124:184 (25%)
123:183 (25%)
view
37 x 2 functions/functionsv2/ocr/app
functions/ocr/app
51:104 (84%)
55:108 (75%)
view
37 x 2 pubsub/schemas
pubsub/v1samples/schemas
28:80 (100%)
28:80 (100%)
view
37 x 2 spanner/spanner_snippets
spanner/spanner_snippets/spanner
436:489 (6%)
37:90 (84%)
view
36 x 2 pubsub/topics
pubsub/v1samples/topics
35:84 (100%)
35:84 (100%)
view
36 x 2 vertexai/batch-predict
vertexai/batch-predict
44:89 (83%)
47:92 (80%)
view
36 x 2 dlp/snippets/risk
dlp/snippets/risk
96:143 (41%)
106:154 (37%)
view
36 x 2 dlp/snippets/risk
dlp/snippets/risk
106:154 (37%)
101:147 (38%)
view
Duplicated Units
The list of top 50 duplicated units.
See data for all 137 unit duplicates...
Size#FoldersFilesLinesCode
65 x 2 pubsub/v1samples/schemas
pubsub/schemas
30:112 
30:112 
view
55 x 2 pubsub/topics
pubsub/v1samples/topics
29:100 
29:100 
view
49 x 2 pubsub/v1samples/schemas
pubsub/schemas
30:87 
30:87 
view
46 x 2 compute/instances/custom-machine-type
compute/instances/custom-machine-type
30:92 
30:92 
view
44 x 2 pubsub/v1samples/schemas
pubsub/schemas
28:81 
28:81 
view
43 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
34:96 
34:96 
view
39 x 2 pubsub/v1samples/schemas
pubsub/schemas
29:76 
29:76 
view
38 x 2 pubsub/topics
pubsub/v1samples/topics
35:85 
35:85 
view
37 x 2 pubsub/topics
pubsub/v1samples/topics
30:76 
30:76 
view
37 x 2 pubsub/v1samples/schemas
pubsub/schemas
31:77 
31:77 
view
36 x 2 pubsub/topics
pubsub/v1samples/topics
29:77 
29:77 
view
36 x 2 securitycenter/findings
securitycenter/findingsv2
33:77 
33:77 
view
36 x 2 cloudsql/mysql/database-sql
cloudsql/postgres/database-sql
136:182 
136:182 
view
35 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
33:85 
33:85 
view
34 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
32:81 
32:81 
view
34 x 2 spanner/spanner_snippets/spanner
spanner/spanner_snippets/spanner
29:65 
29:65 
view
34 x 2 jobs/v3/howto
jobs/v3/howto
51:100 
29:77 
view
32 x 2 pubsub/topics
pubsub/v1samples/topics
28:66 
28:66 
view
31 x 2 appengine_flexible/pubsub
appengine_flexible/go115_and_earlier/pubsub
44:83 
44:83 
view
31 x 2 functions/functionsv2/ocr/app
functions/ocr/app
68:105 
72:109 
view
30 x 2 pubsub/topics
pubsub/v1samples/topics
29:70 
29:70 
view
30 x 2 securitycenter/notificationsv2
securitycenter/notifications
28:72 
28:72 
view
29 x 2 vertexai/gemma2
vertexai/gemma2
29:76 
29:75 
view
28 x 2 pubsub/topics
pubsub/v1samples/topics
27:65 
27:65 
view
27 x 2 securitycenter/findings
securitycenter/findingsv2
32:68 
32:68 
view
27 x 4 genai/text_generation
genai/text_generation
genai/text_generation
genai/text_generation
28:66 
28:65 
28:64 
28:67 
view
26 x 2 pubsub/topics
pubsub/v1samples/topics
26:57 
26:57 
view
26 x 2 pubsub/topics
pubsub/v1samples/topics
26:58 
26:58 
view
26 x 2 appengine_flexible/go115_and_earlier/analytics
appengine_flexible/analytics
63:102 
63:102 
view
25 x 2 securitycenter/findings
securitycenter/findingsv2
31:65 
31:65 
view
25 x 2 securitycenter/findings
securitycenter/findingsv2
31:68 
31:68 
view
25 x 2 securitycenter/notificationsv2
securitycenter/notifications
27:65 
27:65 
view
25 x 2 appengine_flexible/go115_and_earlier/storage
appengine_flexible/storage
55:87 
55:87 
view
24 x 2 spanner/spanner_snippets/spanner
spanner/spanner_snippets/spanner
30:58 
30:58 
view
24 x 2 securitycenter/findings
securitycenter/findingsv2
30:63 
30:63 
view
24 x 2 securitycenter/findings
securitycenter/findingsv2
32:68 
32:68 
view
24 x 2 securitycenter/assets
securitycenter/securitymarksv2
30:66 
30:66 
view
24 x 2 securitycenter/assets
securitycenter/securitymarksv2
31:67 
31:67 
view
24 x 2 securitycenter/muteconfig
securitycenter/muteconfigv2
31:71 
31:71 
view
23 x 2 datastore/snippets
datastore/snippets
30:58 
30:58 
view
23 x 2 securitycenter/findings
securitycenter/findingsv2
30:61 
30:61 
view
23 x 2 securitycenter/findings
securitycenter/findingsv2
31:61 
31:61 
view
23 x 2 securitycenter/assets
securitycenter/securitymarksv2
30:64 
30:64 
view
23 x 2 parametermanager/regional_samples
parametermanager/regional_samples
38:69 
38:69 
view
23 x 2 cloudsql/mysql/database-sql
cloudsql/postgres/database-sql
247:276 
247:276 
view
22 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
28:58 
28:58 
view
22 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
28:64 
28:64 
view
22 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
28:58 
28:58 
view
22 x 2 pubsub/subscriptions
pubsub/v1samples/subscriptions
28:70 
28:70 
view
22 x 2 parametermanager
parametermanager
36:67 
36:67 
view