facebookresearch / fbooja
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
  • 24% duplication:
    • 3,527 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 868 duplicated lines
  • 34 duplicates
system24% (868 lines)
Duplication per Extension
py63% (750 lines)
tex5% (112 lines)
bib2% (6 lines)
Duplication per Component (primary)
ROOT63% (750 lines)
tex5% (118 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 34 duplicates...
Size#FoldersFilesLinesCode
53 x 2 ROOT
ROOT
bootstrap.py
bootstrap2.py
156:223 (29%)
163:230 (29%)
view
41 x 2 ROOT
ROOT
jackknife.py
jackknife2.py
126:178 (38%)
135:187 (39%)
view
38 x 2 ROOT
ROOT
admm.py
admm2.py
216:342 (18%)
224:350 (18%)
view
33 x 2 ROOT
ROOT
bootstrap.py
bootstrap2.py
239:275 (18%)
246:282 (18%)
view
32 x 2 ROOT
ROOT
bootstrap.py
jackknife2.py
171:208 (17%)
145:182 (30%)
view
32 x 2 ROOT
ROOT
bootstrap2.py
jackknife.py
178:215 (17%)
136:173 (30%)
view
32 x 2 ROOT
ROOT
bootstrap.py
jackknife.py
171:208 (17%)
136:173 (30%)
view
32 x 2 ROOT
ROOT
bootstrap2.py
jackknife2.py
178:215 (17%)
145:182 (30%)
view
26 x 2 ROOT
ROOT
admm.py
admm2.py
85:160 (12%)
86:161 (12%)
view
19 x 2 ROOT
ROOT
admm.py
admm2.py
544:565 (9%)
549:570 (9%)
view
17 x 2 ROOT
ROOT
admm.py
admm2.py
359:385 (8%)
366:392 (8%)
view
16 x 2 ROOT
ROOT
bootstrap2.py
jackknife2.py
116:136 (8%)
91:111 (15%)
view
15 x 2 ROOT
ROOT
admm.py
admm2.py
433:511 (7%)
441:519 (7%)
view
14 x 2 ROOT
ROOT
admm.py
admm2.py
568:585 (6%)
573:590 (6%)
view
14 x 2 ROOT
ROOT
admm.py
admm2.py
404:426 (6%)
411:433 (6%)
view
13 x 2 ROOT
ROOT
admm.py
admm2.py
517:531 (6%)
525:539 (6%)
view
12 x 2 tex
tex
tex
fbooja.tex
fbooja.tex
836:855 (<1%)
1647:1666 (<1%)
view
12 x 2 ROOT
ROOT
bootstrap.py
bootstrap2.py
225:237 (6%)
232:244 (6%)
view
12 x 2 tex
tex
tex
fbooja.tex
fbooja.tex
814:833 (<1%)
1374:1393 (<1%)
view
12 x 2 tex
tex
tex
fbooja.tex
fbooja.tex
857:876 (<1%)
1794:1813 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
63 x 2 ROOT
ROOT
admm.py
admm2.py
0:0 
0:0 
view