facebookresearch / suncet
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
  • 37% duplication:
    • 3,641 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,363 duplicated lines
  • 78 duplicates
system37% (1,363 lines)
Duplication per Extension
py38% (1,318 lines)
yaml24% (45 lines)
Duplication per Component (primary)
src40% (1,243 lines)
ROOT17% (75 lines)
configs/paws25% (37 lines)
configs/suncet21% (8 lines)

Duplication Between Components (50+ lines)

G ROOT ROOT src src ROOT--src 163

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 78 duplicates...
Size#FoldersFilesLinesCode
141 x 2 src
src
paws_train.py
suncet_train.py
334:496 (38%)
300:462 (40%)
view
46 x 2 src
src
paws_train.py
suncet_train.py
210:265 (12%)
201:256 (13%)
view
27 x 2 src
src
data_manager.py
data_manager.py
164:191 (2%)
294:321 (2%)
view
26 x 2 src
src
resnet.py
wide_resnet.py
273:300 (9%)
94:123 (27%)
view
22 x 2 src
src
paws_train.py
suncet_train.py
115:145 (5%)
107:137 (6%)
view
21 x 2 src
src
paws_train.py
snn_fine_tune.py
418:442 (5%)
334:358 (6%)
view
21 x 2 src
src
snn_fine_tune.py
suncet_train.py
334:358 (6%)
384:408 (6%)
view
20 x 2 ROOT
src
snn_eval.py
suncet_train.py
303:325 (7%)
397:419 (5%)
view
20 x 2 src
src
paws_train.py
suncet_train.py
45:81 (5%)
45:81 (5%)
view
20 x 2 ROOT
src
snn_eval.py
paws_train.py
303:325 (7%)
431:453 (5%)
view
19 x 2 src
src
fine_tune.py
snn_fine_tune.py
282:302 (6%)
273:293 (5%)
view
17 x 2 src
src
snn_fine_tune.py
suncet_train.py
38:71 (5%)
39:73 (4%)
view
16 x 2 src
src
paws_train.py
suncet_train.py
168:185 (4%)
169:186 (4%)
view
15 x 2 src
src
fine_tune.py
snn_fine_tune.py
35:62 (4%)
40:71 (4%)
view
15 x 2 src
src
data_manager.py
data_manager.py
1067:1082 (1%)
1115:1130 (1%)
view
15 x 2 src
src
fine_tune.py
suncet_train.py
341:358 (4%)
384:400 (4%)
view
15 x 2 src
src
fine_tune.py
suncet_train.py
35:62 (4%)
41:73 (4%)
view
15 x 2 src
src
fine_tune.py
paws_train.py
341:358 (4%)
418:434 (4%)
view
15 x 2 src
src
fine_tune.py
snn_fine_tune.py
341:358 (4%)
334:350 (4%)
view
15 x 2 src
src
data_manager.py
data_manager.py
1093:1108 (1%)
1141:1156 (1%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
18 x 2 src
src
resnet.py
wide_resnet.py
0:0 
0:0 
view
10 x 2 src
src
paws_train.py
suncet_train.py
0:0 
0:0 
view
9 x 2 src
src
resnet.py
resnet.py
0:0 
0:0 
view