aws-samples / aws-healthcare-lifescience-ai-ml-sample-notebooks
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
  • 55% duplication:
    • 488 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 273 duplicated lines
  • 6 duplicates
system55% (273 lines)
Duplication per Extension
yaml81% (273 lines)
Duplication per Component (primary)
AI_ML_services_workshop_information81% (138 lines)
Sagemaker_Pipelines_Automated_Retraining70% (135 lines)
Classify_Medical_Specialty_NLP_Huggingface_Transformers0% (0 lines)
AI_ML_services_workshop_information/lambda_code0% (0 lines)

Duplication Between Components (50+ lines)

G AI_ML_services_workshop_information AI_ML_services_workshop_information Sagemaker_Pipelines_Automated_Retraining Sagemaker_Pipelines_Automated_Retraining AI_ML_services_workshop_information--Sagemaker_Pipelines_Automated_Retraining 273

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
79 x 2 workshops/AI_ML_services_workshop_information
workshops/Sagemaker_Pipelines_Automated_Retraining
cfn_workshop_ai_ml_services.yaml
cfn_sagemaker_pipelines.yaml
50:138 (46%)
49:136 (47%)
view
20 x 2 workshops/AI_ML_services_workshop_information
workshops/Sagemaker_Pipelines_Automated_Retraining
cfn_workshop_ai_ml_services.yaml
cfn_sagemaker_pipelines.yaml
161:180 (11%)
156:175 (12%)
view
20 x 2 workshops/AI_ML_services_workshop_information
workshops/Sagemaker_Pipelines_Automated_Retraining
cfn_workshop_ai_ml_services.yaml
cfn_sagemaker_pipelines.yaml
139:159 (11%)
138:158 (12%)
view
7 x 2 workshops/AI_ML_services_workshop_information
workshops/Sagemaker_Pipelines_Automated_Retraining
cfn_workshop_ai_ml_services.yaml
cfn_sagemaker_pipelines.yaml
37:43 (4%)
36:42 (4%)
view
6 x 2 workshops/AI_ML_services_workshop_information
workshops/Sagemaker_Pipelines_Automated_Retraining
cfn_workshop_ai_ml_services.yaml
cfn_sagemaker_pipelines.yaml
4:9 (3%)
4:9 (3%)
view
6 x 2 workshops/AI_ML_services_workshop_information
workshops/Sagemaker_Pipelines_Automated_Retraining
cfn_workshop_ai_ml_services.yaml
cfn_sagemaker_pipelines.yaml
18:25 (3%)
18:24 (3%)
view