Duplication Overall
- 32% duplication:
- 19,949 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 6,578 duplicated lines
- 6,078 duplicates
Duplication per Extension
Duplication per Component (primary)
Duplication Between Components (50+ lines)
flowchart TB
n0["ROOT"]
n1["ec2_instance_code"]
n2["entity_source_data"]
n3["kb_datasets"]
n0 ---|"2314"| n1
n2 ---|"910"| n0
n1 ---|"767"| n2
n0 ---|"278"| n3
n1 ---|"232"| n3
n2 ---|"54"| n3
classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
linkStyle 0 stroke:#DC143CFF,stroke-width:10px
linkStyle 1 stroke:#DC143C82,stroke-width:3px
linkStyle 2 stroke:#DC143C82,stroke-width:3px
linkStyle 3 stroke:#DC143C5E,stroke-width:1px
linkStyle 4 stroke:#DC143C5E,stroke-width:1px
linkStyle 5 stroke:#DC143C4C,stroke-width:1px
Download:
Mermaid (.mmd)
(open online Mermaid editor)
2D force graph
|
3D force graph
Show more details on duplication between components...
From Component
--> To Component
Duplicated
Lines
File Pairs
Details
ROOT (10%)
  --> ec2_instance_code (16%)
2314
20 file pairs
details...
entity_source_data (60%)
  --> ROOT (4%)
910
5 file pairs
details...
ec2_instance_code (5%)
  --> entity_source_data (50%)
767
4 file pairs
details...
ROOT (1%)
  --> kb_datasets (27%)
278
5 file pairs
details...
ec2_instance_code (1%)
  --> kb_datasets (22%)
232
4 file pairs
details...
entity_source_data (3%)
  --> kb_datasets (5%)
