aws-samples / aws-autonomous-driving-data-lake-ros-bag-scene-detection-pipeline
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
  • 5% duplication:
    • 1,809 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 93 duplicated lines
  • 5 duplicates
system5% (93 lines)
Duplication per Extension
py5% (93 lines)
Duplication per Component (primary)
infrastructure/emr_orchestration19% (49 lines)
infrastructure10% (31 lines)
infrastructure/emr_trigger20% (13 lines)
spark_scripts0% (0 lines)
service/app0% (0 lines)
ROOT0% (0 lines)
infrastructure/emr_trigger/lambda_source0% (0 lines)
infrastructure/emr_launch0% (0 lines)

Duplication Between Components (50+ lines)

G infrastructure infrastructure infrastructure/emr_orchestration infrastructure/emr_orchestration infrastructure--infrastructure/emr_orchestration 62

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
17 x 2 infrastructure
infrastructure/emr_orchestration
ecs_stack.py
stack.py
367:383 (5%)
254:270 (6%)
view
14 x 2 infrastructure
infrastructure/emr_orchestration
ecs_stack.py
stack.py
178:191 (4%)
67:80 (5%)
view
13 x 2 infrastructure/emr_orchestration
infrastructure/emr_trigger
stack.py
stack.py
68:80 (5%)
53:65 (20%)
view
13 x 2 infrastructure
infrastructure/emr_trigger
ecs_stack.py
stack.py
179:191 (4%)
53:65 (20%)
view
9 x 2 infrastructure/emr_orchestration
infrastructure/emr_orchestration
stack.py
stack.py
147:155 (3%)
181:189 (3%)
view