aws-samples / amazon-sagemaker-kernel-builder
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
  • 58% duplication:
    • 1,727 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,011 duplicated lines
  • 93 duplicates
system58% (1,011 lines)
Duplication per Extension
yml56% (696 lines)
py64% (315 lines)
Duplication per Component (primary)
src/deploy/cf57% (696 lines)
src/workflow64% (315 lines)
kernels/snowflake0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 93 duplicates...
Size#FoldersFilesLinesCode
40 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-build-and-publish.yml
kernel-builder-publish-only.yml
45:84 (33%)
36:75 (43%)
view
37 x 2 src/workflow
src/workflow
lambda.py
publish.py
148:198 (19%)
113:163 (22%)
view
31 x 2 src/workflow
src/workflow
lambda.py
publish.py
105:145 (16%)
70:110 (18%)
view
31 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-build-and-publish.yml
kernel-builder-full.yml
89:119 (25%)
119:149 (14%)
view
26 x 2 src/deploy/cf
src/deploy/cf
build-sagemaker-kernel.yml
kernel-builder-build-and-publish.yml
46:71 (10%)
87:112 (21%)
view
25 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-base.yml
kernel-builder-publish-only.yml
15:39 (19%)
40:64 (27%)
view
25 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-base.yml
kernel-builder-build-and-publish.yml
15:39 (19%)
49:73 (20%)
view
24 x 2 src/deploy/cf
src/deploy/cf
build-sagemaker-kernel.yml
kernel-builder-full.yml
48:71 (9%)
119:142 (10%)
view
23 x 2 src/workflow
src/workflow
lambda.py
publish.py
202:235 (11%)
167:199 (13%)
view
22 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-build-and-publish.yml
kernel-builder-publish-only.yml
1:22 (18%)
1:22 (23%)
view
22 x 2 src/workflow
src/workflow
lambda.py
publish.py
251:279 (11%)
210:238 (13%)
view
21 x 2 src/deploy/cf
src/deploy/cf
deploy-sagemaker-studio-public-intern...
publish-sagemaker-kernel.yml
100:120 (17%)
169:189 (7%)
view
20 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-base.yml
publish-sagemaker-kernel.yml
53:72 (15%)
196:215 (7%)
view
19 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-full.yml
kernel-builder-publish-only.yml
1:19 (8%)
1:19 (20%)
view
19 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-build-and-publish.yml
kernel-builder-full.yml
1:19 (15%)
1:19 (8%)
view
17 x 2 src/deploy/cf
src/deploy/cf
build-sagemaker-kernel.yml
publish-sagemaker-kernel.yml
66:82 (6%)
44:60 (6%)
view
16 x 2 src/workflow
src/workflow
build.py
publish.py
132:153 (15%)
217:238 (9%)
view
16 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-full.yml
kernel-builder-publish-only.yml
71:86 (7%)
49:64 (17%)
view
16 x 2 src/deploy/cf
src/deploy/cf
kernel-builder-base.yml
kernel-builder-full.yml
24:39 (12%)
71:86 (7%)
view
16 x 2 src/workflow
src/workflow
build.py
lambda.py
132:153 (15%)
258:279 (8%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
24 x 2 src/workflow
src/workflow
publish.py
lambda.py
0:0 
0:0 
view
14 x 2 src/workflow
src/workflow
publish.py
lambda.py
0:0 
0:0 
view
9 x 2 src/workflow
src/workflow
publish.py
lambda.py
0:0 
0:0 
view