facebookresearch / AutoCTR
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
  • 37% duplication:
    • 11,678 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,422 duplicated lines
  • 4,059 duplicates
system37% (4,422 lines)
Duplication per Extension
py38% (4,422 lines)
Duplication per Component (primary)
gen-py/config47% (2,222 lines)
gen-py/block_config51% (1,012 lines)
trainers69% (448 lines)
nasrec21% (398 lines)
scripts20% (268 lines)
utils11% (74 lines)
if0% (0 lines)
models0% (0 lines)
gen-py0% (0 lines)

Duplication Between Components (50+ lines)

G gen-py/block_config gen-py/block_config gen-py/config gen-py/config gen-py/block_config--gen-py/config 2658

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 4,059 duplicates...
Size#FoldersFilesLinesCode
53 x 2 trainers
trainers
simple.py
simple_final.py
190:261 (22%)
225:289 (19%)
view
42 x 2 trainers
trainers
simple.py
simple_final.py
136:186 (17%)
166:217 (15%)
view
42 x 2 trainers
trainers
simple.py
simple_final.py
72:118 (17%)
80:124 (15%)
view
36 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
1068:1109 (1%)
1205:1246 (1%)
view
36 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
931:972 (1%)
1205:1246 (1%)
view
36 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
931:972 (1%)
1068:1109 (1%)
view
34 x 2 gen-py/config
gen-py/config
ttypes.py
ttypes.py
914:950 (<1%)
3329:3365 (<1%)
view
34 x 2 gen-py/config
gen-py/config
ttypes.py
ttypes.py
914:950 (<1%)
3390:3426 (<1%)
view
34 x 2 gen-py/config
gen-py/config
ttypes.py
ttypes.py
914:950 (<1%)
3451:3487 (<1%)
view
34 x 2 gen-py/config
gen-py/config
ttypes.py
ttypes.py
2627:2663 (<1%)
3390:3426 (<1%)
view
34 x 2 gen-py/config
gen-py/config
ttypes.py
ttypes.py
2627:2663 (<1%)
3329:3365 (<1%)
view
34 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
846:880 (1%)
1259:1293 (1%)
view
34 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
846:880 (1%)
1441:1475 (1%)
view
34 x 2 gen-py/config
gen-py/config
ttypes.py
ttypes.py
2627:2663 (<1%)
3451:3487 (<1%)
view
34 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
983:1017 (1%)
1120:1154 (1%)
view
34 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
491:525 (1%)
1259:1293 (1%)
view
34 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
491:525 (1%)
1441:1475 (1%)
view
34 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
983:1017 (1%)
1441:1475 (1%)
view
34 x 2 gen-py/config
gen-py/config
ttypes.py
ttypes.py
3329:3365 (<1%)
3390:3426 (<1%)
view
34 x 2 gen-py/block_config
gen-py/config
ttypes.py
ttypes.py
210:246 (1%)
3451:3487 (<1%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
19 x 2 gen-py/block_config
gen-py/block_config
ttypes.py
ttypes.py
0:0 
0:0 
view
18 x 3 gen-py/config
gen-py/config
gen-py/block_config
ttypes.py
ttypes.py
ttypes.py
0:0 
0:0 
0:0 
view
13 x 2 trainers
trainers
simple_final.py
simple.py
0:0 
0:0 
view