facebookresearch / DoodlerGAN
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
  • 34% duplication:
    • 2,365 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 818 duplicated lines
  • 49 duplicates
system34% (818 lines)
Duplication per Extension
py34% (818 lines)
Duplication per Component (primary)
ROOT34% (818 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 49 duplicates...
Size#FoldersFilesLinesCode
44 x 2 ROOT
ROOT
generate_creative_birds.py
generate_creative_creatures.py
62:118 (14%)
67:122 (12%)
view
38 x 2 ROOT
ROOT
part_generator.py
part_selector.py
237:286 (5%)
175:224 (10%)
view
25 x 2 ROOT
ROOT
generate_creative_birds.py
generate_creative_creatures.py
28:56 (8%)
32:61 (6%)
view
17 x 2 ROOT
ROOT
data_process.py
data_process.py
37:53 (9%)
102:118 (9%)
view
17 x 2 ROOT
ROOT
part_generator.py
part_selector.py
444:463 (2%)
228:247 (4%)
view
15 x 2 ROOT
ROOT
generate_creative_birds.py
part_generator.py
75:91 (5%)
121:137 (2%)
view
15 x 2 ROOT
ROOT
generate_creative_creatures.py
part_generator.py
80:96 (4%)
121:137 (2%)
view
15 x 2 ROOT
ROOT
inception.py
inception.py
295:311 (7%)
328:344 (7%)
view
14 x 2 ROOT
ROOT
generate_creative_birds.py
generate_creative_creatures.py
254:267 (4%)
348:362 (3%)
view
14 x 2 ROOT
ROOT
data_process.py
data_process.py
203:216 (7%)
220:233 (7%)
view
13 x 2 ROOT
ROOT
generate_creative_birds.py
generate_creative_creatures.py
165:179 (4%)
175:189 (3%)
view
12 x 2 ROOT
ROOT
part_generator.py
part_selector.py
884:897 (1%)
468:480 (3%)
view
12 x 2 ROOT
ROOT
data_process.py
part_generator.py
18:32 (6%)
249:263 (1%)
view
12 x 2 ROOT
ROOT
data_process.py
part_selector.py
18:32 (6%)
187:201 (3%)
view
11 x 2 ROOT
ROOT
part_generator.py
part_selector.py
869:882 (1%)
453:466 (3%)
view
10 x 2 ROOT
ROOT
run_part_generator.py
run_part_selector.py
34:43 (12%)
29:38 (15%)
view
10 x 2 ROOT
ROOT
generate_creative_birds.py
generate_creative_creatures.py
349:360 (3%)
441:452 (2%)
view
9 x 2 ROOT
ROOT
generate_creative_birds.py
generate_creative_creatures.py
297:305 (3%)
390:398 (2%)
view
9 x 2 ROOT
ROOT
part_generator.py
part_generator.py
685:697 (1%)
729:741 (1%)
view
9 x 2 ROOT
ROOT
generate_creative_birds.py
generate_creative_creatures.py
269:277 (3%)
364:372 (2%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
33 x 2 ROOT
ROOT
part_generator.py
part_selector.py
0:0 
0:0 
view
15 x 2 ROOT
ROOT
generate_creative_creatures.py
generate_creative_birds.py
0:0 
0:0 
view
10 x 2 ROOT
ROOT
generate_creative_creatures.py
generate_creative_birds.py
0:0 
0:0 
view
9 x 2 ROOT
ROOT
part_generator.py
part_selector.py
0:0 
0:0 
view
7 x 2 ROOT
ROOT
generate_creative_creatures.py
generate_creative_birds.py
0:0 
0:0 
view
6 x 3 ROOT
ROOT
ROOT
part_generator.py
generate_creative_creatures.py
generate_creative_birds.py
0:0 
0:0 
0:0 
view
6 x 2 ROOT
ROOT
part_generator.py
part_selector.py
0:0 
0:0 
view
6 x 2 ROOT
ROOT
part_generator.py
part_selector.py
0:0 
0:0 
view