aws-samples / aws-batch-processing-job-repo
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,192 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 701 duplicated lines
  • 19 duplicates
system58% (701 lines)
Duplication per Extension
yaml68% (701 lines)
Duplication per Component (primary)
template68% (701 lines)
config0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
198 x 2 template
template
template.yaml
template_ec2.yaml
285:496 (32%)
157:368 (47%)
view
36 x 2 template
template
template.yaml
template_ec2.yaml
497:532 (5%)
387:422 (8%)
view
16 x 2 template
template
template.yaml
template_ec2.yaml
120:135 (2%)
56:71 (3%)
view
16 x 2 template
template
template.yaml
template_ec2.yaml
614:629 (2%)
424:439 (3%)
view
13 x 2 template
template
template.yaml
template.yaml
580:592 (2%)
600:612 (2%)
view
12 x 2 template
template
template.yaml
template_ec2.yaml
153:164 (1%)
78:89 (2%)
view
11 x 2 template
template
template.yaml
template_ec2.yaml
19:29 (1%)
17:27 (2%)
view
9 x 2 template
template
template.yaml
template_ec2.yaml
4:13 (1%)
4:13 (2%)
view
9 x 2 template
template
template.yaml
template_ec2.yaml
268:276 (1%)
134:142 (2%)
view
9 x 2 template
template
template.yaml
template_ec2.yaml
171:179 (1%)
114:122 (2%)
view
7 x 2 template
template
template.yaml
template.yaml
541:547 (1%)
600:606 (1%)
view
7 x 2 template
template
template.yaml
template.yaml
541:547 (1%)
580:586 (1%)
view
6 x 2 template
template
template.yaml
template.yaml
174:179 (<1%)
392:397 (<1%)
view
6 x 2 template
template
template.yaml
template_ec2.yaml
45:50 (<1%)
28:33 (1%)
view
6 x 2 template
template
template_ec2.yaml
template_ec2.yaml
117:122 (1%)
264:269 (1%)
view
6 x 2 template
template
template.yaml
template_ec2.yaml
174:179 (<1%)
264:269 (1%)
view
6 x 2 template
template
template.yaml
template_ec2.yaml
52:57 (<1%)
35:40 (1%)
view
6 x 2 template
template
template.yaml
template.yaml
71:76 (<1%)
97:102 (<1%)
view
6 x 2 template
template
template.yaml
template_ec2.yaml
392:397 (<1%)
117:122 (1%)
view