aws-robotics / aws-robomaker-robotics-curriculum
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
  • 64% duplication:
    • 6,747 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,340 duplicated lines
  • 252 duplicates
system64% (4,340 lines)
Duplication per Extension
yml50% (1,242 lines)
scss98% (1,195 lines)
vtt53% (650 lines)
css100% (620 lines)
html77% (610 lines)
bib5% (23 lines)
Duplication per Component (primary)
intro-ros-ros2/img88% (325 lines)
getting-started-with-aws-robomaker/img80% (325 lines)
intro-ros-ros2/_sass98% (303 lines)
getting-started-with-ubuntu/_sass98% (303 lines)
getting-started-with-aws-robomaker/_sass98% (303 lines)
realistic-simulation-with-gazebo/_sass98% (303 lines)
fundamentals-of-robotics/_sass98% (303 lines)
intro-ros-ros2100% (226 lines)
fundamentals-of-robotics100% (226 lines)
getting-started-with-ubuntu100% (226 lines)
realistic-simulation-with-gazebo100% (226 lines)
getting-started-with-aws-robomaker100% (226 lines)
fundamentals-of-robotics/_includes78% (136 lines)
realistic-simulation-with-gazebo/_includes79% (130 lines)
intro-ros-ros2/_includes79% (130 lines)
getting-started-with-ubuntu/_includes73% (92 lines)
getting-started-with-aws-robomaker/_includes73% (92 lines)
intro-ros-ros2/assets100% (60 lines)
fundamentals-of-robotics/assets100% (60 lines)
realistic-simulation-with-gazebo/assets100% (60 lines)
getting-started-with-aws-robomaker/assets100% (60 lines)
getting-started-with-ubuntu/assets100% (60 lines)
getting-started-with-aws-robomaker/_data17% (32 lines)
intro-ros-ros2/_data14% (26 lines)
fundamentals-of-robotics/_data12% (26 lines)
fundamentals-of-robotics/_bibliography16% (23 lines)
getting-started-with-ubuntu/_data4% (14 lines)
realistic-simulation-with-gazebo/_data3% (14 lines)
getting-started-with-ubuntu/_layouts100% (6 lines)
realistic-simulation-with-gazebo/_layouts100% (6 lines)
intro-ros-ros2/_layouts100% (6 lines)
getting-started-with-aws-robomaker/_layouts100% (6 lines)
fundamentals-of-robotics/_layouts100% (6 lines)
intro-ros-ros2/_bibliography0% (0 lines)
getting-started-with-ubuntu/img0% (0 lines)
getting-started-with-ubuntu/_bibliography0% (0 lines)
realistic-simulation-with-gazebo/img0% (0 lines)
realistic-simulation-with-gazebo/_bibliography0% (0 lines)
fundamentals-of-robotics/img0% (0 lines)
getting-started-with-aws-robomaker/_bibliography0% (0 lines)

Duplication Between Components (50+ lines)

