aws-samples / aws-robomaker-sample-application-meirorunner
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
  • 65% duplication:
    • 11,516 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 7,577 duplicated lines
  • 60,777 duplicates
system65% (7,577 lines)
Duplication per Extension
dae67% (6,049 lines)
xacro92% (1,275 lines)
py21% (241 lines)
launch20% (12 lines)
Duplication per Component (primary)
simulation_ws/src/meiro_runner_simulation/meshes67% (6,049 lines)
simulation_ws/src/turtlebot3_description_reduced_mesh/urdf92% (1,275 lines)
robot_ws/src/rl_agent/markov17% (121 lines)
ROOT33% (104 lines)
robot_ws/src/turtlebot_controller/robomaker20% (16 lines)
robot_ws/src/meiro_runner_robot/launch40% (12 lines)
robot_ws/src/rl_agent0% (0 lines)
robot_ws/src/turtlebot_controller0% (0 lines)
simulation_ws/src/meiro_runner_simulation/launch0% (0 lines)
simulation_ws/src/turtlebot3_description_reduced_mesh/launch0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 60,777 duplicates...
Size#FoldersFilesLinesCode
1012 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
821:1832 (45%)
737:1748 (15%)
view
374 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
241:614 (16%)
241:614 (5%)
view
234 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
1993:2226 (10%)
5583:5816 (3%)
view
130 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
653:782 (5%)
611:740 (1%)
view
103 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_burger.urdf.xacro
turtlebot3_burger_for_autorace.urdf.x...
6:161 (96%)
6:161 (81%)
view
102 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
138:239 (4%)
138:239 (1%)
view
95 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
10:104 (4%)
10:104 (1%)
view
94 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_waffle.urdf.xacro
turtlebot3_waffle_pi.urdf.xacro
25:169 (59%)
20:164 (66%)
view
85 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_waffle_for_open_manipulato...
turtlebot3_waffle_pi_for_open_manipul...
62:193 (53%)
57:188 (60%)
view
65 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_waffle.gazebo.xacro
turtlebot3_waffle_pi.gazebo.xacro
63:146 (43%)
63:147 (47%)
view
58 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_burger.gazebo.xacro
turtlebot3_burger_for_autorace.gazebo...
4:76 (56%)
5:77 (44%)
view
50 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_burger.gazebo.xacro
turtlebot3_waffle.gazebo.xacro
66:130 (48%)
77:141 (33%)
view
50 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_burger.gazebo.xacro
turtlebot3_waffle_pi.gazebo.xacro
66:130 (48%)
77:141 (36%)
view
48 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_burger_for_autorace.gazebo...
turtlebot3_waffle_pi.gazebo.xacro
78:142 (37%)
89:153 (34%)
view
46 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_waffle.urdf.xacro
turtlebot3_waffle_for_open_manipulato...
94:164 (28%)
94:164 (28%)
view
46 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_waffle_pi.urdf.xacro
turtlebot3_waffle_pi_for_open_manipul...
89:159 (32%)
89:159 (32%)
view
46 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
779:824 (2%)
5357:5402 (<1%)
view
46 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_waffle.urdf.xacro
turtlebot3_waffle_pi_for_open_manipul...
94:164 (28%)
89:159 (32%)
view
46 x 2 simulation_ws/src/turtle...ption_reduced_mesh/urdf
simulation_ws/src/turtle...ption_reduced_mesh/urdf
xacro
turtlebot3_waffle_for_open_manipulato...
turtlebot3_waffle_pi.urdf.xacro
94:164 (28%)
89:159 (32%)
view
46 x 2 simulation_ws/src/meiro_runner_simulation/meshes
simulation_ws/src/meiro_runner_simulation/meshes
dae
mazeroom.dae
mazeroom_large.dae
611:656 (2%)
5315:5360 (<1%)
view