facebookresearch / FaderNetworks
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
  • 6% duplication:
    • 1,148 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 78 duplicated lines
  • 6 duplicates
system6% (78 lines)
Duplication per Extension
py6% (78 lines)
Duplication per Component (primary)
src5% (42 lines)
ROOT14% (36 lines)
data0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src
src
evaluation.py
evaluation.py
108:118 (5%)
141:151 (5%)
view
6 x 2 src
src
model.py
model.py
165:171 (2%)
236:242 (2%)
view
6 x 2 ROOT
ROOT
classifier.py
train.py
38:43 (7%)
65:70 (5%)
view
6 x 2 ROOT
ROOT
classifier.py
train.py
46:51 (7%)
75:80 (5%)
view
6 x 2 src
src
evaluation.py
training.py
26:33 (3%)
29:36 (3%)
view
6 x 2 ROOT
ROOT
classifier.py
train.py
24:29 (7%)
21:26 (5%)
view