facebookresearch / Addressing-the-Topological-Defects-of-Disentanglement
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
  • 26% duplication:
    • 3,265 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 853 duplicated lines
  • 55 duplicates
system26% (853 lines)
Duplication per Extension
py26% (853 lines)
Duplication per Component (primary)
ROOT27% (663 lines)
datasets24% (148 lines)
complex_shift_operator16% (42 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 55 duplicates...
Size#FoldersFilesLinesCode
35 x 2 ROOT
ROOT
complex_shift_autoencoder.py
weakly_complex_shift_autoencoder.py
149:189 (12%)
116:162 (11%)
view
23 x 2 datasets
datasets
datasets.py
datasets.py
211:236 (6%)
323:348 (6%)
view
19 x 2 ROOT
ROOT
run_experiments_real.py
run_experiments_real.py
76:95 (4%)
114:133 (4%)
view
18 x 2 ROOT
ROOT
complex_shift_autoencoder.py
weakly_complex_shift_autoencoder.py
385:404 (6%)
204:223 (6%)
view
18 x 2 datasets
datasets
datasets.py
datasets.py
163:184 (4%)
282:303 (4%)
view
18 x 2 ROOT
ROOT
complex_shift_autoencoder.py
weakly_complex_shift_autoencoder.py
310:330 (6%)
379:399 (6%)
view
16 x 2 ROOT
ROOT
complex_shift_autoencoder.py
weakly_complex_shift_autoencoder.py
48:67 (5%)
50:69 (5%)
view
14 x 2 ROOT
ROOT
complex_shift_autoencoder.py
weakly_complex_shift_autoencoder.py
216:248 (4%)
227:259 (4%)
view
14 x 2 ROOT
ROOT
complex_shift_autoencoder.py
weakly_complex_shift_autoencoder.py
282:297 (4%)
349:366 (4%)
view
13 x 2 ROOT
ROOT
run_experiments_real.py
run_experiments_real.py
91:105 (2%)
239:252 (2%)
view
13 x 2 ROOT
ROOT
run_experiments_real.py
run_experiments_real.py
98:110 (2%)
136:148 (2%)
view
12 x 2 ROOT
ROOT
autoencoder.py
cci_variational_autoencoder.py
453:465 (3%)
571:583 (2%)
view
12 x 2 datasets
datasets
datasets.py
datasets.py
146:157 (3%)
263:274 (3%)
view
12 x 2 ROOT
ROOT
models.py
models.py
140:151 (5%)
274:285 (5%)
view
11 x 2 ROOT
ROOT
cci_variational_autoencoder.py
cci_variational_autoencoder.py
498:510 (2%)
524:536 (2%)
view
10 x 2 ROOT
ROOT
autoencoder.py
cci_variational_autoencoder.py
473:484 (2%)
591:602 (2%)
view
10 x 2 ROOT
ROOT
complex_shift_autoencoder.py
weakly_complex_shift_autoencoder.py
270:280 (3%)
337:347 (3%)
view
10 x 2 datasets
datasets
datasets.py
datasets.py
197:209 (2%)
303:315 (2%)
view
9 x 2 datasets
datasets
datasets.py
datasets.py
282:290 (2%)
380:388 (2%)
view
9 x 2 ROOT
ROOT
run_experiments_real.py
run_experiments_real.py
197:205 (2%)
234:242 (2%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
15 x 2 ROOT
ROOT
run_experiments_real.py
run_experiments_real.py
0:0 
0:0 
view
8 x 2 datasets
datasets
datasets.py
datasets.py
0:0 
0:0 
view
8 x 2 ROOT
ROOT
weakly_complex_shift_autoencoder.py
complex_shift_autoencoder.py
0:0 
0:0 
view
7 x 2 datasets
datasets
datasets.py
datasets.py
0:0 
0:0 
view
6 x 4 ROOT
ROOT
ROOT
ROOT
weakly_complex_shift_autoencoder.py
autoencoder.py
cci_variational_autoencoder.py
complex_shift_autoencoder.py
0:0 
0:0 
0:0 
0:0 
view
9 x 2 ROOT
ROOT
weakly_complex_shift_autoencoder.py
complex_shift_autoencoder.py
0:0 
0:0 
view