Uber / cadence
Duplication

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

Intro
Learn more...
Duplication Overall
system15% (26,220 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
go12% (20,767 lines)
yaml68% (1,602 lines)
yml83% (1,598 lines)
cql72% (1,089 lines)
sql86% (887 lines)
proto12% (277 lines)
Duplication per Component (primary)
common11% (10,270 lines)
service14% (7,486 lines)
schema77% (1,976 lines)
docker76% (1,794 lines)
tools13% (1,537 lines)
config78% (1,406 lines)
client30% (1,013 lines)
proto12% (277 lines)
host11% (238 lines)
bench5% (95 lines)
canary4% (89 lines)
cmd6% (39 lines)
ROOT0% (0 lines)
internal0% (0 lines)
testflags0% (0 lines)
environment0% (0 lines)

Duplication Between Components (50+ lines)

G common common service service common--service 418 client client client--common 99 config config docker docker config--docker 72

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 4,249 duplicates...
Size#FoldersFilesLinesCode
119 x 2 config
config
1:130 (100%)
1:130 (93%)
view
103 x 2 schema/postgres/cadence
schema/postgres/cadence/versioned/v0.1
127:252 (45%)
107:232 (54%)
view
82 x 2 docker
docker
21:102 (53%)
15:96 (54%)
view
69 x 2 config
config
1:75 (60%)
1:75 (55%)
view
69 x 2 config
config
1:75 (60%)
1:75 (55%)
view
69 x 2 config
config
1:75 (60%)
1:75 (55%)
view
65 x 2 config
config
11:81 (54%)
37:107 (45%)
view
65 x 2 config
config
11:81 (51%)
37:107 (45%)
view
61 x 2 schema/postgres/cadence
schema/postgres/cadence/versioned/v0.1
44:117 (27%)
34:107 (32%)
view
57 x 2 schema/cassandra/cadence
schema/cassandra/cadence/versioned/s0.0-0.23
367:430 (12%)
334:397 (14%)
view
57 x 2 config
config
75:137 (45%)
75:135 (45%)
view
57 x 2 config
config
75:135 (45%)
75:135 (45%)
view
57 x 2 config
config
75:137 (45%)
75:135 (45%)
view
47 x 2 config
config
75:124 (40%)
75:124 (40%)
view
47 x 2 config
config
75:126 (40%)
75:124 (40%)
view
47 x 2 config
config
75:126 (40%)
75:124 (40%)
view
45 x 2 config
config
77:126 (39%)
77:126 (36%)
view
45 x 2 config
config
77:124 (39%)
77:124 (36%)
view
45 x 2 config
config
77:124 (39%)
77:124 (36%)
view
45 x 2 config
config
77:124 (39%)
77:126 (36%)
view
45 x 2 config
config
77:124 (39%)
77:124 (36%)
view
45 x 2 config
config
77:124 (39%)
77:124 (36%)
view
45 x 2 config
config
77:124 (39%)
77:126 (36%)
view
45 x 2 config
config
77:126 (39%)
77:124 (36%)
view
45 x 2 config
config
77:126 (39%)
77:124 (36%)
view
44 x 2 common/persistence/nosql/nosqlplugin/cassandra
common/persistence/nosql/nosqlplugin/cassandra
1190:1233 (3%)
1286:1329 (3%)
view
43 x 2 docker
docker
19:61 (47%)
19:61 (28%)
view
43 x 2 config
config
83:130 (33%)
108:155 (29%)
view
43 x 2 docker
docker
19:61 (47%)
25:67 (28%)
view
43 x 2 config
config
83:130 (36%)
108:155 (29%)
view
41 x 2 tools/sql/clitest
tools/sql/clitest
383:427 (10%)
458:502 (10%)
view
41 x 2 tools/sql/clitest
tools/sql/clitest
232:276 (10%)
308:352 (10%)
view
38 x 2 schema/cassandra/cadence
schema/cassandra/cadence/versioned/s0.0-0.23
440:478 (8%)
1:39 (100%)
view
38 x 2 docker
docker
1:38 (41%)
1:38 (54%)
view
38 x 2 config
config
1:41 (67%)
1:41 (73%)
view
37 x 2 docker
docker
1:37 (40%)
1:37 (41%)
view
35 x 2 docker/buildkite
docker/buildkite
1:39 (46%)
1:39 (46%)
view
35 x 2 tools/sql/clitest
tools/sql/clitest
340:379 (8%)
415:454 (8%)
view
35 x 2 common/archiver/filestore
common/archiver/gcloud
90:140 (20%)
104:154 (22%)
view
34 x 2 config/dynamicconfig
config/dynamicconfig
7:40 (75%)
11:44 (68%)
view
34 x 2 tools/sql/clitest
tools/sql/clitest
264:302 (8%)
490:528 (8%)
view
32 x 2 client/admin
client/history
229:277 (7%)
170:218 (5%)
view
31 x 2 schema/mysql/v8/cadence
schema/mysql/v8/cadence/versioned/v0.1
57:93 (13%)
47:83 (15%)
view
31 x 2 common/persistence/nosql
common/persistence/sql
233:271 (12%)
306:344 (9%)
view
30 x 2 common/archiver/gcloud
common/archiver/s3store
104:148 (19%)
105:149 (20%)
view
30 x 2 common/archiver/filestore
common/archiver/s3store
90:134 (17%)
105:149 (20%)
view
29 x 2 schema/cassandra/cadence/versioned/s0.0-0.23
schema/cassandra/cadence/versioned/v0.23
1:29 (76%)
1:29 (100%)
view
29 x 2 service/frontend/api
service/frontend/api
3011:3055 (1%)
3133:3177 (1%)
view
29 x 2 schema/cassandra/cadence
schema/cassandra/cadence/versioned/v0.23
440:468 (6%)
1:29 (100%)
view
28 x 2 common/archiver/gcloud
common/archiver/s3store
215:254 (18%)
200:240 (19%)
view
Duplicated Units
The list of top 50 duplicated units.
See data for all 137 unit duplicates...
Size#FoldersFilesLinesCode
21 x 2 common/types/mapper/proto
common/types/mapper/proto
2131:2153 
351:373 
view
20 x 2 service/history/queue
service/history/queue
174:200 
184:209 
view
19 x 3 common/archiver/gcloud
common/archiver/filestore
common/archiver/s3store
313:333 
293:313 
357:377 
view
18 x 3 common/archiver/gcloud
common/archiver/filestore
common/archiver/s3store
153:172 
325:344 
247:266 
view
18 x 2 common/persistence/pinot
common/persistence/elasticsearch
253:275 
389:410 
view
13 x 3 common/archiver/gcloud
common/archiver/filestore
common/archiver/s3store
107:122 
93:108 
108:123 
view
13 x 3 common/archiver/gcloud
common/archiver/filestore
common/archiver/s3store
234:248 
228:242 
220:234 
view
12 x 2 common/persistence/nosql/nosqlplugin/dynamodb
common/persistence/nosql/nosqlplugin/mongodb
47:60 
47:60 
view
12 x 2 common/elasticsearch/client/v6
common/elasticsearch/client/v7
144:157 
187:200 
view
11 x 2 common/types/mapper/proto
common/types/mapper/proto
497:509 
460:472 
view
11 x 2 common/types/mapper/proto
common/types/mapper/proto
567:579 
666:678 
view
11 x 2 common/persistence/sql/sqlplugin/postgres
common/persistence/sql/sqlplugin/mysql
85:98 
99:113 
view
10 x 2 common/types/mapper/proto
common/types/mapper/proto
182:193 
78:89 
view
10 x 2 common/types/mapper/proto
common/types/mapper/proto
660:671 
985:996 
view
10 x 2 common/types/mapper/proto
common/types/mapper/thrift
1276:1287 
813:824 
view
10 x 3 common/types/mapper/proto
common/types/mapper/proto
common/types/mapper/thrift
1249:1260 
204:215 
1808:1819 
view
10 x 2 common/persistence/nosql/nosqlplugin/dynamodb
common/persistence/nosql/nosqlplugin/mongodb
34:45 
34:45 
view
9 x 2 common/types/mapper/proto
common/types/mapper/proto
541:551 
598:608 
view
9 x 3 common/types/mapper/proto
common/types/mapper/proto
common/types/mapper/thrift
593:603 
692:702 
446:456 
view
9 x 2 common/types/mapper/proto
common/types/mapper/proto
782:792 
1541:1551 
view
9 x 2 client/matching
client/frontend
120:130 
122:132 
view
9 x 2 client/matching
client/frontend
140:150 
202:212 
view
9 x 2 client/matching
client/frontend
160:170 
322:332 
view
9 x 2 client/matching
client/frontend
180:190 
362:372 
view
9 x 2 client/matching
client/frontend
220:230 
402:412 
view
9 x 2 client/frontend
client/history
142:152 
162:172 
view
9 x 2 client/frontend
client/history
422:432 
419:429 
view
9 x 2 client/frontend
client/history
539:549 
632:642 
view
9 x 2 client/frontend
client/history
771:781 
787:797 
view
9 x 2 client/admin
client/history
161:171 
102:112 
view
9 x 2 client/admin
client/history
181:191 
142:152 
view
9 x 2 client/admin
client/history
241:251 
182:192 
view
9 x 2 client/admin
client/history
261:271 
202:212 
view
9 x 2 client/admin
client/history
381:391 
262:272 
view
9 x 2 client/admin
client/history
461:471 
282:292 
view
9 x 2 client/admin
client/history
500:510 
380:390 
view
9 x 2 client/admin
client/history
615:625 
709:719 
view
8 x 2 common/dynamicconfig/configstore
service/frontend/admin
668:677 
1779:1788 
view
8 x 3 common/types
common/types
common/types
38:47 
572:581 
287:296 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
81:90 
71:80 
view
8 x 2 common/types/mapper/proto
common/types/mapper/proto
206:215 
142:151 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
434:443 
177:186 
view
8 x 2 common/types/mapper/proto
common/types/mapper/proto
713:722 
1060:1069 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
1045:1054 
63:72 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
1091:1100 
109:118 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
1137:1146 
155:164 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
1807:1816 
3170:3179 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
5059:5068 
6806:6815 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
5081:5090 
6710:6719 
view
8 x 2 common/types/mapper/proto
common/types/mapper/thrift
5103:5112 
6926:6935 
view