facebookresearch / neural_stpp
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
  • 8% duplication:
    • 3,350 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 298 duplicated lines
  • 30 duplicates
system8% (298 lines)
Duplication per Extension
py8% (278 lines)
pyx21% (20 lines)
Duplication per Component (primary)
models/spatial19% (163 lines)
ROOT7% (105 lines)
models/temporal8% (30 lines)
flow_layers0% (0 lines)
diffeq_layers0% (0 lines)
models0% (0 lines)
data0% (0 lines)

Duplication Between Components (50+ lines)

G models/spatial models/spatial models/temporal models/temporal models/spatial--models/temporal 60

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 30 duplicates...
Size#FoldersFilesLinesCode
14 x 2 models/spatial
models/spatial
cond_gmm.py
jumpcnf.py
71:97 (15%)
140:166 (10%)
view
14 x 2 models/spatial
models/spatial
attncnf.py
jumpcnf.py
175:201 (7%)
140:166 (10%)
view
14 x 2 models/spatial
models/spatial
attncnf.py
cond_gmm.py
175:201 (7%)
71:97 (15%)
view
12 x 2 models/spatial
models/spatial
attncnf.py
cond_gmm.py
204:217 (6%)
121:134 (13%)
view
11 x 2 models/spatial
models/temporal
cnf.py
neural.py
162:172 (6%)
375:385 (3%)
view
10 x 2 ROOT
ROOT
pyx
data_utils_fast.pyx
data_utils_fast.pyx
33:42 (10%)
88:97 (10%)
view
9 x 2 models/spatial
models/spatial
attncnf.py
jumpcnf.py
101:122 (5%)
54:75 (6%)
view
8 x 2 ROOT
ROOT
train_stpp.py
train_stpp.py
208:215 (1%)
223:230 (1%)
view
8 x 2 ROOT
ROOT
viz_dataset.py
viz_dataset.py
83:91 (5%)
128:136 (5%)
view
8 x 2 models/spatial
models/spatial
attention.py
attention.py
52:61 (4%)
128:137 (4%)
view
8 x 2 ROOT
ROOT
viz_dataset.py
viz_dataset.py
39:47 (5%)
63:71 (5%)
view
7 x 2 models/spatial
models/spatial
cond_gmm.py
gmm.py
121:127 (7%)
88:94 (15%)
view
7 x 2 models/spatial
models/spatial
attncnf.py
gmm.py
204:210 (3%)
88:94 (15%)
view
7 x 2 models/spatial
models/spatial
indepcnf.py
jumpcnf.py
81:87 (16%)
197:203 (5%)
view
7 x 2 ROOT
ROOT
train_stpp.py
train_stpp.py
208:214 (1%)
240:246 (1%)
view
7 x 2 models/spatial
models/spatial
gmm.py
jumpcnf.py
88:94 (15%)
197:203 (5%)
view
7 x 2 models/spatial
models/spatial
gmm.py
indepcnf.py
88:94 (15%)
81:87 (16%)
view
7 x 2 models/spatial
models/spatial
attncnf.py
jumpcnf.py
204:210 (3%)
197:203 (5%)
view
7 x 2 models/spatial
models/temporal
attncnf.py
neural.py
240:250 (3%)
399:409 (2%)
view
7 x 2 ROOT
ROOT
train_stpp.py
train_stpp.py
223:229 (1%)
240:246 (1%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
21 x 3 models/spatial
models/spatial
models/spatial
jumpcnf.py
cond_gmm.py
attncnf.py
0:0 
0:0 
0:0 
view
10 x 2 models/temporal
models/spatial
neural.py
cnf.py
0:0 
0:0 
view
6 x 5 models/spatial
models/spatial
models/spatial
models/spatial
models/spatial
jumpcnf.py
gmm.py
indepcnf.py
cond_gmm.py
attncnf.py
0:0 
0:0 
0:0 
0:0 
0:0 
view