facebookresearch / deepcluster
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
  • 5% duplication:
    • 1,566 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 90 duplicated lines
  • 5 duplicates
system5% (90 lines)
Duplication per Extension
py5% (90 lines)
Duplication per Component (primary)
models41% (62 lines)
visu14% (22 lines)
ROOT<1% (6 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
12 x 2 models
models
alexnet.py
vgg16.py
65:76 (16%)
59:71 (16%)
view
12 x 2 models
models
alexnet.py
vgg16.py
44:56 (16%)
38:50 (16%)
view
8 x 2 visu
visu
activ-retrieval.py
gradient_ascent.py
37:46 (10%)
48:57 (9%)
view
7 x 2 models
models
alexnet.py
vgg16.py
32:39 (9%)
27:33 (9%)
view
6 x 2 ROOT
visu
main.py
activ-retrieval.py
120:125 (2%)
49:54 (8%)
view