Duplication Overall
- 5% duplication:
- 28,774 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 1,568 duplicated lines
- 192 duplicates
Duplication per Extension
Duplication per Component (primary)
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 31 | x 2 | scriptsscripts | 192:222 (5%)128:158 (9%) | view | |
| 27 | x 2 | plugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/src | 16:56 (15%)14:54 (7%) | view | |
| 20 | x 2 | plugins/reviewops-auditor-benchmark/srcscripts | 9:28 (27%)18:37 (6%) | view | |
| 18 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/benchmark | 99:116 (9%)172:189 (9%) | view | |
| 18 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/benchmark | 183:200 (3%)475:492 (3%) | view | |
| 16 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1543:1558 (<1%)1627:1642 (<1%) | view | |
| 16 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1703:1718 (<1%)1756:1771 (<1%) | view | |
| 15 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1421:1435 (<1%)1788:1802 (<1%) | view | |
| 15 | x 2 | scriptsscripts | 225:240 (2%)159:173 (4%) | view | |
| 14 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 135:148 (<1%)278:291 (<1%) | view | |
| 14 | x 2 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 16:29 (6%)135:148 (<1%) | view | |
| 14 | x 2 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 16:29 (6%)278:291 (<1%) | view | |
| 13 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1689:1701 (<1%)1738:1750 (<1%) | view | |
| 13 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/benchmark | 71:83 (6%)145:157 (6%) | view | |
| 13 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/benchmark | 167:180 (2%)454:466 (2%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1335:1346 (<1%)1491:1502 (<1%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1335:1346 (<1%)1897:1908 (<1%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1491:1502 (<1%)1897:1908 (<1%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/eval | 18:29 (5%)32:43 (5%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 32:43 (5%)137:148 (<1%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 32:43 (5%)280:291 (<1%) | view | |
| 12 | x 2 | plugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/src | 74:91 (6%)72:89 (3%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/normalize | 263:274 (2%)2707:2718 (<1%) | view | |
| 12 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/normalize | 62:73 (1%)1248:1259 (<1%) | view | |
| 11 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1529:1539 (<1%)1611:1621 (<1%) | view | |
| 11 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 1727:1737 (<1%)1960:1970 (<1%) | view | |
| 11 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/benchmark | 86:96 (5%)159:169 (5%) | view | |
| 11 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/benchmark | 437:447 (<1%)1135:1145 (<1%) | view | |
| 11 | x 2 | scriptsscripts | 4:15 (12%)3:14 (3%) | view | |
| 11 | x 2 | plugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/src | 58:72 (6%)56:70 (3%) | view | |
| 11 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/normalize | 1:11 (1%)1:11 (<1%) | view | |
| 10 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 388:398 (<1%)402:412 (<1%) | view | |
| 10 | x 2 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 199:208 (2%)1753:1762 (<1%) | view | |
| 9 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1598:1606 (<1%)1618:1626 (<1%) | view | |
| 9 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 1256:1265 (<1%)2012:2021 (<1%) | view | |
| 9 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 130:138 (4%)153:161 (4%) | view | |
| 9 | x 2 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/benchmark | 405:413 (<1%)1106:1114 (<1%) | view | |
| 9 | x 2 | scriptsscripts | 29:38 (2%)54:63 (2%) | view | |
| 9 | x 2 | plugins/reviewops-auditor-benchmarkplugins/reviewops-auditor-benchmark/src | 56:64 (6%)62:70 (12%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 740:747 (<1%)938:945 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1721:1728 (<1%)1772:1779 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 388:396 (<1%)416:424 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 402:410 (<1%)416:424 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 694:702 (<1%)1257:1265 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 694:702 (<1%)1286:1294 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 694:702 (<1%)2013:2021 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 1009:1016 (<1%)1196:1203 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 1257:1265 (<1%)1286:1294 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 1282:1290 (<1%)1317:1325 (<1%) | view | |
| 8 | x 2 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 1286:1294 (<1%)2013:2021 (<1%) | view |
Most Frequent Duplicates
The list of 37 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 13 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize... | 696:702 (<1%)1035:1041 (<1%)1225:1231 (<1%)1259:1265 (<1%)1288:1294 (<1%)1480:1486 (<1%)1531:1537 (<1%)1586:1592 (<1%)1633:1639 (<1%)1858:1864 (<1%)... | view | |
| 6 | x 8 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 1034:1040 (<1%)1479:1485 (<1%)1530:1536 (<1%)1585:1591 (<1%)1632:1638 (<1%)1857:1863 (<1%)1939:1945 (<1%)2111:2117 (<1%) | view | |
| 6 | x 5 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 436:442 (<1%)694:700 (<1%)1257:1263 (<1%)1286:1292 (<1%)2013:2019 (<1%) | view | |
| 6 | x 5 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1401:1406 (<1%)1430:1435 (<1%)1584:1589 (<1%)1674:1679 (<1%)1797:1802 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 24:29 (2%)143:148 (<1%)38:43 (2%)286:291 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 20:25 (2%)139:144 (<1%)34:39 (2%)282:287 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 695:701 (<1%)1258:1264 (<1%)1287:1293 (<1%)2014:2020 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1335:1340 (<1%)1361:1366 (<1%)1491:1496 (<1%)1897:1902 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 18:23 (2%)137:142 (<1%)32:37 (2%)280:285 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 21:26 (2%)140:145 (<1%)35:40 (2%)283:288 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 19:24 (2%)138:143 (<1%)33:38 (2%)281:286 (<1%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 23:28 (2%)142:147 (<1%)37:42 (2%)285:290 (<1%) | view | |
| 6 | x 4 | plugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/src | 65:70 (3%)63:68 (1%)82:87 (1%)84:89 (3%) | view | |
| 6 | x 4 | plugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/src | 63:68 (3%)61:66 (1%)80:85 (1%)82:87 (3%) | view | |
| 6 | x 4 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalize | 22:27 (2%)141:146 (<1%)36:41 (2%)284:289 (<1%) | view | |
| 6 | x 4 | plugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/srcplugins/autodesk-fusion/native/source/src | 64:69 (3%)62:67 (1%)81:86 (1%)83:88 (3%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1341:1346 (<1%)1497:1502 (<1%)1903:1908 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 390:396 (<1%)404:410 (<1%)418:424 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 379:384 (<1%)393:398 (<1%)407:412 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1338:1343 (<1%)1494:1499 (<1%)1900:1905 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1339:1344 (<1%)1495:1500 (<1%)1901:1906 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 17:22 (2%)136:141 (<1%)279:284 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 295:300 (<1%)1836:1841 (<1%)1928:1933 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/evalplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 16:21 (2%)135:140 (<1%)278:283 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1337:1342 (<1%)1493:1498 (<1%)1899:1904 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 590:596 (<1%)604:610 (<1%)624:630 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 820:825 (<1%)1051:1056 (<1%)1297:1302 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 388:394 (<1%)402:408 (<1%)416:422 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1340:1345 (<1%)1496:1501 (<1%)1902:1907 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 2626:2631 (<1%)2652:2657 (<1%)2674:2679 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 592:597 (<1%)606:611 (<1%)626:631 (<1%) | view | |
| 6 | x 3 | scriptsscriptsscripts | 10:15 (6%)9:14 (1%)11:16 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 435:441 (<1%)1256:1262 (<1%)2012:2018 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/srcplugins/reviewops-auditor-benchmark/src | 1336:1341 (<1%)1492:1497 (<1%)1898:1903 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 389:395 (<1%)403:409 (<1%)417:423 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/benchmarkplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 844:850 (<1%)599:605 (<1%)2476:2482 (<1%) | view | |
| 6 | x 3 | plugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalizeplugins/reviewops-auditor-benchmark/src/normalize | 377:383 (<1%)391:397 (<1%)405:411 (<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."