google / meterstick
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • 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...
Duplication Overall
  • 9% duplication:
    • 4,283 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 399 duplicated lines
  • 31 duplicates
system9% (399 lines)
Duplication per Extension
py9% (399 lines)
Duplication per Component (primary)
ROOT9% (399 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 31 duplicates...
Size#FoldersFilesLinesCode
21 x 2 ROOT
ROOT
confidence_interval_display.py
confidence_interval_display.py
549:569 (4%)
749:769 (4%)
view
16 x 2 ROOT
ROOT
operations.py
operations.py
605:648 (<1%)
722:753 (<1%)
view
16 x 2 ROOT
ROOT
operations.py
operations.py
574:589 (<1%)
691:706 (<1%)
view
12 x 2 ROOT
ROOT
operations.py
operations.py
1780:1792 (<1%)
1850:1862 (<1%)
view
12 x 2 ROOT
ROOT
models.py
models.py
315:326 (3%)
353:364 (3%)
view
10 x 2 ROOT
ROOT
models.py
models.py
273:282 (2%)
309:318 (2%)
view
10 x 2 ROOT
ROOT
operations.py
operations.py
593:603 (<1%)
710:720 (<1%)
view
9 x 2 ROOT
ROOT
models.py
models.py
330:338 (2%)
369:377 (2%)
view
9 x 2 ROOT
ROOT
metrics.py
metrics.py
1521:1529 (<1%)
1580:1588 (<1%)
view
8 x 2 ROOT
ROOT
models.py
models.py
225:232 (2%)
255:262 (2%)
view
8 x 2 ROOT
ROOT
metrics.py
operations.py
532:539 (<1%)
1520:1527 (<1%)
view
7 x 2 ROOT
ROOT
operations.py
operations.py
1292:1298 (<1%)
2024:2030 (<1%)
view
7 x 2 ROOT
ROOT
operations.py
operations.py
471:477 (<1%)
513:519 (<1%)
view
7 x 2 ROOT
ROOT
operations.py
operations.py
489:495 (<1%)
533:539 (<1%)
view
7 x 2 ROOT
ROOT
operations.py
operations.py
2452:2498 (<1%)
2517:2576 (<1%)
view
6 x 2 ROOT
ROOT
metrics.py
operations.py
496:501 (<1%)
900:905 (<1%)
view
6 x 2 ROOT
ROOT
operations.py
operations.py
119:124 (<1%)
2024:2029 (<1%)
view
6 x 2 ROOT
ROOT
metrics.py
operations.py
496:501 (<1%)
156:161 (<1%)
view
6 x 2 ROOT
ROOT
operations.py
operations.py
119:124 (<1%)
1292:1297 (<1%)
view
6 x 2 ROOT
ROOT
operations.py
operations.py
817:822 (<1%)
2024:2029 (<1%)
view