facebookresearch / FashionPlus
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
  • 27% duplication:
    • 3,891 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,089 duplicated lines
  • 57 duplicates
system27% (1,089 lines)
Duplication per Extension
py27% (1,089 lines)
Duplication per Component (primary)
generation/models20% (236 lines)
separate_vae/data90% (157 lines)
generation/data58% (157 lines)
separate_vae/models31% (152 lines)
generation/util73% (109 lines)
separate_vae/util39% (96 lines)
separate_vae32% (63 lines)
separate_vae/options40% (40 lines)
generation/options30% (40 lines)
classification/data_dict5% (30 lines)
generation5% (9 lines)
classification0% (0 lines)
preprocess0% (0 lines)
postprocess0% (0 lines)

Duplication Between Components (50+ lines)

G generation/data generation/data separate_vae/data separate_vae/data generation/data--separate_vae/data 314 generation/util generation/util separate_vae/util separate_vae/util generation/util--separate_vae/util 205 generation/models generation/models separate_vae/models separate_vae/models generation/models--separate_vae/models 161 generation/options generation/options separate_vae/options separate_vae/options generation/options--separate_vae/options 80

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 57 duplicates...
Size#FoldersFilesLinesCode
56 x 2 generation/util
separate_vae/util
util.py
util.py
103:174 (46%)
75:147 (56%)
view
52 x 2 generation/data
separate_vae/data
base_dataset.py
base_dataset.py
24:115 (54%)
24:115 (54%)
view
43 x 2 generation/data
separate_vae/data
base_dataset.py
base_dataset.py
117:169 (44%)
117:170 (44%)
view
38 x 2 generation/models
separate_vae/models
networks.py
pix2pixhd_networks.py
277:322 (5%)
268:313 (16%)
view
33 x 2 generation/options
separate_vae/options
base_options.py
base_options.py
87:129 (34%)
82:124 (33%)
view
27 x 2 generation/models
generation/models
networks.py
networks.py
593:622 (4%)
688:717 (4%)
view
22 x 2 generation/util
separate_vae/util
util.py
util.py
35:61 (18%)
33:56 (22%)
view
21 x 2 generation/data
separate_vae/data
pickle_dataset.py
pickle_dataset.py
119:146 (22%)
46:73 (48%)
view
21 x 2 generation/models
separate_vae/models
base_model.py
separate_clothing_encoder_models.py
73:96 (31%)
283:306 (8%)
view
19 x 2 generation/models
generation/models
networks.py
networks.py
654:674 (2%)
780:800 (2%)
view
18 x 2 generation/data
separate_vae/data
custom_dataset_data_loader.py
custom_dataset_data_loader.py
27:49 (75%)
24:45 (81%)
view
15 x 2 generation/util
separate_vae/util
util.py
util.py
64:82 (12%)
40:55 (15%)
view
15 x 2 generation/util
generation/util
util.py
util.py
42:60 (12%)
64:82 (12%)
view
13 x 2 separate_vae/util
separate_vae/util
util.py
util.py
24:36 (13%)
40:52 (13%)
view
13 x 2 generation/util
separate_vae/util
util.py
util.py
64:79 (10%)
24:36 (13%)
view
13 x 2 generation/util
separate_vae/util
util.py
util.py
42:57 (10%)
24:36 (13%)
view
12 x 2 separate_vae/models
separate_vae/models
pix2pixhd_networks.py
pix2pixhd_networks.py
146:161 (5%)
241:256 (5%)
view
11 x 2 separate_vae
separate_vae
decode_masks.py
decode_masks.py
63:77 (10%)
101:115 (10%)
view
10 x 2 generation/models
separate_vae/models
networks.py
pix2pixhd_networks.py
306:315 (1%)
281:291 (4%)
view
10 x 2 generation/models
generation/models
networks.py
networks.py
331:343 (1%)
403:415 (1%)
view
Duplicated Units
The list of top 14 duplicated units.
See data for all 14 unit duplicates...
Size#FoldersFilesLinesCode
27 x 2 separate_vae/models
generation/models
pix2pixhd_networks.py
networks.py
0:0 
0:0 
view
22 x 2 separate_vae/util
generation/util
util.py
util.py
0:0 
0:0 
view
22 x 2 separate_vae/data
generation/data
base_dataset.py
base_dataset.py
0:0 
0:0 
view
14 x 2 separate_vae/options
generation/options
base_options.py
base_options.py
0:0 
0:0 
view
12 x 2 separate_vae/data
generation/data
base_dataset.py
base_dataset.py
0:0 
0:0 
view
12 x 2 generation/models
generation/models
networks.py
networks.py
0:0 
0:0 
view
8 x 2 separate_vae/util
generation/util
util.py
util.py
0:0 
0:0 
view
8 x 2 generation/models
generation/models
networks.py
networks.py
0:0 
0:0 
view
7 x 2 separate_vae/models
generation/models
pix2pixhd_networks.py
networks.py
0:0 
0:0 
view
7 x 2 generation/models
generation/models
networks.py
networks.py
0:0 
0:0 
view
6 x 2 separate_vae/models
generation/models
pix2pixhd_networks.py
networks.py
0:0 
0:0 
view
6 x 2 separate_vae/data
generation/data
base_dataset.py
base_dataset.py
0:0 
0:0 
view
6 x 2 separate_vae/data
generation/data
base_dataset.py
base_dataset.py
0:0 
0:0 
view
6 x 2 separate_vae/data
generation/data
base_dataset.py
base_dataset.py
0:0 
0:0 
view