aws-samples / reinvent2021-aim408-high-performance-cost-effective-model-deployment-amazon-sagemaker
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
  • 53% duplication:
    • 296 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 157 duplicated lines
  • 11 duplicates
system53% (157 lines)
Duplication per Extension
yml61% (157 lines)
Duplication per Component (primary)
cloudformation61% (157 lines)
load-testing0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
16 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
86:101 (6%)
203:218 (6%)
view
13 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
58:70 (5%)
175:187 (5%)
view
10 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
114:123 (3%)
231:240 (3%)
view
9 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
125:133 (3%)
246:254 (3%)
view
8 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
72:79 (3%)
189:196 (3%)
view
7 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
26:32 (2%)
144:150 (2%)
view
7 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
45:51 (2%)
162:168 (2%)
view
6 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
45:50 (2%)
131:136 (2%)
view
6 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
131:136 (2%)
162:167 (2%)
view
6 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
164:169 (2%)
220:225 (2%)
view
6 x 2 cloudformation
cloudformation
create-cw-dashboard.yml
create-cw-dashboard.yml
47:52 (2%)
103:108 (2%)
view