facebookresearch / ScaDiver
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
  • 25% duplication:
    • 4,926 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,240 duplicated lines
  • 58 duplicates
system25% (1,240 lines)
Duplication per Extension
yaml87% (958 lines)
py7% (282 lines)
Duplication per Component (primary)
data/spec87% (958 lines)
ROOT8% (242 lines)
bullet6% (40 lines)
data/character0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 58 duplicates...
Size#FoldersFilesLinesCode
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert2.yaml
spec_env_humanoid_imitation_expert4.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert0.yaml
spec_env_humanoid_imitation_expert2.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert3.yaml
spec_env_humanoid_imitation_expert5.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert4.yaml
spec_env_humanoid_imitation_expert6.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert5.yaml
spec_env_humanoid_imitation_expert7.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert1.yaml
spec_env_humanoid_imitation_expert3.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert4.yaml
spec_env_humanoid_imitation_expert5.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert1.yaml
spec_env_humanoid_imitation_expert4.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert6.yaml
spec_env_humanoid_imitation_expert7.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert3.yaml
spec_env_humanoid_imitation_expert6.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert0.yaml
spec_env_humanoid_imitation_expert1.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert2.yaml
spec_env_humanoid_imitation_expert3.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert4.yaml
spec_env_humanoid_imitation_expert7.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert3.yaml
spec_env_humanoid_imitation_expert4.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert0.yaml
spec_env_humanoid_imitation_expert6.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert3.yaml
spec_env_humanoid_imitation_expert7.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert0.yaml
spec_env_humanoid_imitation_expert3.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert2.yaml
spec_env_humanoid_imitation_expert7.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert1.yaml
spec_env_humanoid_imitation_expert6.yaml
3:109 (93%)
3:109 (93%)
view
107 x 2 data/spec
data/spec
spec_env_humanoid_imitation_expert0.yaml
spec_env_humanoid_imitation_expert5.yaml
3:109 (93%)
3:109 (93%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 ROOT
ROOT
env_humanoid_tracking.py
env_humanoid_imitation.py
0:0 
0:0 
view