facebookresearch / deepmeg-recurrent-encoder
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
  • 10% duplication:
    • 2,027 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 204 duplicated lines
  • 5 duplicates
system10% (204 lines)
Duplication per Extension
py10% (204 lines)
Duplication per Component (primary)
neural/linear16% (123 lines)
neural6% (81 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G neural/linear neural/linear neural neural neural/linear--neural 162

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
38 x 2 neural/linear
neural
stats.py
visuals.py
293:346 (16%)
126:179 (17%)
view
29 x 2 neural/linear
neural
stats.py
visuals.py
238:284 (12%)
66:112 (13%)
view
21 x 2 neural/linear
neural/linear
arx.py
lin_model_template.py
21:50 (27%)
23:52 (12%)
view
7 x 2 neural
neural/linear
__main__.py
__main__.py
99:108 (3%)
55:63 (3%)
view
7 x 2 neural/linear
neural
stats.py
visuals.py
215:222 (2%)
42:49 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
25 x 2 neural/linear
neural/linear
arx.py
lin_model_template.py
0:0 
0:0 
view