facebookresearch / hsd3
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:
    • 9,243 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,230 duplicated lines
  • 326 duplicates
system34% (3,230 lines)
Duplication per Extension
py31% (2,616 lines)
yaml61% (614 lines)
Duplication per Component (primary)
hucc/agents45% (1,891 lines)
config63% (498 lines)
ROOT20% (263 lines)
hucc/envs13% (187 lines)
hucc23% (138 lines)
hucc/models17% (137 lines)
config/agent59% (116 lines)
config/hydra/launcher0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 326 duplicates...
Size#FoldersFilesLinesCode
133 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
607:758 (12%)
257:408 (21%)
view
96 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
760:878 (9%)
417:535 (15%)
view
50 x 2 hucc
hucc
replaybuffer.py
replaybuffer.py
223:276 (16%)
305:358 (16%)
view
37 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
1156:1194 (3%)
695:733 (6%)
view
31 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
958:990 (3%)
566:598 (5%)
view
27 x 2 hucc/envs
hucc/envs
ctrlgs.py
ctrlgs.py
281:308 (5%)
319:346 (5%)
view
27 x 2 config
config
humanoid_pretrain.yaml
walker_pretrain.yaml
30:60 (35%)
30:60 (35%)
view
23 x 2 hucc/agents
hucc/agents
sac.py
sacse.py
68:95 (10%)
73:100 (8%)
view
23 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
994:1023 (2%)
601:630 (3%)
view
22 x 2 config
config
humanoid_hsd3.yaml
humanoid_sd.yaml
9:34 (34%)
10:35 (35%)
view
21 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
455:476 (2%)
109:130 (3%)
view
21 x 2 hucc/agents
hucc/agents
sac.py
sachrl.py
270:293 (9%)
435:458 (5%)
view
20 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
520:544 (1%)
154:178 (3%)
view
20 x 2 config
config
humanoid_sd.yaml
walker_sd.yaml
43:65 (32%)
36:58 (35%)
view
19 x 2 hucc/agents
hucc/agents
hiro.py
sachrl.py
41:60 (2%)
40:60 (5%)
view
19 x 2 hucc/agents
hucc/agents
hsdb.py
sachrl.py
429:450 (3%)
270:291 (5%)
view
19 x 2 hucc/agents
hucc/agents
hsd3.py
sachrl.py
772:793 (1%)
270:291 (5%)
view
19 x 2 config
config
humanoid_hsd3.yaml
walker_hsd3.yaml
41:61 (29%)
35:55 (32%)
view
19 x 2 config
config
walker_hsd3.yaml
walker_sd.yaml
13:34 (32%)
13:34 (33%)
view
18 x 2 ROOT
ROOT
pretrain.py
train.py
380:399 (2%)
212:229 (3%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
91 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
0:0 
0:0 
view
63 x 2 hucc/agents
hucc/agents
hsd3.py
hsdb.py
0:0 
0:0 
view
6 x 3 hucc/agents
hucc/agents
hucc/agents
sachrl.py
hsd3.py
hsdb.py
0:0 
0:0 
0:0 
view
6 x 5 hucc/agents
hucc/agents
hucc/agents
hucc/agents
hucc/agents
sac.py
sacmt.py
sacse.py
hiro.py
diayn.py
0:0 
0:0 
0:0 
0:0 
0:0 
view