facebookresearch / pyrobot
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:
    • 14,259 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,953 duplicated lines
  • 241 duplicates
system34% (4,953 lines)
Duplication per Extension
urdf86% (1,713 lines)
py13% (1,009 lines)
rviz100% (856 lines)
yaml55% (773 lines)
srdf72% (289 lines)
launch21% (158 lines)
cpp12% (155 lines)
Duplication per Component (primary)
robots/LoCoBot/locobot_description84% (1,713 lines)
robots/LoCoBot/locobot_moveit_config80% (914 lines)
robots/LoCoBot/locobot_lite_moveit_config76% (674 lines)
robots/LoCoBot/locobot_control19% (483 lines)
src/pyrobot/utils31% (279 lines)
robots/LoCoBot/locobot_navigation17% (249 lines)
src/pyrobot/locobot9% (175 lines)
robots/LoCoBot/locobot_calibration17% (156 lines)
src/pyrobot18% (124 lines)
src/pyrobot/habitat17% (54 lines)
src/pyrobot/vrep_locobot16% (53 lines)
src/pyrobot/allegro_hand18% (33 lines)
pyrobot_bridge/nodes10% (24 lines)
src/pyrobot/ur523% (9 lines)
robots/LoCoBot/locobot_gazebo1% (7 lines)
src/pyrobot/sawyer8% (6 lines)
pyrobot_bridge0% (0 lines)
ROOT0% (0 lines)
robots/LoCoBot/turtlebot_controller0% (0 lines)
src/pyrobot/azure_kinect0% (0 lines)
src/pyrobot/cfg0% (0 lines)
src/pyrobot/kinect20% (0 lines)

Duplication Between Components (50+ lines)

