facebookresearch / neuromorph
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:
    • 2,143 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 196 duplicated lines
  • 12 duplicates
system9% (196 lines)
Duplication per Extension
py12% (180 lines)
m2% (16 lines)
Duplication per Component (primary)
utils23% (168 lines)
data_preprocessing/utils2% (16 lines)
ROOT10% (12 lines)
model0% (0 lines)
data_preprocessing0% (0 lines)
data0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
19 x 2 utils
utils
interpolation_base.py
interpolation_base.py
249:274 (4%)
374:399 (4%)
view
17 x 2 utils
utils
interpolation_base.py
interpolation_base.py
284:306 (4%)
412:434 (4%)
view
12 x 2 utils
utils
interpolation_base.py
interpolation_base.py
193:205 (2%)
310:322 (2%)
view
10 x 2 utils
utils
interpolation_base.py
interpolation_base.py
563:572 (2%)
598:607 (2%)
view
10 x 2 utils
utils
interpolation_base.py
interpolation_base.py
505:519 (2%)
584:598 (2%)
view
9 x 2 utils
utils
interpolation_base.py
interpolation_base.py
526:534 (2%)
564:572 (2%)
view
9 x 2 utils
utils
interpolation_base.py
interpolation_base.py
526:534 (2%)
599:607 (2%)
view
8 x 2 utils
utils
interpolation_base.py
interpolation_base.py
240:247 (1%)
364:371 (1%)
view
8 x 2 data_preprocessing/utils
data_preprocessing/utils
read_ply.m
read_ply.m
464:474 (1%)
488:498 (1%)
view
8 x 2 utils
utils
interpolation_base.py
interpolation_base.py
310:317 (1%)
440:447 (1%)
view
8 x 2 utils
utils
interpolation_base.py
interpolation_base.py
193:200 (1%)
440:447 (1%)
view
6 x 2 ROOT
ROOT
main_train.py
main_train.py
118:123 (6%)
126:131 (6%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
15 x 2 utils
utils
interpolation_base.py
interpolation_base.py
0:0 
0:0 
view
6 x 2 utils
utils
interpolation_base.py
interpolation_base.py
0:0 
0:0 
view
6 x 2 utils
utils
interpolation_base.py
interpolation_base.py
0:0 
0:0 
view