aws-quickstart / quickstart-microsoft-hpc
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
  • 48% duplication:
    • 3,098 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,494 duplicated lines
  • 77 duplicates
system48% (1,494 lines)
Duplication per Extension
yaml55% (1,448 lines)
ps19% (46 lines)
Duplication per Component (primary)
templates55% (1,448 lines)
scripts9% (46 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 77 duplicates...
Size#FoldersFilesLinesCode
128 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
167:322 (36%)
155:310 (35%)
view
46 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
25:78 (13%)
23:76 (12%)
view
46 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
103:154 (13%)
93:144 (12%)
view
34 x 2 templates
templates
headnode.template.yaml
headnode.template.yaml
454:487 (4%)
650:683 (4%)
view
33 x 2 templates
templates
headnode.template.yaml
headnode.template.yaml
491:523 (4%)
681:713 (4%)
view
28 x 2 templates
templates
workerstack.template.yaml
workerstack.template.yaml
606:633 (4%)
786:813 (4%)
view
25 x 2 templates
templates
main-existing-vpc.template.yaml
workerstack.template.yaml
216:240 (7%)
195:219 (3%)
view
25 x 2 templates
templates
main.template.yaml
workerstack.template.yaml
204:228 (6%)
195:219 (3%)
view
22 x 2 templates
templates
headnode.template.yaml
headnode.template.yaml
533:554 (3%)
717:738 (3%)
view
21 x 2 templates
templates
adstack.template.yaml
adstack.template.yaml
296:316 (5%)
342:362 (5%)
view
20 x 2 templates
templates
workerstack.template.yaml
workerstack.template.yaml
738:757 (2%)
842:861 (2%)
view
18 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
342:359 (5%)
347:364 (5%)
view
18 x 2 templates
templates
adstack.template.yaml
adstack.template.yaml
318:335 (4%)
364:381 (4%)
view
16 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
383:399 (4%)
389:405 (4%)
view
16 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
363:378 (4%)
368:383 (4%)
view
14 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
323:336 (3%)
328:341 (3%)
view
13 x 2 templates
templates
adstack.template.yaml
adstack.template.yaml
171:183 (3%)
235:247 (3%)
view
13 x 2 templates
templates
headnode.template.yaml
headnode.template.yaml
606:618 (1%)
768:780 (1%)
view
12 x 2 templates
templates
headnode.template.yaml
headnode.template.yaml
632:643 (1%)
795:806 (1%)
view
12 x 2 templates
templates
main-existing-vpc.template.yaml
main.template.yaml
87:98 (3%)
79:90 (3%)
view