G getting-started-with-aws-robomaker/img getting-started-with-aws-robomaker/img intro-ros-ros2/img intro-ros-ros2/img getting-started-with-aws-robomaker/img--intro-ros-ros2/img 650 getting-started-with-aws-robomaker/_sass getting-started-with-aws-robomaker/_sass getting-started-with-ubuntu/_sass getting-started-with-ubuntu/_sass getting-started-with-aws-robomaker/_sass--getting-started-with-ubuntu/_sass 606 realistic-simulation-with-gazebo/_sass realistic-simulation-with-gazebo/_sass getting-started-with-aws-robomaker/_sass--realistic-simulation-with-gazebo/_sass 606 intro-ros-ros2/_sass intro-ros-ros2/_sass getting-started-with-aws-robomaker/_sass--intro-ros-ros2/_sass 606 getting-started-with-ubuntu/_sass--realistic-simulation-with-gazebo/_sass 606 getting-started-with-ubuntu/_sass--intro-ros-ros2/_sass 606 fundamentals-of-robotics/_sass fundamentals-of-robotics/_sass fundamentals-of-robotics/_sass--getting-started-with-aws-robomaker/_sass 606 fundamentals-of-robotics/_sass--getting-started-with-ubuntu/_sass 606 fundamentals-of-robotics/_sass--realistic-simulation-with-gazebo/_sass 606 fundamentals-of-robotics/_sass--intro-ros-ros2/_sass 606 intro-ros-ros2/_sass--realistic-simulation-with-gazebo/_sass 606 intro-ros-ros2 intro-ros-ros2 realistic-simulation-with-gazebo realistic-simulation-with-gazebo intro-ros-ros2--realistic-simulation-with-gazebo 452 fundamentals-of-robotics fundamentals-of-robotics fundamentals-of-robotics--intro-ros-ros2 452 fundamentals-of-robotics--realistic-simulation-with-gazebo 452 getting-started-with-aws-robomaker getting-started-with-aws-robomaker fundamentals-of-robotics--getting-started-with-aws-robomaker 452 getting-started-with-ubuntu getting-started-with-ubuntu fundamentals-of-robotics--getting-started-with-ubuntu 452 getting-started-with-aws-robomaker--intro-ros-ros2 452 getting-started-with-aws-robomaker--realistic-simulation-with-gazebo 452 getting-started-with-aws-robomaker--getting-started-with-ubuntu 452 getting-started-with-ubuntu--intro-ros-ros2 452 getting-started-with-ubuntu--realistic-simulation-with-gazebo 452 fundamentals-of-robotics/_includes fundamentals-of-robotics/_includes realistic-simulation-with-gazebo/_includes realistic-simulation-with-gazebo/_includes fundamentals-of-robotics/_includes--realistic-simulation-with-gazebo/_includes 266 intro-ros-ros2/_includes intro-ros-ros2/_includes fundamentals-of-robotics/_includes--intro-ros-ros2/_includes 266 getting-started-with-aws-robomaker/_includes getting-started-with-aws-robomaker/_includes fundamentals-of-robotics/_includes--getting-started-with-aws-robomaker/_includes 182 getting-started-with-ubuntu/_includes getting-started-with-ubuntu/_includes fundamentals-of-robotics/_includes--getting-started-with-ubuntu/_includes 182 intro-ros-ros2/_includes--realistic-simulation-with-gazebo/_includes 260 getting-started-with-aws-robomaker/_includes--realistic-simulation-with-gazebo/_includes 176 getting-started-with-aws-robomaker/_includes--intro-ros-ros2/_includes 176 getting-started-with-aws-robomaker/_includes--getting-started-with-ubuntu/_includes 184 getting-started-with-ubuntu/_includes--realistic-simulation-with-gazebo/_includes 176 getting-started-with-ubuntu/_includes--intro-ros-ros2/_includes 176 getting-started-with-aws-robomaker/assets getting-started-with-aws-robomaker/assets intro-ros-ros2/assets intro-ros-ros2/assets getting-started-with-aws-robomaker/assets--intro-ros-ros2/assets 120 getting-started-with-ubuntu/assets getting-started-with-ubuntu/assets getting-started-with-aws-robomaker/assets--getting-started-with-ubuntu/assets 120 realistic-simulation-with-gazebo/assets realistic-simulation-with-gazebo/assets getting-started-with-aws-robomaker/assets--realistic-simulation-with-gazebo/assets 120 intro-ros-ros2/assets--realistic-simulation-with-gazebo/assets 120 getting-started-with-ubuntu/assets--intro-ros-ros2/assets 120 getting-started-with-ubuntu/assets--realistic-simulation-with-gazebo/assets 120 fundamentals-of-robotics/assets fundamentals-of-robotics/assets fundamentals-of-robotics/assets--getting-started-with-aws-robomaker/assets 120 fundamentals-of-robotics/assets--intro-ros-ros2/assets 120 fundamentals-of-robotics/assets--getting-started-with-ubuntu/assets 120 fundamentals-of-robotics/assets--realistic-simulation-with-gazebo/assets 120 getting-started-with-aws-robomaker/_data getting-started-with-aws-robomaker/_data intro-ros-ros2/_data intro-ros-ros2/_data getting-started-with-aws-robomaker/_data--intro-ros-ros2/_data 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 252 duplicates...
Size#FoldersFilesLinesCode
325 x 2 getting-started-with-aws-robomaker/img
intro-ros-ros2/img
vtt
robomaker-simulation-job.vtt
simple-motion-robomaker.vtt
1:599 (100%)
1:599 (100%)
view
196 x 2 intro-ros-ros2
realistic-simulation-with-gazebo
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 fundamentals-of-robotics
intro-ros-ros2
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 getting-started-with-aws-robomaker
realistic-simulation-with-gazebo
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 getting-started-with-ubuntu
realistic-simulation-with-gazebo
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 fundamentals-of-robotics
getting-started-with-aws-robomaker
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 getting-started-with-ubuntu
intro-ros-ros2
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 fundamentals-of-robotics
realistic-simulation-with-gazebo
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 getting-started-with-aws-robomaker
intro-ros-ros2
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 getting-started-with-aws-robomaker
getting-started-with-ubuntu
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
196 x 2 fundamentals-of-robotics
getting-started-with-ubuntu
_config-standalone.yml
_config-standalone.yml
14:294 (100%)
14:294 (100%)
view
166 x 2 getting-started-with-aws-robomaker/_sass
getting-started-with-ubuntu/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 getting-started-with-ubuntu/_sass
realistic-simulation-with-gazebo/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 fundamentals-of-robotics/_sass
getting-started-with-ubuntu/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 fundamentals-of-robotics/_sass
intro-ros-ros2/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 getting-started-with-ubuntu/_sass
intro-ros-ros2/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 getting-started-with-aws-robomaker/_sass
intro-ros-ros2/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 intro-ros-ros2/_sass
realistic-simulation-with-gazebo/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 getting-started-with-aws-robomaker/_sass
realistic-simulation-with-gazebo/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view
166 x 2 fundamentals-of-robotics/_sass
realistic-simulation-with-gazebo/_sass
_header.scss
_header.scss
5:215 (100%)
5:215 (100%)
view