awslabs / aws-emr-launch
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
  • 26% duplication:
    • 4,503 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,191 duplicated lines
  • 156 duplicates
system26% (1,191 lines)
Duplication per Extension
py26% (1,139 lines)
yaml70% (52 lines)
Duplication per Component (primary)
codepipeline63% (300 lines)
aws_emr_launch/constructs/step_functions28% (299 lines)
aws_emr_launch/constructs/managed_configurations50% (251 lines)
aws_emr_launch/constructs/emr_constructs13% (124 lines)
aws_emr_launch/control_plane/constructs54% (92 lines)
aws_emr_launch/constructs/lambdas27% (67 lines)
aws_emr_launch/lambda_sources/emr_utilities5% (24 lines)
aws_emr_launch/control_plane/lambda_sources16% (18 lines)
extras/airflow7% (16 lines)
ROOT0% (0 lines)
aws_emr_launch0% (0 lines)
aws_emr_launch/lambda_sources0% (0 lines)
aws_emr_launch/control_plane0% (0 lines)
aws_emr_launch/constructs0% (0 lines)
aws_emr_launch/constructs/iam_roles0% (0 lines)
aws_emr_launch/constructs/security_groups0% (0 lines)

Duplication Between Components (50+ lines)

G aws_emr_launch/constructs/emr_constructs aws_emr_launch/constructs/emr_constructs aws_emr_launch/constructs/managed_configurations aws_emr_launch/constructs/managed_configurations aws_emr_launch/constructs/emr_constructs--aws_emr_launch/constructs/managed_configurations 82

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 156 duplicates...
Size#FoldersFilesLinesCode
34 x 2 codepipeline
codepipeline
examples_pipeline.py
release_pipeline.py
45:78 (13%)
55:88 (24%)
view
28 x 2 codepipeline
codepipeline
examples_pipeline.py
release_pipeline.py
254:283 (10%)
130:159 (20%)
view
23 x 2 aws_emr_launch/constructs/managed_configurations
aws_emr_launch/constructs/managed_configurations
instance_fleet_configuration.py
instance_group_configuration.py
26:50 (14%)
26:50 (14%)
view
18 x 2 aws_emr_launch/constructs/managed_configurations
aws_emr_launch/constructs/managed_configurations
autoscaling_configuration.py
instance_group_configuration.py
46:64 (10%)
138:156 (11%)
view
14 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_chains.py
emr_chains.py
35:50 (8%)
78:93 (8%)
view
14 x 2 codepipeline
codepipeline
examples-buildspec.yaml
release-buildspec.yaml
9:22 (58%)
13:26 (41%)
view
14 x 2 aws_emr_launch/constructs/managed_configurations
aws_emr_launch/constructs/managed_configurations
autoscaling_configuration.py
instance_group_configuration.py
13:26 (8%)
12:25 (8%)
view
12 x 2 aws_emr_launch/constructs/managed_configurations
aws_emr_launch/constructs/managed_configurations
autoscaling_configuration.py
instance_group_configuration.py
34:46 (7%)
26:38 (7%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
193:204 (1%)
340:351 (1%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
96:107 (1%)
340:351 (1%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
30:41 (1%)
206:217 (1%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
96:107 (1%)
193:204 (1%)
view
12 x 2 aws_emr_launch/constructs/emr_constructs
aws_emr_launch/constructs/emr_constructs
emr_profile.py
emr_profile.py
422:435 (2%)
452:465 (2%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
111:123 (1%)
206:217 (1%)
view
12 x 2 aws_emr_launch/constructs/managed_configurations
aws_emr_launch/constructs/managed_configurations
instance_group_configuration.py
instance_group_configuration.py
21:32 (7%)
119:130 (7%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
206:217 (1%)
354:365 (1%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
111:123 (1%)
354:365 (1%)
view
12 x 2 aws_emr_launch/constructs/managed_configurations
aws_emr_launch/constructs/managed_configurations
autoscaling_configuration.py
instance_fleet_configuration.py
34:46 (7%)
26:38 (7%)
view
12 x 2 aws_emr_launch/constructs/managed_configurations
aws_emr_launch/constructs/managed_configurations
instance_fleet_configuration.py
instance_fleet_configuration.py
21:32 (7%)
126:137 (7%)
view
12 x 2 aws_emr_launch/constructs/step_functions
aws_emr_launch/constructs/step_functions
emr_tasks.py
emr_tasks.py
30:41 (1%)
111:123 (1%)
view