Duplication Overall
- 26% duplication:
- 5,753 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 1,499 duplicated lines
- 1,075 duplicates
Duplication per Extension
Duplication per Component (primary)
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 19 | x 2 | Sources/BridgetSources/Bridget | 1810:1832 (<1%)8064:8086 (<1%) | view | |
| 19 | x 2 | Sources/BridgetSources/Bridget | 3002:3024 (<1%)3623:3645 (<1%) | view | |
| 17 | x 2 | Sources/BridgetSources/Bridget | 116:137 (2%)160:181 (2%) | view | |
| 16 | x 2 | Sources/BridgetSources/Bridget | 2952:2969 (<1%)3573:3590 (<1%) | view | |
| 16 | x 2 | Sources/BridgetSources/Bridget | 2977:2994 (<1%)3598:3615 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)1728:1741 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)2299:2312 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)2920:2933 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)3541:3554 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)4482:4495 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)5597:5610 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)5975:5988 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)6664:6677 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)6976:6989 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)7720:7733 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)8032:8045 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)8272:8285 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)8633:8646 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)8917:8930 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)9154:9167 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1174:1187 (<1%)9394:9407 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1305:1323 (<1%)1414:1432 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1523:1541 (<1%)7901:7919 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1710:1725 (<1%)8014:8029 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)2299:2312 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)2920:2933 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)3541:3554 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)4482:4495 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)5597:5610 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)5975:5988 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)6664:6677 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)6976:6989 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)7720:7733 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)8032:8045 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)8272:8285 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)8633:8646 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)8917:8930 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)9154:9167 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 1728:1741 (<1%)9394:9407 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)2920:2933 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)3541:3554 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)4482:4495 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)5597:5610 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)5975:5988 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)6664:6677 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)6976:6989 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)7720:7733 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)8032:8045 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)8272:8285 (<1%) | view | |
| 11 | x 2 | Sources/BridgetSources/Bridget | 2299:2312 (<1%)8633:8646 (<1%) | view |
Most Frequent Duplicates
The list of 41 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 27 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 886:895 (<1%)994:1003 (<1%)1360:1369 (<1%)1469:1478 (<1%)1578:1587 (<1%)1939:1948 (<1%)1988:1997 (<1%)2096:2105 (<1%)2145:2154 (<1%)4683:4692 (<1%)... | view | |
| 6 | x 27 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 884:892 (<1%)992:1000 (<1%)1358:1366 (<1%)1467:1475 (<1%)1576:1584 (<1%)1937:1945 (<1%)1986:1994 (<1%)2094:2102 (<1%)2143:2151 (<1%)4681:4689 (<1%)... | view | |
| 6 | x 27 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 888:898 (<1%)996:1006 (<1%)1362:1372 (<1%)1471:1481 (<1%)1580:1590 (<1%)1941:1951 (<1%)1990:2000 (<1%)2098:2108 (<1%)2147:2157 (<1%)4685:4695 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1162:1169 (<1%)1716:1723 (<1%)2287:2294 (<1%)2908:2915 (<1%)3529:3536 (<1%)4470:4477 (<1%)5585:5592 (<1%)5963:5970 (<1%)6652:6659 (<1%)6964:6971 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1174:1182 (<1%)1728:1736 (<1%)2299:2307 (<1%)2920:2928 (<1%)3541:3549 (<1%)4482:4490 (<1%)5597:5605 (<1%)5975:5983 (<1%)6664:6672 (<1%)6976:6984 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1256:1264 (<1%)1835:1843 (<1%)2406:2414 (<1%)3027:3035 (<1%)3648:3656 (<1%)4639:4647 (<1%)5779:5787 (<1%)6032:6040 (<1%)6796:6804 (<1%)7033:7041 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1056:1065 (<1%)2523:2532 (<1%)2642:2651 (<1%)2761:2770 (<1%)3144:3153 (<1%)3263:3272 (<1%)3382:3391 (<1%)3765:3774 (<1%)4003:4012 (<1%)4122:4131 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1242:1248 (<1%)1821:1827 (<1%)2392:2398 (<1%)3013:3019 (<1%)3634:3640 (<1%)4625:4631 (<1%)5765:5771 (<1%)6018:6024 (<1%)6782:6788 (<1%)7019:7025 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1259:1266 (<1%)1838:1845 (<1%)2409:2416 (<1%)3030:3037 (<1%)3651:3658 (<1%)4642:4649 (<1%)5782:5789 (<1%)6035:6042 (<1%)6799:6806 (<1%)7036:7043 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1182:1187 (<1%)1736:1741 (<1%)2307:2312 (<1%)2928:2933 (<1%)3549:3554 (<1%)4490:4495 (<1%)5605:5610 (<1%)5983:5988 (<1%)6672:6677 (<1%)6984:6989 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1243:1249 (<1%)1822:1828 (<1%)2393:2399 (<1%)3014:3020 (<1%)3635:3641 (<1%)4626:4632 (<1%)5766:5772 (<1%)6019:6025 (<1%)6783:6789 (<1%)7020:7026 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1179:1186 (<1%)1733:1740 (<1%)2304:2311 (<1%)2925:2932 (<1%)3546:3553 (<1%)4487:4494 (<1%)5602:5609 (<1%)5980:5987 (<1%)6669:6676 (<1%)6981:6988 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1245:1253 (<1%)1824:1832 (<1%)2395:2403 (<1%)3016:3024 (<1%)3637:3645 (<1%)4628:4636 (<1%)5768:5776 (<1%)6021:6029 (<1%)6785:6793 (<1%)7022:7030 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1260:1267 (<1%)1839:1846 (<1%)2410:2417 (<1%)3031:3038 (<1%)3652:3659 (<1%)4643:4650 (<1%)5783:5790 (<1%)6036:6043 (<1%)6800:6807 (<1%)7037:7044 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1049:1057 (<1%)2516:2524 (<1%)2635:2643 (<1%)2754:2762 (<1%)3137:3145 (<1%)3256:3264 (<1%)3375:3383 (<1%)3758:3766 (<1%)3996:4004 (<1%)4115:4123 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1050:1058 (<1%)2517:2525 (<1%)2636:2644 (<1%)2755:2763 (<1%)3138:3146 (<1%)3257:3265 (<1%)3376:3384 (<1%)3759:3767 (<1%)3997:4005 (<1%)4116:4124 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1178:1185 (<1%)1732:1739 (<1%)2303:2310 (<1%)2924:2931 (<1%)3545:3552 (<1%)4486:4493 (<1%)5601:5608 (<1%)5979:5986 (<1%)6668:6675 (<1%)6980:6987 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1177:1184 (<1%)1731:1738 (<1%)2302:2309 (<1%)2923:2930 (<1%)3544:3551 (<1%)4485:4492 (<1%)5600:5607 (<1%)5978:5985 (<1%)6667:6674 (<1%)6979:6986 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1052:1059 (<1%)2519:2526 (<1%)2638:2645 (<1%)2757:2764 (<1%)3140:3147 (<1%)3259:3266 (<1%)3378:3385 (<1%)3761:3768 (<1%)3999:4006 (<1%)4118:4125 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1054:1062 (<1%)2521:2529 (<1%)2640:2648 (<1%)2759:2767 (<1%)3142:3150 (<1%)3261:3269 (<1%)3380:3388 (<1%)3763:3771 (<1%)4001:4009 (<1%)4120:4128 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1244:1251 (<1%)1823:1830 (<1%)2394:2401 (<1%)3015:3022 (<1%)3636:3643 (<1%)4627:4634 (<1%)5767:5774 (<1%)6020:6027 (<1%)6784:6791 (<1%)7021:7028 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1175:1183 (<1%)1729:1737 (<1%)2300:2308 (<1%)2921:2929 (<1%)3542:3550 (<1%)4483:4491 (<1%)5598:5606 (<1%)5976:5984 (<1%)6665:6673 (<1%)6977:6985 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1163:1171 (<1%)1717:1725 (<1%)2288:2296 (<1%)2909:2917 (<1%)3530:3538 (<1%)4471:4479 (<1%)5586:5594 (<1%)5964:5972 (<1%)6653:6661 (<1%)6965:6973 (<1%)... | view | |
| 6 | x 17 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget... | 1257:1265 (<1%)1836:1844 (<1%)2407:2415 (<1%)3028:3036 (<1%)3649:3657 (<1%)4640:4648 (<1%)5780:5788 (<1%)6033:6041 (<1%)6797:6805 (<1%)7034:7042 (<1%)... | view | |
| 6 | x 6 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 2455:2463 (<1%)2574:2582 (<1%)2693:2701 (<1%)3076:3084 (<1%)3195:3203 (<1%)3314:3322 (<1%) | view | |
| 6 | x 6 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 2458:2465 (<1%)2577:2584 (<1%)2696:2703 (<1%)3079:3086 (<1%)3198:3205 (<1%)3317:3324 (<1%) | view | |
| 6 | x 6 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 2456:2464 (<1%)2575:2583 (<1%)2694:2702 (<1%)3077:3085 (<1%)3196:3204 (<1%)3315:3323 (<1%) | view | |
| 6 | x 6 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 2460:2468 (<1%)2579:2587 (<1%)2698:2706 (<1%)3081:3089 (<1%)3200:3208 (<1%)3319:3327 (<1%) | view | |
| 6 | x 6 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 2463:2473 (<1%)2582:2592 (<1%)2701:2711 (<1%)3084:3094 (<1%)3203:3213 (<1%)3322:3332 (<1%) | view | |
| 6 | x 6 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 2462:2471 (<1%)2581:2590 (<1%)2700:2709 (<1%)3083:3092 (<1%)3202:3211 (<1%)3321:3330 (<1%) | view | |
| 6 | x 5 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 3700:3707 (<1%)3819:3826 (<1%)3938:3945 (<1%)4057:4064 (<1%)4176:4183 (<1%) | view | |
| 6 | x 5 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 3697:3705 (<1%)3816:3824 (<1%)3935:3943 (<1%)4054:4062 (<1%)4173:4181 (<1%) | view | |
| 6 | x 5 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 3702:3710 (<1%)3821:3829 (<1%)3940:3948 (<1%)4059:4067 (<1%)4178:4186 (<1%) | view | |
| 6 | x 5 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 3698:3706 (<1%)3817:3825 (<1%)3936:3944 (<1%)4055:4063 (<1%)4174:4182 (<1%) | view | |
| 6 | x 5 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 3705:3715 (<1%)3824:3834 (<1%)3943:3953 (<1%)4062:4072 (<1%)4181:4191 (<1%) | view | |
| 6 | x 5 | Sources/BridgetSources/BridgetSources/BridgetSources/BridgetSources/Bridget | 3704:3713 (<1%)3823:3832 (<1%)3942:3951 (<1%)4061:4070 (<1%)4180:4189 (<1%) | view | |
| 6 | x 4 | Sources/BridgetSources/BridgetSources/BridgetSources/Bridget | 7144:7152 (<1%)7271:7279 (<1%)7406:7414 (<1%)7514:7522 (<1%) | view | |
| 6 | x 4 | Sources/BridgetSources/BridgetSources/BridgetSources/Bridget | 7146:7153 (<1%)7273:7280 (<1%)7408:7415 (<1%)7516:7523 (<1%) | view | |
| 6 | x 4 | Sources/BridgetSources/BridgetSources/BridgetSources/Bridget | 7150:7159 (<1%)7277:7286 (<1%)7412:7421 (<1%)7520:7529 (<1%) | view | |
| 6 | x 4 | Sources/BridgetSources/BridgetSources/BridgetSources/Bridget | 7148:7156 (<1%)7275:7283 (<1%)7410:7418 (<1%)7518:7526 (<1%) | view | |
| 6 | x 4 | Sources/BridgetSources/BridgetSources/BridgetSources/Bridget | 7143:7151 (<1%)7270:7278 (<1%)7405:7413 (<1%)7513:7521 (<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."