facebookresearch / bipedal-skills
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
  • 15% duplication:
    • 2,003 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 304 duplicated lines
  • 38 duplicates
system15% (304 lines)
Duplication per Extension
py15% (304 lines)
Duplication per Component (primary)
bisk/tasks21% (254 lines)
bisk7% (36 lines)
bisk/features6% (14 lines)
ROOT0% (0 lines)
exp0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 38 duplicates...
Size#FoldersFilesLinesCode
18 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
168:186 (10%)
134:152 (12%)
view
11 x 2 bisk
bisk
helpers.py
helpers.py
133:143 (4%)
157:167 (4%)
view
11 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
51:62 (6%)
50:61 (7%)
view
11 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
197:207 (6%)
163:173 (7%)
view
10 x 2 bisk/tasks
bisk/tasks
polebalance.py
polebalance.py
129:138 (5%)
164:173 (5%)
view
9 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
83:93 (5%)
77:87 (6%)
view
7 x 2 bisk/features
bisk/features
base.py
joints.py
33:39 (5%)
85:91 (7%)
view
7 x 2 bisk
bisk/tasks
helpers.py
gaps.py
57:63 (3%)
61:67 (3%)
view
7 x 2 bisk
bisk/tasks
single_robot.py
polebalance.py
151:159 (5%)
200:208 (3%)
view
6 x 2 bisk/tasks
bisk/tasks
gaps.py
hurdles.py
40:45 (3%)
37:42 (6%)
view
6 x 2 bisk/tasks
bisk/tasks
hurdles.py
polebalance.py
114:120 (6%)
238:244 (3%)
view
6 x 2 bisk/tasks
bisk/tasks
goalwall.py
goalwall.py
101:106 (2%)
124:129 (2%)
view
6 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
24:30 (3%)
25:31 (4%)
view
6 x 2 bisk/tasks
bisk/tasks
hurdles.py
hurdleslimbo.py
44:50 (6%)
68:74 (3%)
view
6 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
178:183 (3%)
137:142 (4%)
view
6 x 2 bisk/tasks
bisk/tasks
hurdles.py
stairs.py
44:50 (6%)
47:53 (3%)
view
6 x 2 bisk/tasks
bisk/tasks
hurdles.py
limbo.py
37:42 (6%)
60:65 (4%)
view
6 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
171:176 (3%)
144:149 (4%)
view
6 x 2 bisk/tasks
bisk/tasks
goalwall.py
goalwall.py
124:129 (2%)
146:151 (2%)
view
6 x 2 bisk/tasks
bisk/tasks
gaps.py
limbo.py
47:53 (3%)
67:73 (4%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
15 x 2 bisk/tasks
bisk/tasks
hurdleslimbo.py
limbo.py
0:0 
0:0 
view