54
1 file pair
details...
flowchart TB
n0["ROOT"]
n1["ec2_instance_code"]
n2["entity_source_data"]
n3["kb_datasets"]
n0 ---|"2314"| n1
n2 ---|"910"| n0
n1 ---|"767"| n2
n0 ---|"278"| n3
n1 ---|"232"| n3
n2 ---|"54"| n3
classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
linkStyle 0 stroke:#DC143CFF,stroke-width:10px
linkStyle 1 stroke:#DC143C82,stroke-width:3px
linkStyle 2 stroke:#DC143C82,stroke-width:3px
linkStyle 3 stroke:#DC143C5E,stroke-width:1px
linkStyle 4 stroke:#DC143C5E,stroke-width:1px
linkStyle 5 stroke:#DC143C4C,stroke-width:1px
Show more details on duplication between components...
| From Component --> To Component |
Duplicated Lines |
File Pairs | Details |
|---|---|---|---|
| ROOT (10%)   --> ec2_instance_code (16%) |
2314 | 20 file pairs | details... |
| entity_source_data (60%)   --> ROOT (4%) |
910 | 5 file pairs | details... |
| ec2_instance_code (5%)   --> entity_source_data (50%) |
767 | 4 file pairs | details... |
| ROOT (1%)   --> kb_datasets (27%) |
278 | 5 file pairs | details... |
| ec2_instance_code (1%)   --> kb_datasets (22%) |
232 | 4 file pairs | details... |
| entity_source_data (3%)   --> kb_datasets (5%) |
54 | 1 file pair | details... |
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 351 | x 2 | ROOTROOT | 2475:2825 (12%)1108:1458 (24%) | view | |
| 87 | x 2 | ROOTROOT | 713:799 (5%)1250:1336 (5%) | view | |
| 77 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 2555:2631 (2%)2741:2817 (2%) | view | |
| 66 | x 2 | ROOTROOT | 247:312 (2%)638:703 (7%) | view | |
| 50 | x 2 | ROOTROOT | 614:663 (1%)865:914 (3%) | view | |
| 40 | x 2 | ROOTROOT | 1404:1443 (1%)1592:1631 (1%) | view | |
| 37 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 2556:2592 (1%)3499:3535 (1%) | view | |
| 37 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 2742:2778 (1%)3499:3535 (1%) | view | |
| 36 | x 2 | ROOTROOT | 639:674 (<1%)1404:1439 (<1%) | view | |
| 36 | x 2 | ROOTROOT | 639:674 (<1%)1592:1627 (<1%) | view | |
| 36 | x 2 | ROOTROOT | 1916:1951 (<1%)2339:2374 (<1%) | view | |
| 35 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 2972:3006 (<1%)3288:3322 (<1%) | view | |
| 35 | x 2 | ROOTROOT | 1916:1950 (<1%)2052:2086 (<1%) | view | |
| 35 | x 2 | ROOTROOT | 1916:1950 (<1%)2263:2297 (<1%) | view | |
| 35 | x 2 | ROOTROOT | 2052:2086 (<1%)2263:2297 (<1%) | view | |
| 35 | x 2 | ROOTROOT | 2052:2086 (<1%)2339:2373 (<1%) | view | |
| 35 | x 2 | ROOTROOT | 2263:2297 (<1%)2339:2373 (<1%) | view | |
| 35 | x 2 | ROOTROOT | 355:389 (2%)542:576 (2%) | view | |
| 34 | x 2 | ROOTROOT | 2958:2991 (<1%)3162:3195 (<1%) | view | |
| 34 | x 2 | ROOTROOT | 2792:2825 (1%)1575:1608 (2%) | view | |
| 34 | x 2 | ROOTROOT | 1425:1458 (2%)1575:1608 (2%) | view | |
| 32 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 762:793 (2%)940:971 (2%) | view | |
| 32 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 762:793 (2%)1094:1125 (2%) | view | |
| 32 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 940:971 (2%)1094:1125 (2%) | view | |
| 32 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 298:329 (<1%)1612:1643 (<1%) | view | |
| 31 | x 2 | ROOTROOT | 93:123 (3%)317:347 (3%) | view | |
| 31 | x 2 | ROOTROOT | 247:277 (1%)518:548 (2%) | view | |
| 31 | x 2 | ROOTROOT | 518:548 (2%)638:668 (3%) | view | |
| 30 | x 2 | ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03 | 2216:2245 (<1%)2411:2440 (<1%) | view | |
| 30 | x 2 | ROOTROOT | 570:599 (1%)717:746 (1%) | view | |
| 30 | x 2 | ROOTROOT | 570:599 (1%)1254:1283 (1%) | view | |
| 30 | x 2 | ROOTROOT | 331:360 (2%)958:987 (2%) | view | |
| 30 | x 2 | ROOTROOT | 697:726 (1%)331:360 (2%) | view | |
| 30 | x 2 | ROOTROOT | 697:726 (1%)958:987 (2%) | view | |
| 30 | x 2 | ROOTROOT | 3560:3589 (<1%)697:726 (1%) | view | |
| 30 | x 2 | ROOTROOT | 3560:3589 (<1%)331:360 (2%) | view | |
| 30 | x 2 | ROOTROOT | 3560:3589 (<1%)958:987 (2%) | view | |
| 29 | x 2 | ROOTROOT | 639:667 (<1%)1916:1944 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 639:667 (<1%)2052:2080 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 639:667 (<1%)2263:2291 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 639:667 (<1%)2339:2367 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1404:1432 (<1%)1916:1944 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1404:1432 (<1%)2052:2080 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1404:1432 (<1%)2263:2291 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1404:1432 (<1%)2339:2367 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1592:1620 (<1%)1916:1944 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1592:1620 (<1%)2052:2080 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1592:1620 (<1%)2263:2291 (<1%) | view | |
| 29 | x 2 | ROOTROOT | 1592:1620 (<1%)2339:2367 (<1%) | view | |
| 29 | x 2 | src/configssrc/configs | 98:132 (24%)116:150 (22%) | view |
Most Frequent Duplicates
The list of 50 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 70 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 8:13 (<1%)8:13 (<1%)101:106 (<1%)108:113 (<1%)726:731 (<1%)760:765 (<1%)790:795 (<1%)797:802 (<1%)804:809 (<1%)865:870 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03... | 198:203 (<1%)101:106 (<1%)207:212 (<1%)305:310 (<1%)246:251 (<1%)205:210 (1%)255:260 (<1%)350:355 (<1%)165:170 (<1%)306:311 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTec2_instance_code/2022_10_03... | 211:216 (<1%)309:314 (<1%)202:207 (<1%)105:110 (<1%)209:214 (1%)250:255 (<1%)259:264 (<1%)354:359 (<1%)169:174 (<1%)310:315 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOT... | 195:200 (<1%)98:103 (<1%)204:209 (<1%)302:307 (<1%)243:248 (<1%)202:207 (1%)252:257 (<1%)347:352 (<1%)303:308 (<1%)162:167 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03... | 210:215 (<1%)308:313 (<1%)201:206 (<1%)104:109 (<1%)249:254 (<1%)208:213 (1%)258:263 (<1%)353:358 (<1%)168:173 (<1%)309:314 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOT... | 194:199 (<1%)97:102 (<1%)203:208 (<1%)301:306 (<1%)242:247 (<1%)201:206 (1%)251:256 (<1%)346:351 (<1%)302:307 (<1%)161:166 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOT... | 193:198 (<1%)96:101 (<1%)202:207 (<1%)300:305 (<1%)241:246 (<1%)200:205 (1%)250:255 (<1%)345:350 (<1%)301:306 (<1%)160:165 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03... | 197:202 (<1%)100:105 (<1%)206:211 (<1%)304:309 (<1%)245:250 (<1%)204:209 (1%)254:259 (<1%)349:354 (<1%)164:169 (<1%)305:310 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOT... | 192:197 (<1%)95:100 (<1%)201:206 (<1%)299:304 (<1%)240:245 (<1%)199:204 (1%)249:254 (<1%)344:349 (<1%)300:305 (<1%)159:164 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03... | 209:214 (<1%)307:312 (<1%)200:205 (<1%)103:108 (<1%)248:253 (<1%)207:212 (1%)257:262 (<1%)352:357 (<1%)167:172 (<1%)308:313 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTec2_instance_code/2022_10_03... | 214:219 (<1%)312:317 (<1%)205:210 (<1%)108:113 (<1%)212:217 (1%)253:258 (<1%)262:267 (<1%)357:362 (<1%)172:177 (<1%)313:318 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03... | 196:201 (<1%)99:104 (<1%)205:210 (<1%)303:308 (<1%)244:249 (<1%)203:208 (1%)253:258 (<1%)348:353 (<1%)163:168 (<1%)304:309 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03... | 199:204 (<1%)102:107 (<1%)208:213 (<1%)306:311 (<1%)247:252 (<1%)206:211 (1%)256:261 (<1%)351:356 (<1%)166:171 (<1%)307:312 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTec2_instance_code/2022_10_03... | 212:217 (<1%)310:315 (<1%)203:208 (<1%)106:111 (<1%)210:215 (1%)251:256 (<1%)260:265 (<1%)355:360 (<1%)170:175 (<1%)311:316 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTec2_instance_code/2022_10_03... | 215:220 (<1%)313:318 (<1%)206:211 (<1%)109:114 (<1%)213:218 (1%)254:259 (<1%)263:268 (<1%)358:363 (<1%)173:178 (<1%)314:319 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOT... | 191:196 (<1%)94:99 (<1%)200:205 (<1%)298:303 (<1%)239:244 (<1%)198:203 (1%)248:253 (<1%)343:348 (<1%)299:304 (<1%)158:163 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTec2_instance_code/2022_10_03... | 213:218 (<1%)311:316 (<1%)204:209 (<1%)107:112 (<1%)211:216 (1%)252:257 (<1%)261:266 (<1%)356:361 (<1%)171:176 (<1%)312:317 (<1%)... | view | |
| 6 | x 46 | ec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTec2_instance_code/2022_10_03... | 216:221 (<1%)314:319 (<1%)207:212 (<1%)110:115 (<1%)214:219 (1%)255:260 (<1%)264:269 (<1%)359:364 (<1%)174:179 (<1%)315:320 (<1%)... | view | |
| 6 | x 44 | ec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03entity_source_dataROOTec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03ROOT... | 190:195 (<1%)93:98 (<1%)199:204 (<1%)297:302 (<1%)238:243 (<1%)197:202 (1%)247:252 (<1%)342:347 (<1%)298:303 (<1%)157:162 (<1%)... | view | |
| 6 | x 37 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 127:132 (<1%)837:842 (<1%)1137:1142 (<1%)838:843 (<1%)845:850 (<1%)852:857 (<1%)927:932 (<1%)934:939 (<1%)1014:1019 (<1%)2214:2219 (<1%)... | view | |
| 6 | x 35 | ec2_instance_code/2022_10_03ROOTROOTROOTROOTec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTec2_instance_code/2022_10_03... | 314:319 (<1%)255:260 (<1%)348:353 (<1%)275:280 (<1%)628:633 (<1%)380:385 (<1%)293:298 (<1%)791:796 (<1%)353:358 (<1%)681:686 (<1%)... | view | |
| 6 | x 34 | ec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTROOT... | 159:164 (<1%)449:454 (<1%)454:459 (<1%)906:911 (<1%)546:551 (<1%)842:847 (<1%)525:530 (<1%)619:624 (<1%)781:786 (<1%)789:794 (<1%)... | view | |
| 6 | x 34 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 126:131 (<1%)836:841 (<1%)1136:1141 (<1%)837:842 (<1%)926:931 (<1%)1013:1018 (<1%)2213:2218 (<1%)2323:2328 (<1%)2503:2508 (<1%)2539:2544 (<1%)... | view | |
| 6 | x 27 | ROOTec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ec2_instance_code/2022_10_03kb_datasetsROOTROOTec2_instance_code/2022_10_03ROOTec2_instance_code/2022_10_03... | 56:61 (<1%)7:12 (1%)17:22 (<1%)221:226 (<1%)43:48 (1%)33:38 (<1%)661:666 (<1%)320:325 (<1%)423:428 (<1%)400:405 (1%)... | view | |
| 6 | x 25 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 128:133 (<1%)838:843 (<1%)1138:1143 (<1%)853:858 (<1%)1015:1020 (<1%)2505:2510 (<1%)2541:2546 (<1%)2572:2577 (<1%)2588:2593 (<1%)2612:2617 (<1%)... | view | |
| 6 | x 15 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 385:390 (<1%)649:654 (<1%)750:755 (<1%)829:834 (<1%)1008:1013 (<1%)1355:1360 (<1%)545:550 (<1%)628:633 (<1%)635:640 (<1%)642:647 (<1%)... | view | |
| 6 | x 13 | ROOTec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTec2_instance_code/2022_10_03ROOTROOTROOT... | 1806:1811 (<1%)217:222 (<1%)316:321 (<1%)349:354 (<1%)715:720 (<1%)360:365 (<1%)1630:1635 (<1%)588:593 (<1%)735:740 (<1%)1272:1277 (<1%)... | view | |
| 6 | x 13 | ROOTROOTec2_instance_code/2022_10_03ROOTROOTROOTROOTROOTROOTROOT... | 1348:1353 (<1%)526:531 (<1%)2184:2189 (<1%)843:848 (<1%)1548:1553 (<1%)782:787 (<1%)850:855 (<1%)932:937 (<1%)1356:1361 (<1%)1364:1369 (<1%)... | view | |
| 6 | x 12 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 840:845 (<1%)904:909 (<1%)969:974 (<1%)986:991 (<1%)1245:1250 (<1%)1336:1341 (<1%)1545:1550 (<1%)847:852 (<1%)929:934 (<1%)936:941 (<1%)... | view | |
| 6 | x 12 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 841:846 (<1%)905:910 (<1%)970:975 (<1%)987:992 (<1%)1246:1251 (<1%)1337:1342 (<1%)1546:1551 (<1%)848:853 (<1%)930:935 (<1%)937:942 (<1%)... | view | |
| 6 | x 12 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 839:844 (<1%)903:908 (<1%)968:973 (<1%)985:990 (<1%)1244:1249 (<1%)1335:1340 (<1%)1544:1549 (<1%)846:851 (<1%)928:933 (<1%)935:940 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 486:491 (1%)831:836 (<1%)557:562 (1%)735:740 (<1%)1155:1160 (<1%)1465:1470 (<1%)1576:1581 (<1%)1426:1431 (<1%)2793:2798 (<1%)3806:3811 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 487:492 (1%)832:837 (<1%)558:563 (1%)736:741 (<1%)1156:1161 (<1%)1466:1471 (<1%)1577:1582 (<1%)1427:1432 (<1%)2794:2799 (<1%)3807:3812 (<1%)... | view | |
| 6 | x 11 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | 87:92 (<1%)595:600 (<1%)565:570 (<1%)816:821 (<1%)834:839 (<1%)852:857 (<1%)583:588 (<1%)601:606 (<1%)871:876 (<1%)911:916 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 488:493 (1%)833:838 (<1%)559:564 (1%)737:742 (<1%)1157:1162 (<1%)1467:1472 (<1%)1578:1583 (<1%)1428:1433 (<1%)2795:2800 (<1%)3808:3813 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 489:494 (1%)834:839 (<1%)560:565 (1%)738:743 (<1%)1158:1163 (<1%)1468:1473 (<1%)1579:1584 (<1%)1429:1434 (<1%)2796:2801 (<1%)3809:3814 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 494:499 (1%)839:844 (<1%)565:570 (1%)743:748 (<1%)1163:1168 (<1%)1473:1478 (<1%)1584:1589 (<1%)1434:1439 (<1%)2801:2806 (<1%)3814:3819 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 492:497 (1%)837:842 (<1%)563:568 (1%)741:746 (<1%)1161:1166 (<1%)1471:1476 (<1%)1582:1587 (<1%)1432:1437 (<1%)2799:2804 (<1%)3812:3817 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 491:496 (1%)836:841 (<1%)562:567 (1%)740:745 (<1%)1160:1165 (<1%)1470:1475 (<1%)1581:1586 (<1%)1431:1436 (<1%)2798:2803 (<1%)3811:3816 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 498:503 (1%)843:848 (<1%)569:574 (1%)747:752 (<1%)1167:1172 (<1%)1477:1482 (<1%)1588:1593 (<1%)1438:1443 (<1%)2805:2810 (<1%)3818:3823 (<1%)... | view | |
| 6 | x 11 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT... | Improve_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynb... |
256:261 (<1%)657:662 (<1%)1422:1427 (<1%)1610:1615 (<1%)1934:1939 (<1%)2070:2075 (<1%)2281:2286 (<1%)2357:2362 (<1%)2586:2591 (<1%)2976:2981 (<1%)... | view |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 497:502 (1%)842:847 (<1%)568:573 (1%)746:751 (<1%)1166:1171 (<1%)1476:1481 (<1%)1587:1592 (<1%)1437:1442 (<1%)2804:2809 (<1%)3817:3822 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 496:501 (1%)841:846 (<1%)567:572 (1%)745:750 (<1%)1165:1170 (<1%)1475:1480 (<1%)1586:1591 (<1%)1436:1441 (<1%)2803:2808 (<1%)3816:3821 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 495:500 (1%)840:845 (<1%)566:571 (1%)744:749 (<1%)1164:1169 (<1%)1474:1479 (<1%)1585:1590 (<1%)1435:1440 (<1%)2802:2807 (<1%)3815:3820 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 493:498 (1%)838:843 (<1%)564:569 (1%)742:747 (<1%)1162:1167 (<1%)1472:1477 (<1%)1583:1588 (<1%)1433:1438 (<1%)2800:2805 (<1%)3813:3818 (<1%)... | view | |
| 6 | x 11 | kb_datasetsROOTec2_instance_code/2022_10_03entity_source_dataec2_instance_code/2022_10_03ec2_instance_code/2022_10_03ROOTROOTROOTROOT... | 490:495 (1%)835:840 (<1%)561:566 (1%)739:744 (<1%)1159:1164 (<1%)1469:1474 (<1%)1580:1585 (<1%)1430:1435 (<1%)2797:2802 (<1%)3810:3815 (<1%)... | view | |
| 6 | x 10 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT | Improve_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynb |
259:264 (<1%)660:665 (<1%)1425:1430 (<1%)1613:1618 (<1%)1937:1942 (<1%)2073:2078 (<1%)2284:2289 (<1%)2360:2365 (<1%)2979:2984 (<1%)3183:3188 (<1%) | view |
| 6 | x 10 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT | Improve_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynb |
260:265 (<1%)661:666 (<1%)1426:1431 (<1%)1614:1619 (<1%)1938:1943 (<1%)2074:2079 (<1%)2285:2290 (<1%)2361:2366 (<1%)2980:2985 (<1%)3184:3189 (<1%) | view |
| 6 | x 10 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT | Improve_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynb |
258:263 (<1%)659:664 (<1%)1424:1429 (<1%)1612:1617 (<1%)1936:1941 (<1%)2072:2077 (<1%)2283:2288 (<1%)2359:2364 (<1%)2978:2983 (<1%)3182:3187 (<1%) | view |
| 6 | x 10 | ROOTROOTROOTROOTROOTROOTROOTROOTROOTROOT | Improve_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynbImprove_candidate_generation.ipynb |
257:262 (<1%)658:663 (<1%)1423:1428 (<1%)1611:1616 (<1%)1935:1940 (<1%)2071:2076 (<1%)2282:2287 (<1%)2358:2363 (<1%)2977:2982 (<1%)3181:3186 (<1%) | view |
About This Analysis
- For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
- Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
- You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
- To learn more about duplications and techniques for eliminating duplication, Sokrates recommends the following resources:
- Avoid Repetition, MartinFlower.com (IEEE Software article)
- Refactoring duplicated code, sourcemaking.com
- Beck Design Rules, MartinFowler.com
- DRY (Don't Repeat Yourself) Principle, Wikipedia
- The Cut-and-Paste Programming Software Development Anti-Pattern, sourcemaking.com
- Code Smells / Duplicated Code, Jeff Atwood, codinghorror.com:
- "Duplicated code is the bane of software development. Stamp out duplication whenever possible. You should always be on the lookout for more subtle cases of near-duplication, too. Don't Repeat Yourself!"
- Reducing Coupling, MartinFlower.com (IEEE Software article):
- "There are several ways to describe coupling, but it boils down to this: If changing one module in a program requires changing another module, then coupling exists. ... Duplication always implies coupling, because changing one piece of duplicate code implies changing the other."