aws-samples / aws-eda-workshops
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
  • 69% duplication:
    • 5,195 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,634 duplicated lines
  • 214 duplicates
system69% (3,634 lines)
Duplication per Extension
yaml70% (3,634 lines)
Duplication per Component (primary)
eda-workshop-lsf/templates58% (2,043 lines)
eda-workshop-soca/templates94% (1,591 lines)
eda-workshop-lsf/scripts0% (0 lines)

Duplication Between Components (50+ lines)

G eda-workshop-lsf/templates eda-workshop-lsf/templates eda-workshop-soca/templates eda-workshop-soca/templates eda-workshop-lsf/templates--eda-workshop-soca/templates 1625

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 214 duplicates...
Size#FoldersFilesLinesCode
384 x 2 workshops/eda-workshop-soca/templates
workshops/eda-workshop-soca/templates
nfs_server_ebs_zfs_soca.yaml
nfs_server_instanceStore_zfs_soca.yaml
445:878 (42%)
323:756 (48%)
view
113 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-soca/templates
04-nfs_server_instanceStore_zfs.yaml
nfs_server_ebs_zfs_soca.yaml
410:535 (17%)
650:775 (12%)
view
113 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-soca/templates
04-nfs_server_instanceStore_zfs.yaml
nfs_server_instanceStore_zfs_soca.yaml
410:535 (17%)
528:653 (14%)
view
101 x 2 workshops/eda-workshop-soca/templates
workshops/eda-workshop-soca/templates
nfs_server_ebs_zfs_soca.yaml
nfs_server_instanceStore_zfs_soca.yaml
29:129 (11%)
23:123 (12%)
view
68 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
03-login-server-dcv.yaml
eda-lsf-simple-workshop.yaml
240:330 (20%)
624:715 (7%)
view
68 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
02-lsf-master.yaml
eda-lsf-simple-workshop.yaml
466:537 (13%)
810:881 (7%)
view
63 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-soca/templates
04-nfs_server_instanceStore_zfs.yaml
nfs_server_ebs_zfs_soca.yaml
553:629 (9%)
811:885 (6%)
view
61 x 2 workshops/eda-workshop-soca/templates
workshops/eda-workshop-soca/templates
nfs_server_ebs_zfs_soca.yaml
nfs_server_instanceStore_zfs_soca.yaml
258:318 (6%)
211:271 (7%)
view
58 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-soca/templates
04-nfs_server_instanceStore_zfs.yaml
nfs_server_instanceStore_zfs_soca.yaml
553:622 (8%)
689:756 (7%)
view
54 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
02-lsf-master.yaml
eda-lsf-simple-workshop.yaml
326:404 (10%)
445:524 (6%)
view
52 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
02-lsf-master.yaml
eda-lsf-simple-workshop.yaml
223:289 (10%)
348:413 (5%)
view
46 x 2 workshops/eda-workshop-soca/templates
workshops/eda-workshop-soca/templates
nfs_server_ebs_zfs_soca.yaml
nfs_server_instanceStore_zfs_soca.yaml
323:369 (5%)
276:322 (5%)
view
44 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
02-lsf-master.yaml
eda-lsf-simple-workshop.yaml
421:464 (8%)
766:809 (4%)
view
40 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-soca/templates
04-nfs_server_instanceStore_zfs.yaml
nfs_server_instanceStore_zfs_soca.yaml
293:332 (6%)
294:333 (5%)
view
39 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
02-lsf-master.yaml
eda-lsf-simple-workshop.yaml
7:46 (7%)
7:46 (4%)
view
38 x 2 workshops/eda-workshop-soca/templates
workshops/eda-workshop-soca/templates
nfs_server_ebs_zfs_soca.yaml
nfs_server_instanceStore_zfs_soca.yaml
136:173 (4%)
123:160 (4%)
view
36 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-soca/templates
04-nfs_server_instanceStore_zfs.yaml
nfs_server_instanceStore_zfs_soca.yaml
93:128 (5%)
109:144 (4%)
view
32 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
02-lsf-master.yaml
eda-lsf-simple-workshop.yaml
168:205 (6%)
292:329 (3%)
view
32 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
03-login-server-dcv.yaml
03-login-server.yaml
142:176 (9%)
106:140 (19%)
view
32 x 2 workshops/eda-workshop-lsf/templates
workshops/eda-workshop-lsf/templates
03-login-server-dcv.yaml
eda-lsf-simple-workshop.yaml
340:372 (9%)
717:749 (3%)
view