aws-samples / amazon-mlops-example-tensorflow
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
  • 19% duplication:
    • 607 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 119 duplicated lines
  • 9 duplicates
system19% (119 lines)
Duplication per Extension
yaml35% (119 lines)
Duplication per Component (primary)
cloudformation35% (119 lines)
train0% (0 lines)
preprocess0% (0 lines)
inference0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
17 x 2 cloudformation
cloudformation
template.yaml
template.yaml
220:236 (5%)
258:274 (5%)
view
13 x 2 cloudformation
cloudformation
template.yaml
template.yaml
100:112 (3%)
192:204 (3%)
view
12 x 2 cloudformation
cloudformation
template.yaml
template.yaml
154:165 (3%)
191:202 (3%)
view
11 x 2 cloudformation
cloudformation
template.yaml
template.yaml
100:110 (3%)
155:165 (3%)
view
7 x 2 cloudformation
cloudformation
template.yaml
template.yaml
241:247 (2%)
275:281 (2%)
view
7 x 2 cloudformation
cloudformation
template.yaml
template.yaml
146:152 (2%)
180:186 (2%)
view
6 x 2 cloudformation
cloudformation
template.yaml
template.yaml
134:139 (1%)
171:176 (1%)
view
6 x 2 cloudformation
cloudformation
template.yaml
template.yaml
71:76 (1%)
171:176 (1%)
view
6 x 2 cloudformation
cloudformation
template.yaml
template.yaml
71:76 (1%)
134:139 (1%)
view