aws-samples / amazon-sagemaker-ab-testing-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
  • 9% duplication:
    • 2,205 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 216 duplicated lines
  • 21 duplicates
system9% (216 lines)
Duplication per Extension
py8% (147 lines)
yml16% (69 lines)
Duplication per Component (primary)
ROOT19% (91 lines)
infra10% (65 lines)
deployment_pipeline/infra8% (26 lines)
deployment_pipeline20% (22 lines)
lambda/api1% (12 lines)
notebook0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 21 duplicates...
Size#FoldersFilesLinesCode
23 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
253:275 (5%)
312:334 (5%)
view
16 x 2 deployment_pipeline
ROOT
setup.py
setup.py
22:37 (50%)
30:45 (40%)
view
8 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
145:152 (1%)
327:334 (1%)
view
8 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
145:152 (1%)
202:209 (1%)
view
8 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
202:209 (1%)
327:334 (1%)
view
8 x 2 infra
infra
api_stack.py
api_stack.py
117:124 (3%)
164:171 (3%)
view
8 x 2 infra
infra
pipeline_stack.py
pipeline_stack.py
248:255 (3%)
273:280 (3%)
view
8 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
145:152 (1%)
268:275 (1%)
view
8 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
202:209 (1%)
268:275 (1%)
view
7 x 2 infra
infra
api_stack.py
pipeline_stack.py
17:23 (2%)
18:25 (2%)
view
7 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
79:85 (1%)
146:152 (1%)
view
7 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
79:85 (1%)
269:275 (1%)
view
7 x 2 infra
infra
pipeline_stack.py
service_catalog.py
18:25 (2%)
14:20 (6%)
view
7 x 2 deployment_pipeline/infra
deployment_pipeline/infra
model_registry.py
model_registry.py
74:81 (5%)
133:140 (5%)
view
7 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
79:85 (1%)
328:334 (1%)
view
7 x 2 ROOT
ROOT
ab-testing-pipeline.yml
ab-testing-pipeline.yml
79:85 (1%)
203:209 (1%)
view
7 x 2 infra
infra
api_stack.py
service_catalog.py
17:23 (2%)
14:20 (6%)
view
6 x 2 infra
infra
api_stack.py
api_stack.py
142:147 (2%)
292:297 (2%)
view
6 x 2 deployment_pipeline
ROOT
setup.py
setup.py
12:17 (18%)
12:17 (15%)
view
6 x 2 lambda/api
lambda/api
lambda_metrics.py
lambda_register.py
82:87 (12%)
147:152 (5%)
view