G robots/LoCoBot/locobot_lite_moveit_config robots/LoCoBot/locobot_lite_moveit_config robots/LoCoBot/locobot_moveit_config robots/LoCoBot/locobot_moveit_config robots/LoCoBot/locobot_lite_moveit_config--robots/LoCoBot/locobot_moveit_config 1329 robots/LoCoBot/locobot_navigation robots/LoCoBot/locobot_navigation src/pyrobot/locobot src/pyrobot/locobot robots/LoCoBot/locobot_navigation--src/pyrobot/locobot 116 src/pyrobot/allegro_hand src/pyrobot/allegro_hand src/pyrobot src/pyrobot src/pyrobot/allegro_hand--src/pyrobot 66 robots/LoCoBot/locobot_control robots/LoCoBot/locobot_control robots/LoCoBot/locobot_control--src/pyrobot/locobot 52

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 241 duplicates...
Size#FoldersFilesLinesCode
428 x 2 robots/LoCoBot/locobot_lite_moveit_config/launch
robots/LoCoBot/locobot_moveit_config/launch
rviz
moveit.rviz
moveit.rviz
1:428 (100%)
1:428 (100%)
view
169 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
cmu_locobot_description.urdf
locobot_lite_description.urdf
269:501 (25%)
334:566 (25%)
view
165 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
cmu_locobot_description.urdf
interbotix_locobot_description.urdf
714:964 (25%)
742:992 (24%)
view
152 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
cmu_locobot_description.urdf
interbotix_locobot_description.urdf
296:505 (23%)
332:541 (22%)
view
150 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
interbotix_locobot_description.urdf
locobot_lite_description.urdf
332:537 (22%)
361:566 (22%)
view
123 x 2 robots/LoCoBot/locobot_lite_moveit_config/config
robots/LoCoBot/locobot_moveit_config/config
ompl_planning.yaml
ompl_planning.yaml
1:123 (69%)
1:123 (69%)
view
121 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
cmu_locobot_description.urdf
interbotix_locobot_description.urdf
1:188 (18%)
1:188 (18%)
view
120 x 2 robots/LoCoBot/locobot_lite_moveit_config/launch
robots/LoCoBot/locobot_lite_moveit_config/launch
rviz
moveit.rviz
moveit.rviz
66:185 (28%)
225:344 (28%)
view
120 x 2 robots/LoCoBot/locobot_lite_moveit_config/launch
robots/LoCoBot/locobot_moveit_config/launch
rviz
moveit.rviz
moveit.rviz
66:185 (28%)
225:344 (28%)
view
120 x 2 robots/LoCoBot/locobot_moveit_config/launch
robots/LoCoBot/locobot_moveit_config/launch
rviz
moveit.rviz
moveit.rviz
66:185 (28%)
225:344 (28%)
view
120 x 2 robots/LoCoBot/locobot_lite_moveit_config/launch
robots/LoCoBot/locobot_moveit_config/launch
rviz
moveit.rviz
moveit.rviz
225:344 (28%)
66:185 (28%)
view
91 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
cmu_locobot_description.urdf
locobot_lite_description.urdf
616:743 (13%)
566:693 (13%)
view
54 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
cmu_locobot_description.urdf
interbotix_locobot_description.urdf
556:631 (8%)
593:668 (8%)
view
54 x 2 robots/LoCoBot/locobot_lite_moveit_config/config
robots/LoCoBot/locobot_moveit_config/config
ompl_planning.yaml
ompl_planning.yaml
125:178 (30%)
125:178 (30%)
view
44 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
interbotix_locobot_description.urdf
locobot_lite_description.urdf
594:653 (6%)
248:307 (6%)
view
44 x 2 robots/LoCoBot/locobot_description/urdf
robots/LoCoBot/locobot_description/urdf
urdf
cmu_locobot_description.urdf
locobot_lite_description.urdf
557:616 (6%)
248:307 (6%)
view
39 x 2 robots/LoCoBot/locobot_control/launch
robots/LoCoBot/locobot_control/launch
launch
main.launch
vslam_debug.launch
6:74 (62%)
6:74 (66%)
view
33 x 2 robots/LoCoBot/locobot_moveit_config/config
robots/LoCoBot/locobot_moveit_config/config
srdf
cmu_locobot.srdf
interbotix_locobot.srdf
88:120 (24%)
105:137 (21%)
view
32 x 2 robots/LoCoBot/locobot_n...s/scripts/orb_slam2_ros
src/pyrobot/locobot
pcdlib.py
camera.py
77:152 (14%)
418:497 (15%)
view
31 x 2 robots/LoCoBot/locobot_moveit_config/config
robots/LoCoBot/locobot_moveit_config/config
srdf
cmu_locobot.srdf
interbotix_locobot.srdf
121:151 (22%)
139:169 (20%)
view
Duplicated Units
The list of top 9 duplicated units.
See data for all 9 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 pyrobot_bridge/nodes
src/pyrobot/utils
kinematics.py
util.py
0:0 
0:0 
view
9 x 2 src/pyrobot/locobot
src/pyrobot/vrep_locobot
gripper.py
gripper.py
0:0 
0:0 
view
7 x 3 src/pyrobot/habitat
src/pyrobot/locobot
src/pyrobot/vrep_locobot
camera.py
camera.py
camera.py
0:0 
0:0 
0:0 
view
7 x 2 src/pyrobot/habitat
src/pyrobot/locobot
camera.py
camera.py
0:0 
0:0 
view
7 x 2 src/pyrobot/habitat
src/pyrobot/locobot
camera.py
camera.py
0:0 
0:0 
view
7 x 2 src/pyrobot/habitat
src/pyrobot/locobot
camera.py
camera.py
0:0 
0:0 
view
13 x 3 src/pyrobot/habitat
src/pyrobot
src/pyrobot/vrep_locobot
base.py
core.py
base.py
0:0 
0:0 
0:0 
view
6 x 2 src/pyrobot/locobot
src/pyrobot/vrep_locobot
arm.py
arm.py
0:0 
0:0 
view
15 x 2 src/pyrobot
src/pyrobot/vrep_locobot
core.py
arm.py
0:0 
0:0 
view