aws-samples / emr-studio-samples
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
  • 74% duplication:
    • 1,475 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,106 duplicated lines
  • 32 duplicates
system74% (1,106 lines)
Duplication per Extension
yml79% (1,106 lines)
Duplication per Component (primary)
ROOT79% (1,024 lines)
cluster_templates82% (82 lines)
airflow_dag_for_execution0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 32 duplicates...
Size#FoldersFilesLinesCode
351 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
177:540 (45%)
164:527 (69%)
view
136 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
24:172 (17%)
12:161 (26%)
view
79 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
285:363 (10%)
185:263 (15%)
view
79 x 2 ROOT
ROOT
min_studio_dependencies.yml
min_studio_dependencies.yml
185:263 (15%)
272:350 (15%)
view
79 x 2 ROOT
ROOT
full_studio_dependencies.yml
full_studio_dependencies.yml
198:276 (10%)
285:363 (10%)
view
79 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
198:276 (10%)
272:350 (15%)
view
65 x 2 ROOT
ROOT
full_studio_dependencies.yml
full_studio_dependencies.yml
285:349 (8%)
385:449 (8%)
view
65 x 2 ROOT
ROOT
min_studio_dependencies.yml
min_studio_dependencies.yml
272:336 (12%)
372:436 (12%)
view
65 x 2 ROOT
ROOT
full_studio_dependencies.yml
full_studio_dependencies.yml
198:262 (8%)
385:449 (8%)
view
65 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
385:449 (8%)
185:249 (12%)
view
65 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
198:262 (8%)
372:436 (12%)
view
65 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
285:349 (8%)
372:436 (12%)
view
65 x 2 ROOT
ROOT
min_studio_dependencies.yml
min_studio_dependencies.yml
185:249 (12%)
372:436 (12%)
view
65 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
385:449 (8%)
272:336 (12%)
view
35 x 2 cluster_templates
cluster_templates
one-master-one-core-cluster.yml
one-node-cluster.yml
11:46 (67%)
11:46 (74%)
view
27 x 2 ROOT
ROOT
full_studio_dependencies.yml
full_studio_dependencies.yml
350:376 (3%)
452:478 (3%)
view
27 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
452:478 (3%)
337:363 (5%)
view
27 x 2 ROOT
ROOT
min_studio_dependencies.yml
min_studio_dependencies.yml
337:363 (5%)
439:465 (5%)
view
27 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
350:376 (3%)
439:465 (5%)
view
15 x 2 ROOT
ROOT
full_studio_dependencies.yml
min_studio_dependencies.yml
798:812 (1%)
529:543 (2%)
view