facebookresearch / PoincareMaps
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:
    • 1,604 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 150 duplicated lines
  • 19 duplicates
system9% (150 lines)
Duplication per Extension
py9% (150 lines)
Duplication per Component (primary)
ROOT9% (150 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
10 x 2 ROOT
ROOT
coldict.py
coldict.py
8:17 (7%)
164:173 (7%)
view
9 x 2 ROOT
ROOT
poincare_maps.py
visualize.py
63:71 (2%)
69:77 (5%)
view
8 x 2 ROOT
ROOT
poincare_maps.py
visualize.py
28:35 (2%)
21:28 (4%)
view
8 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
314:324 (2%)
420:430 (2%)
view
8 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
265:275 (2%)
420:430 (2%)
view
8 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
265:275 (2%)
314:324 (2%)
view
7 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
361:369 (2%)
421:430 (2%)
view
7 x 2 ROOT
ROOT
coldict.py
coldict.py
20:26 (5%)
155:161 (5%)
view
7 x 2 ROOT
ROOT
interpolation.py
poincare_maps.py
101:108 (5%)
361:369 (2%)
view
7 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
315:324 (2%)
361:369 (2%)
view
7 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
266:275 (2%)
361:369 (2%)
view
7 x 2 ROOT
ROOT
interpolation.py
poincare_maps.py
101:108 (5%)
421:430 (2%)
view
7 x 2 ROOT
ROOT
interpolation.py
poincare_maps.py
101:108 (5%)
315:324 (2%)
view
7 x 2 ROOT
ROOT
interpolation.py
poincare_maps.py
101:108 (5%)
266:275 (2%)
view
7 x 2 ROOT
ROOT
poincare_maps.py
visualize.py
52:59 (2%)
60:67 (4%)
view
6 x 2 ROOT
ROOT
decoder.py
poincare_maps.py
48:53 (2%)
63:68 (1%)
view
6 x 2 ROOT
ROOT
decoder.py
visualize.py
48:53 (2%)
69:74 (3%)
view
6 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
385:390 (1%)
448:453 (1%)
view
6 x 2 ROOT
ROOT
poincare_maps.py
poincare_maps.py
378:383 (1%)
441:446 (1%)
view