facebookresearch / neural-scs
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
  • 16% duplication:
    • 2,800 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 453 duplicated lines
  • 26 duplicates
system16% (453 lines)
Duplication per Extension
py16% (439 lines)
yaml6% (14 lines)
Duplication per Component (primary)
automl21/accel57% (250 lines)
automl21/scs_neural/solver8% (94 lines)
automl21/scs_neural/experimentation6% (34 lines)
automl21/scs_neural/utils24% (33 lines)
automl217% (28 lines)
automl21/scs_neural/configs10% (14 lines)
automl21/scs_neural/problem0% (0 lines)
automl21/scs_neural0% (0 lines)

Duplication Between Components (50+ lines)

G automl21/accel automl21/accel automl21/scs_neural/utils automl21/scs_neural/utils automl21/accel--automl21/scs_neural/utils 66

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 26 duplicates...
Size#FoldersFilesLinesCode
33 x 2 automl21/accel
automl21/scs_neural/utils
utils.py
utils.py
6:38 (100%)
133:165 (25%)
view
28 x 2 automl21/accel
automl21/accel
neural_rec.py
neural_rec.py
145:176 (10%)
251:282 (10%)
view
17 x 2 automl21/scs_neural/experimentation
automl21/scs_neural/experimentation
launcher.py
launcher.py
247:264 (3%)
389:406 (3%)
view
13 x 2 automl21/accel
automl21/accel
neural_rec.py
neural_rec.py
128:140 (4%)
234:246 (4%)
view
13 x 2 automl21/scs_neural/solver
automl21/scs_neural/solver
neural_scs_batched.py
neural_scs_batched.py
667:682 (1%)
742:757 (1%)
view
13 x 2 automl21/accel
automl21/accel
aa.py
neural_aa.py
32:46 (33%)
75:89 (16%)
view
12 x 2 automl21/scs_neural/solver
automl21/scs_neural/solver
neural_scs_batched.py
neural_scs_batched.py
519:530 (1%)
551:562 (1%)
view
11 x 2 automl21/scs_neural/solver
automl21/scs_neural/solver
neural_scs_batched.py
neural_scs_batched.py
671:684 (1%)
706:719 (1%)
view
11 x 2 automl21/accel
automl21/accel
neural_rec.py
neural_rec.py
17:27 (4%)
130:140 (4%)
view
11 x 2 automl21/accel
automl21/accel
neural_rec.py
neural_rec.py
17:27 (4%)
236:246 (4%)
view
11 x 2 automl21/accel
automl21/accel
neural_rec.py
neural_rec.py
209:222 (4%)
311:324 (4%)
view
10 x 2 automl21/accel
automl21/accel
neural_rec.py
neural_rec.py
192:204 (3%)
295:307 (3%)
view
10 x 2 automl21/scs_neural/solver
automl21/scs_neural/solver
neural_scs_batched.py
neural_scs_batched.py
706:717 (1%)
746:757 (1%)
view
9 x 2 automl21/scs_neural/solver
automl21/scs_neural/solver
cone_projection.py
cone_projection.py
46:54 (5%)
147:155 (5%)
view
9 x 2 automl21/accel
automl21/accel
neural_aa.py
neural_rec.py
56:66 (11%)
311:322 (3%)
view
9 x 2 automl21/accel
automl21/accel
neural_aa.py
neural_rec.py
56:66 (11%)
209:220 (3%)
view
8 x 2 automl21/accel
automl21/accel
aa.py
neural_rec.py
22:31 (20%)
311:320 (2%)
view
8 x 2 automl21
automl21
enr.py
enr.py
136:145 (2%)
170:178 (2%)
view
8 x 2 automl21/accel
automl21/accel
aa.py
neural_aa.py
22:31 (20%)
56:65 (10%)
view
8 x 2 automl21/accel
automl21/accel
aa.py
neural_rec.py
22:31 (20%)
209:218 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
32 x 2 automl21/accel
automl21/scs_neural/utils
utils.py
utils.py
0:0 
0:0 
view