guardian/australian-covid-hotspot-tables
Duplication Places in code with 6 or more lines that are exactly the same. |
Duplication Overall
- 71% duplication:
- 5,248 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 3,738 duplicated lines
- 76 duplicates
Duplication per Extension
Duplication per Component (primary)
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 471 | x 2 | atoms/table2/client/cssatoms/table3/client/css | 1:607 (100%)1:607 (100%) | view | |
| 471 | x 2 | atoms/table1/client/cssatoms/table2/client/css | 1:607 (100%)1:607 (100%) | view | |
| 471 | x 2 | atoms/table1/client/cssatoms/table3/client/css | 1:607 (100%)1:607 (100%) | view | |
| 468 | x 2 | atoms/default/client/cssatoms/table1/client/css | 8:607 (99%)8:607 (99%) | view | |
| 468 | x 2 | atoms/default/client/cssatoms/table2/client/css | 8:607 (99%)8:607 (99%) | view | |
| 468 | x 2 | atoms/default/client/cssatoms/table3/client/css | 8:607 (99%)8:607 (99%) | view | |
| 465 | x 2 | atoms/table3/client/cssatoms/table4/client/css | 11:607 (98%)19:614 (97%) | view | |
| 465 | x 2 | atoms/table2/client/cssatoms/table4/client/css | 11:607 (98%)19:614 (97%) | view | |
| 465 | x 2 | atoms/default/client/cssatoms/table4/client/css | 11:607 (98%)19:614 (97%) | view | |
| 465 | x 2 | atoms/table1/client/cssatoms/table4/client/css | 11:607 (98%)19:614 (97%) | view | |
| 233 | x 2 | atoms/default/client/cssatoms/table2/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/table1/client/cssatoms/table3/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/default/client/cssatoms/table3/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/table1/client/cssatoms/table2/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/default/client/cssatoms/table1/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/table2/client/cssatoms/table3/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/default/client/cssatoms/table4/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/table2/client/cssatoms/table4/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/table3/client/cssatoms/table4/client/css | 1:283 (100%)1:283 (100%) | view | |
| 233 | x 2 | atoms/table1/client/cssatoms/table4/client/css | 1:283 (100%)1:283 (100%) | view | |
| 30 | x 2 | atoms/table1/client/jsatoms/table3/client/js | 1:50 (100%)1:50 (100%) | view | |
| 30 | x 2 | atoms/table1/client/jsatoms/table2/client/js | 1:50 (100%)1:50 (100%) | view | |
| 30 | x 2 | atoms/table2/client/jsatoms/table3/client/js | 1:50 (100%)1:50 (100%) | view | |
| 27 | x 2 | atoms/default/client/jsatoms/table2/client/js | 1:39 (77%)1:39 (90%) | view | |
| 27 | x 2 | atoms/default/client/jsatoms/table3/client/js | 1:39 (77%)1:39 (90%) | view | |
| 27 | x 2 | atoms/default/client/jsatoms/table1/client/js | 1:39 (77%)1:39 (90%) | view | |
| 16 | x 2 | atoms/table2/client/jsatoms/table4/client/js | 1:24 (53%)1:24 (44%) | view | |
| 16 | x 2 | atoms/default/client/jsatoms/table4/client/js | 1:24 (45%)1:24 (44%) | view | |
| 16 | x 2 | atoms/table1/client/jsatoms/table4/client/js | 1:24 (53%)1:24 (44%) | view | |
| 16 | x 2 | atoms/table3/client/jsatoms/table4/client/js | 1:24 (53%)1:24 (44%) | view | |
| 12 | x 2 | atoms/table2/server/templatesatoms/table4/server/templates | 1:23 (100%)1:23 (100%) | view | |
| 12 | x 2 | atoms/table2/server/templatesatoms/table3/server/templates | 1:23 (100%)1:23 (100%) | view | |
| 12 | x 2 | atoms/table3/server/templatesatoms/table4/server/templates | 1:23 (100%)1:23 (100%) | view | |
| 12 | x 2 | atoms/default/server/templatesatoms/table1/server/templates | 7:27 (85%)3:23 (92%) | view | |
| 8 | x 2 | atoms/table1/server/templatesatoms/table3/server/templates | 1:13 (61%)1:13 (66%) | view | |
| 8 | x 2 | atoms/table2/client/jsatoms/table4/client/js | 32:50 (26%)43:55 (22%) | view | |
| 8 | x 2 | atoms/table1/server/templatesatoms/table4/server/templates | 1:13 (61%)1:13 (66%) | view | |
| 8 | x 2 | atoms/table1/server/templatesatoms/table2/server/templates | 1:13 (61%)1:13 (66%) | view | |
| 8 | x 2 | atoms/table1/client/jsatoms/table4/client/js | 32:50 (26%)43:55 (22%) | view | |
| 8 | x 2 | atoms/table3/client/jsatoms/table4/client/js | 32:50 (26%)43:55 (22%) | view | |
| 7 | x 2 | atoms/table3/client/cssatoms/table4/client/css | 1:11 (1%)1:11 (1%) | view | |
| 7 | x 2 | atoms/table2/client/cssatoms/table4/client/css | 1:11 (1%)1:11 (1%) | view | |
| 7 | x 2 | atoms/table1/client/cssatoms/table4/client/css | 1:11 (1%)1:11 (1%) | view | |
| 7 | x 2 | atoms/default/server/templatesatoms/table2/server/templates | 7:17 (50%)3:13 (58%) | view | |
| 7 | x 2 | atoms/default/server/templatesatoms/table4/server/templates | 7:17 (50%)3:13 (58%) | view | |
| 7 | x 2 | atoms/default/server/templatesatoms/table3/server/templates | 7:17 (50%)3:13 (58%) | view | |
| 6 | x 2 | shared/css/guss-typographyshared/css/guss-typography | 188:193 (5%)200:205 (5%) | view | |
| 6 | x 2 | atoms/table2/client/cssatoms/table2/client/css | 330:335 (1%)344:349 (1%) | view | |
| 6 | x 2 | atoms/table3/client/cssatoms/table3/client/css | 330:335 (1%)344:349 (1%) | view | |
| 6 | x 2 | atoms/table4/client/cssatoms/table4/client/css | 337:342 (1%)351:356 (1%) | view |
Most Frequent Duplicates
The list of 50 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 10 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/default/client/css | 330:335 (1%)330:335 (1%)337:342 (1%)330:335 (1%)330:335 (1%)351:356 (1%)344:349 (1%)344:349 (1%)344:349 (1%)344:349 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 46:51 (2%)46:51 (2%)46:51 (2%)46:51 (2%)46:51 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 55:61 (1%)55:61 (1%)62:68 (1%)55:61 (1%)55:61 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 51:58 (2%)51:58 (2%)51:58 (2%)51:58 (2%)51:58 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 421:428 (1%)421:428 (1%)428:435 (1%)421:428 (1%)421:428 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 106:113 (1%)106:113 (1%)113:120 (1%)106:113 (1%)106:113 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 527:533 (1%)527:533 (1%)534:540 (1%)527:533 (1%)527:533 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 91:98 (1%)91:98 (1%)98:105 (1%)91:98 (1%)91:98 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 555:560 (1%)555:560 (1%)562:567 (1%)555:560 (1%)555:560 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 53:60 (2%)53:60 (2%)53:60 (2%)53:60 (2%)53:60 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 466:471 (1%)466:471 (1%)473:478 (1%)466:471 (1%)466:471 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 405:411 (1%)405:411 (1%)412:418 (1%)405:411 (1%)405:411 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 398:405 (1%)398:405 (1%)405:412 (1%)398:405 (1%)398:405 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 497:503 (1%)497:503 (1%)504:510 (1%)497:503 (1%)497:503 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 169:176 (1%)169:176 (1%)176:183 (1%)169:176 (1%)169:176 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 147:153 (1%)147:153 (1%)154:160 (1%)147:153 (1%)147:153 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 93:100 (1%)93:100 (1%)100:107 (1%)93:100 (1%)93:100 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 349:354 (1%)349:354 (1%)356:361 (1%)349:354 (1%)349:354 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 377:383 (1%)377:383 (1%)384:390 (1%)377:383 (1%)377:383 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 120:127 (2%)120:127 (2%)120:127 (2%)120:127 (2%)120:127 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 153:160 (1%)153:160 (1%)160:167 (1%)153:160 (1%)153:160 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 554:559 (1%)554:559 (1%)561:566 (1%)554:559 (1%)554:559 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 597:603 (1%)597:603 (1%)604:610 (1%)597:603 (1%)597:603 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 224:230 (2%)224:230 (2%)224:230 (2%)224:230 (2%)224:230 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 543:549 (1%)543:549 (1%)550:556 (1%)543:549 (1%)543:549 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 563:569 (1%)563:569 (1%)570:576 (1%)563:569 (1%)563:569 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 505:511 (1%)505:511 (1%)512:518 (1%)505:511 (1%)505:511 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 378:384 (1%)378:384 (1%)385:391 (1%)378:384 (1%)378:384 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 388:395 (1%)388:395 (1%)395:402 (1%)388:395 (1%)388:395 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 274:279 (2%)274:279 (2%)274:279 (2%)274:279 (2%)274:279 (2%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 119:126 (2%)119:126 (2%)119:126 (2%)119:126 (2%)119:126 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 382:388 (1%)382:388 (1%)389:395 (1%)382:388 (1%)382:388 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 215:220 (2%)215:220 (2%)215:220 (2%)215:220 (2%)215:220 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 530:537 (1%)530:537 (1%)537:544 (1%)530:537 (1%)530:537 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 276:281 (2%)276:281 (2%)276:281 (2%)276:281 (2%)276:281 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 537:542 (1%)537:542 (1%)544:549 (1%)537:542 (1%)537:542 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 485:492 (1%)485:492 (1%)492:499 (1%)485:492 (1%)485:492 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 331:336 (1%)331:336 (1%)338:343 (1%)331:336 (1%)331:336 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 457:462 (1%)457:462 (1%)464:469 (1%)457:462 (1%)457:462 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 353:360 (1%)353:360 (1%)360:367 (1%)353:360 (1%)353:360 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 415:423 (1%)415:423 (1%)422:430 (1%)415:423 (1%)415:423 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 54:59 (1%)54:59 (1%)61:66 (1%)54:59 (1%)54:59 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 264:269 (1%)264:269 (1%)271:276 (1%)264:269 (1%)264:269 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 345:350 (1%)345:350 (1%)352:357 (1%)345:350 (1%)345:350 (1%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 94:99 (2%)94:99 (2%)94:99 (2%)94:99 (2%)94:99 (2%) | view | |
| 6 | x 5 | atoms/default/client/cssatoms/table2/client/cssatoms/table3/client/cssatoms/table1/client/cssatoms/table4/client/css | 160:170 (2%)160:170 (2%)160:170 (2%)160:170 (2%)160:170 (2%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 525:530 (1%)525:530 (1%)532:537 (1%)525:530 (1%)525:530 (1%) | view | |
| 6 | x 5 | atoms/table1/client/jsatoms/table3/client/jsatoms/table2/client/jsatoms/default/client/jsatoms/table4/client/js | 9:16 (20%)9:16 (20%)9:16 (20%)9:16 (17%)9:16 (16%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 333:338 (1%)333:338 (1%)340:345 (1%)333:338 (1%)333:338 (1%) | view | |
| 6 | x 5 | atoms/table2/client/cssatoms/table3/client/cssatoms/table4/client/cssatoms/table1/client/cssatoms/default/client/css | 230:236 (1%)230:236 (1%)237:243 (1%)230:236 (1%)230:236 (1%) | 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."