guardian/aus-new-state-vaccine-estimates
Duplication Places in code with 6 or more lines that are exactly the same. |
Duplication Overall
- 55% duplication:
- 3,340 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 1,860 duplicated lines
- 55 duplicates
Duplication per Extension
Duplication per Component (primary)
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 233 | x 2 | atoms/default/client/cssatoms/new-model-boosters/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/default/client/cssatoms/new-model/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/new-model-boosters/client/cssatoms/new-model/client/css | 1:283 (100%)1:283 (100%) | view | |
| 226 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 512:944 (44%)541:838 (38%) | view | |
| 127 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 357:515 (25%)339:495 (21%) | view | |
| 57 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 240:311 (11%)222:293 (9%) | view | |
| 41 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 27:138 (8%)19:130 (6%) | view | |
| 41 | x 2 | atoms/default/client/jsatoms/new-model/client/js | 1:63 (100%)1:63 (100%) | view | |
| 41 | x 2 | atoms/default/client/jsatoms/new-model-boosters/client/js | 1:63 (100%)1:63 (100%) | view | |
| 41 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 1:63 (100%)1:63 (100%) | view | |
| 34 | x 2 | atoms/new-model-boosters/client/cssatoms/new-model/client/css | 1:49 (100%)1:49 (100%) | view | |
| 15 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 771:790 (2%)790:810 (2%) | view | |
| 15 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 877:896 (2%)896:916 (2%) | view | |
| 15 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 877:896 (2%)790:810 (2%) | view | |
| 15 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 896:916 (2%)771:790 (2%) | view | |
| 14 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 946:962 (2%)840:856 (2%) | view | |
| 11 | x 2 | atoms/default/client/jsatoms/new-model-boosters/client/js | 28:42 (7%)39:53 (2%) | view | |
| 11 | x 2 | atoms/default/client/jsatoms/new-model/client/js | 28:42 (7%)31:45 (1%) | view | |
| 9 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 583:592 (1%)597:609 (1%) | view | |
| 9 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 583:592 (1%)614:624 (1%) | view | |
| 9 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 597:609 (1%)614:624 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 605:614 (1%)619:631 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 605:614 (1%)636:646 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 619:631 (1%)636:646 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 605:614 (1%)597:609 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 605:614 (1%)614:624 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 619:631 (1%)583:592 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 619:631 (1%)614:624 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 636:646 (1%)583:592 (1%) | view | |
| 9 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 636:646 (1%)597:609 (1%) | view | |
| 8 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 461:471 (1%)510:520 (1%) | view | |
| 8 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 481:491 (1%)510:520 (1%) | view | |
| 7 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 416:425 (1%)462:471 (1%) | view | |
| 7 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 416:425 (1%)511:520 (1%) | view | |
| 7 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 557:564 (1%)571:578 (1%) | view | |
| 7 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 436:445 (1%)482:491 (1%) | view | |
| 7 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 579:586 (1%)593:600 (1%) | view | |
| 7 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 436:445 (1%)462:471 (1%) | view | |
| 7 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 436:445 (1%)511:520 (1%) | view | |
| 7 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 482:491 (1%)416:425 (1%) | view | |
| 7 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 579:586 (1%)571:578 (1%) | view | |
| 7 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 593:600 (1%)557:564 (1%) | view | |
| 7 | x 2 | atoms/default/client/cssatoms/new-model-boosters/client/css | 1:9 (87%)1:9 (20%) | view | |
| 7 | x 2 | atoms/default/client/cssatoms/new-model/client/css | 1:9 (87%)1:9 (20%) | view | |
| 6 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 557:562 (1%)631:636 (1%) | view | |
| 6 | x 2 | atoms/new-model/client/jsatoms/new-model/client/js | 571:576 (1%)631:636 (1%) | view | |
| 6 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 579:584 (1%)653:658 (1%) | view | |
| 6 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model-boosters/client/js | 593:598 (1%)653:658 (1%) | view | |
| 6 | x 2 | shared/css/guss-typographyshared/css/guss-typography | 188:193 (5%)200:205 (5%) | view | |
| 6 | x 2 | atoms/new-model-boosters/client/jsatoms/new-model/client/js | 579:584 (1%)631:636 (1%) | view |
Most Frequent Duplicates
The list of 50 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 6 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/js | 607:612 (1%)585:590 (1%)621:626 (1%)638:643 (1%)599:604 (1%)616:621 (1%) | view | |
| 6 | x 6 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/js | 608:614 (1%)586:592 (1%)622:631 (1%)639:646 (1%)600:609 (1%)617:624 (1%) | view | |
| 6 | x 6 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/js | 605:610 (1%)583:588 (1%)619:624 (1%)636:641 (1%)597:602 (1%)614:619 (1%) | view | |
| 6 | x 6 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/js | 606:611 (1%)584:589 (1%)620:625 (1%)637:642 (1%)598:603 (1%)615:620 (1%) | view | |
| 6 | x 6 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/js | 579:584 (1%)557:562 (1%)593:598 (1%)653:658 (1%)571:576 (1%)631:636 (1%) | view | |
| 6 | x 5 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/js | 436:444 (1%)416:424 (1%)462:470 (1%)511:519 (1%)482:490 (1%) | view | |
| 6 | x 5 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/js | 437:445 (1%)417:425 (1%)463:471 (1%)512:520 (1%)483:491 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 882:889 (1%)776:783 (1%)902:909 (1%)796:803 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 883:890 (1%)777:784 (1%)903:910 (1%)797:804 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 877:883 (1%)771:777 (1%)896:903 (1%)790:797 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 879:884 (1%)773:778 (1%)899:904 (1%)793:798 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 880:885 (1%)774:779 (1%)900:905 (1%)794:799 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 580:586 (1%)558:564 (1%)594:600 (1%)572:578 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 888:893 (1%)782:787 (1%)908:913 (1%)802:807 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 889:896 (1%)783:790 (1%)909:916 (1%)803:810 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 881:888 (1%)775:782 (1%)901:908 (1%)795:802 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 885:892 (1%)779:786 (1%)905:912 (1%)799:806 (1%) | view | |
| 6 | x 4 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 884:891 (1%)778:785 (1%)904:911 (1%)798:805 (1%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 59:67 (2%)59:67 (2%)59:67 (2%) | view | |
| 6 | x 3 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/default/client/js | 31:38 (14%)31:38 (14%)31:38 (14%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 189:194 (2%)189:194 (2%)189:194 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 153:159 (2%)153:159 (2%)153:159 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 245:250 (2%)245:250 (2%)245:250 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 78:84 (2%)78:84 (2%)78:84 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 45:50 (2%)45:50 (2%)45:50 (2%) | view | |
| 6 | x 3 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/default/client/js | 18:30 (14%)18:30 (14%)18:30 (14%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 70:76 (2%)70:76 (2%)70:76 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 225:231 (2%)225:231 (2%)225:231 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 58:64 (2%)58:64 (2%)58:64 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 181:186 (2%)181:186 (2%)181:186 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 155:161 (2%)155:161 (2%)155:161 (2%) | view | |
| 6 | x 3 | atoms/default/client/jsatoms/new-model-boosters/client/jsatoms/new-model/client/js | 31:37 (4%)42:48 (1%)34:40 (1%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 184:189 (2%)184:189 (2%)184:189 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 205:211 (2%)205:211 (2%)205:211 (2%) | view | |
| 6 | x 3 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/new-model/client/js | 481:488 (1%)461:468 (1%)510:517 (1%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 97:102 (2%)97:102 (2%)97:102 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 185:190 (2%)185:190 (2%)185:190 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 252:258 (2%)252:258 (2%)252:258 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 117:123 (2%)117:123 (2%)117:123 (2%) | view | |
| 6 | x 3 | atoms/new-model-boosters/client/jsatoms/new-model/client/jsatoms/default/client/js | 5:11 (14%)5:11 (14%)5:11 (14%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 151:156 (2%)151:156 (2%)151:156 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 260:265 (2%)260:265 (2%)260:265 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 201:206 (2%)201:206 (2%)201:206 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 93:98 (2%)93:98 (2%)93:98 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 32:39 (2%)32:39 (2%)32:39 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 230:235 (2%)230:235 (2%)230:235 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 64:73 (2%)64:73 (2%)64:73 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 50:56 (2%)50:56 (2%)50:56 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 221:227 (2%)221:227 (2%)221:227 (2%) | view | |
| 6 | x 3 | atoms/default/client/cssatoms/new-model-boosters/client/cssatoms/new-model/client/css | 60:69 (2%)60:69 (2%)60:69 (2%) | view |
Duplicated Units
The list of top 1 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."