Duplication Overall
- 17% duplication:
- 9,541 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 1,709 duplicated lines
- 161 duplicates
Duplication per Extension
Duplication per Component (primary)
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 39 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 726:774 (5%)352:400 (12%) | view | |
| 34 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 354:387 (4%)227:260 (10%) | view | |
| 34 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 164:201 (21%)389:426 (10%) | view | |
| 30 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 820:853 (3%)393:426 (9%) | view | |
| 30 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 820:853 (3%)168:201 (18%) | view | |
| 24 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 636:667 (3%)321:352 (7%) | view | |
| 23 | x 2 | shap_e/diffusionshap_e/diffusion | 240:266 (9%)284:310 (9%) | view | |
| 22 | x 2 | shap_e/models/nnshap_e/models/nn | 61:82 (5%)117:138 (5%) | view | |
| 21 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 417:437 (2%)442:462 (2%) | view | |
| 16 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 161:176 (2%)143:158 (4%) | view | |
| 16 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 739:759 (2%)141:161 (10%) | view | |
| 16 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 141:161 (10%)365:385 (4%) | view | |
| 15 | x 2 | shap_e/diffusionshap_e/diffusion | 558:585 (2%)734:759 (2%) | view | |
| 15 | x 2 | shap_e/models/nerstfshap_e/models/stf | 244:258 (6%)90:104 (3%) | view | |
| 13 | x 2 | shap_e/diffusionshap_e/diffusion | 687:699 (1%)723:735 (1%) | view | |
| 13 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 642:656 (1%)102:116 (8%) | view | |
| 13 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 102:116 (8%)327:341 (4%) | view | |
| 12 | x 2 | shap_e/diffusionshap_e/diffusion | 500:511 (1%)548:559 (1%) | view | |
| 12 | x 2 | shap_e/models/generationshap_e/models/generation | 320:332 (3%)438:451 (3%) | view | |
| 12 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 116:128 (8%)186:198 (8%) | view | |
| 12 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 51:62 (1%)127:138 (1%) | view | |
| 12 | x 2 | shap_e/models/stfshap_e/models/stf | 316:327 (3%)388:399 (3%) | view | |
| 12 | x 2 | shap_e/models/nerfshap_e/models/nerf | 69:81 (4%)232:244 (4%) | view | |
| 12 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 292:305 (1%)202:215 (3%) | view | |
| 12 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 763:774 (1%)164:175 (7%) | view | |
| 11 | x 2 | shap_e/modelsshap_e/models | 116:127 (8%)242:253 (8%) | view | |
| 11 | x 2 | shap_e/modelsshap_e/models | 186:197 (8%)240:251 (8%) | view | |
| 11 | x 2 | shap_e/models/nerstfshap_e/models/stf | 32:42 (4%)52:62 (2%) | view | |
| 10 | x 2 | shap_e/diffusionshap_e/diffusion | 500:509 (1%)687:696 (1%) | view | |
| 10 | x 2 | shap_e/diffusionshap_e/diffusion | 500:509 (1%)723:732 (1%) | view | |
| 10 | x 2 | shap_e/diffusionshap_e/diffusion | 548:557 (1%)687:696 (1%) | view | |
| 10 | x 2 | shap_e/diffusionshap_e/diffusion | 548:557 (1%)723:732 (1%) | view | |
| 10 | x 2 | shap_e/diffusionshap_e/diffusion | 599:608 (1%)649:658 (1%) | view | |
| 10 | x 2 | shap_e/diffusionshap_e/diffusion | 614:623 (1%)663:672 (1%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 33:42 (6%)83:92 (6%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 72:81 (1%)168:177 (1%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 683:694 (1%)715:726 (1%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 751:764 (1%)805:818 (1%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 27:36 (3%)96:105 (3%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 208:217 (1%)184:193 (3%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 805:818 (1%)377:390 (3%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 22:31 (6%)27:36 (3%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 22:31 (6%)96:105 (3%) | view | |
| 10 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 66:75 (6%)63:72 (3%) | view | |
| 9 | x 2 | shap_e/diffusionshap_e/diffusion | 464:489 (1%)608:621 (1%) | view | |
| 9 | x 2 | shap_e/diffusionshap_e/diffusion | 533:541 (1%)707:715 (1%) | view | |
| 9 | x 2 | shap_e/models/generationshap_e/models/generation | 355:365 (2%)478:488 (2%) | view | |
| 9 | x 2 | shap_e/models/transmittershap_e/models/transmitter | 405:414 (1%)430:439 (1%) | view | |
| 9 | x 2 | shap_e/models/generationshap_e/models/generation | 14:22 (4%)78:86 (4%) | view | |
| 9 | x 2 | shap_e/rendering/blendershap_e/rendering/blender | 224:235 (1%)292:305 (1%) | view |
Most Frequent Duplicates
The list of 50 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 6 | shap_e/models/generationshap_e/models/generationshap_e/models/generationshap_e/models/generationshap_e/models/generationshap_e/models/generation | 14:19 (2%)20:25 (1%)78:83 (2%)121:126 (2%)84:89 (1%)115:120 (1%) | view | |
| 6 | x 5 | shap_e/models/stfshap_e/models/stfshap_e/models/nerstfshap_e/models/stfshap_e/models/nerstf | 13:18 (18%)188:193 (4%)28:33 (4%)206:211 (4%)82:87 (4%) | view | |
| 6 | x 5 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 111:116 (3%)336:341 (1%)651:656 (<1%)687:692 (<1%)719:724 (<1%) | view | |
| 6 | x 5 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 23:28 (3%)28:33 (1%)36:41 (<1%)108:113 (<1%)97:102 (1%) | view | |
| 6 | x 5 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 22:27 (3%)27:32 (1%)35:40 (<1%)107:112 (<1%)96:101 (1%) | view | |
| 6 | x 5 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 375:380 (<1%)248:253 (1%)407:412 (<1%)432:437 (<1%)457:462 (<1%) | view | |
| 6 | x 4 | shap_e/diffusionshap_e/diffusionshap_e/diffusionshap_e/diffusion | 504:509 (<1%)552:557 (<1%)691:696 (<1%)727:732 (<1%) | view | |
| 6 | x 4 | shap_e/diffusionshap_e/diffusionshap_e/diffusionshap_e/diffusion | 503:508 (<1%)551:556 (<1%)690:695 (<1%)726:731 (<1%) | view | |
| 6 | x 4 | shap_e/models/nerfshap_e/models/stfshap_e/models/nerfshap_e/models/nerf | 24:29 (3%)107:112 (4%)64:69 (3%)174:179 (3%) | view | |
| 6 | x 4 | shap_e/diffusionshap_e/diffusionshap_e/diffusionshap_e/diffusion | 501:506 (<1%)549:554 (<1%)688:693 (<1%)724:729 (<1%) | view | |
| 6 | x 4 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 169:174 (3%)394:399 (1%)768:773 (<1%)821:826 (<1%) | view | |
| 6 | x 4 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 168:173 (3%)393:398 (1%)767:772 (<1%)820:825 (<1%) | view | |
| 6 | x 4 | shap_e/diffusionshap_e/diffusionshap_e/diffusionshap_e/diffusion | 502:507 (<1%)550:555 (<1%)689:694 (<1%)725:730 (<1%) | view | |
| 6 | x 4 | shap_e/diffusionshap_e/diffusionshap_e/diffusionshap_e/diffusion | 500:505 (<1%)548:553 (<1%)687:692 (<1%)723:728 (<1%) | view | |
| 6 | x 4 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 170:175 (3%)395:400 (1%)769:774 (<1%)822:827 (<1%) | view | |
| 6 | x 4 | shap_e/modelsshap_e/modelsshap_e/modelsshap_e/models | 67:72 (4%)120:125 (4%)192:197 (4%)246:251 (4%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 92:97 (4%)51:56 (<1%)127:132 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 42:47 (3%)44:49 (1%)116:121 (1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 107:113 (3%)332:338 (1%)647:653 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 105:112 (3%)330:337 (1%)645:652 (<1%) | view | |
| 6 | x 3 | shap_e/diffusionshap_e/diffusionshap_e/diffusion | 483:488 (<1%)615:620 (<1%)664:669 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 34:39 (4%)84:89 (4%)147:152 (4%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 188:193 (3%)413:418 (1%)840:845 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 194:199 (3%)419:424 (1%)846:851 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 146:152 (3%)370:376 (1%)744:750 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 190:195 (3%)415:420 (1%)842:847 (<1%) | view | |
| 6 | x 3 | shap_e/diffusionshap_e/diffusionshap_e/diffusion | 484:489 (<1%)616:621 (<1%)665:670 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 195:200 (3%)420:425 (1%)847:852 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 186:191 (3%)411:416 (1%)838:843 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 24:29 (3%)29:34 (1%)98:103 (1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 25:30 (3%)30:35 (1%)99:104 (1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 189:194 (3%)414:419 (1%)841:846 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 142:147 (3%)366:371 (1%)740:745 (<1%) | view | |
| 6 | x 3 | shap_e/diffusionshap_e/diffusionshap_e/diffusion | 482:487 (<1%)614:619 (<1%)663:668 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 109:114 (3%)334:339 (1%)649:654 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 143:148 (3%)367:372 (1%)741:746 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 103:110 (3%)328:335 (1%)643:650 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 144:149 (3%)368:373 (1%)742:747 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 406:411 (<1%)431:436 (<1%)456:461 (<1%) | view | |
| 6 | x 3 | shap_e/modelsshap_e/modelsshap_e/models | 117:123 (4%)189:195 (4%)243:249 (4%) | view | |
| 6 | x 3 | shap_e/modelsshap_e/modelsshap_e/models | 116:122 (4%)188:194 (4%)242:248 (4%) | view | |
| 6 | x 3 | shap_e/models/generationshap_e/models/generationshap_e/models/generation | 21:26 (1%)85:90 (1%)116:121 (1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 104:111 (3%)329:336 (1%)644:651 (<1%) | view | |
| 6 | x 3 | shap_e/models/nerfshap_e/models/stfshap_e/models/nerf | 70:75 (2%)77:82 (1%)233:238 (2%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 166:171 (3%)391:396 (1%)765:770 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 94:99 (4%)53:58 (<1%)129:134 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 192:197 (3%)417:422 (1%)844:849 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 183:188 (3%)408:413 (1%)835:840 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 164:169 (3%)389:394 (1%)763:768 (<1%) | view | |
| 6 | x 3 | shap_e/models/transmittershap_e/models/transmittershap_e/models/transmitter | 184:189 (3%)409:414 (1%)836:841 (<1%) | view |
Duplicated Units
The list of top 3 duplicated units.
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."