aws-quickstart / quickstart-citrix-adc-waf
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
  • 8% duplication:
    • 26,750 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,153 duplicated lines
  • 398 duplicates
system8% (2,153 lines)
Duplication per Extension
yaml53% (1,338 lines)
py3% (815 lines)
Duplication per Component (primary)
templates53% (1,338 lines)
functions/source/waf/chardet10% (479 lines)
functions/source/waf/urllib3/contrib8% (136 lines)
functions/source/waf/urllib34% (88 lines)
functions/source/waf44% (86 lines)
functions/source/waf/requests<1% (14 lines)
functions/source/waf/barbarika1% (12 lines)
functions/source/waf/idna0% (0 lines)
functions/source/waf/certifi0% (0 lines)
functions/source/waf/urllib3/util0% (0 lines)
functions/source/waf/urllib3/packages0% (0 lines)
functions/source/waf/chardet/cli0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/waf/urllib3 functions/source/waf/urllib3 functions/source/waf/urllib3/contrib functions/source/waf/urllib3/contrib functions/source/waf/urllib3--functions/source/waf/urllib3/contrib 67

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 398 duplicates...
Size#FoldersFilesLinesCode
129 x 2 templates
templates
citrix-adc-waf-main.template.yaml
citrix-adc-waf-workload.template.yaml
291:421 (20%)
248:378 (19%)
view
53 x 2 templates
templates
lambda-servers-active-active.template...
lambda-waf.template.yaml
65:117 (37%)
50:102 (42%)
view
53 x 2 templates
templates
lambda-ha-across-az.template.yaml
lambda-servers-active-active.template...
67:119 (36%)
65:117 (37%)
view
53 x 2 templates
templates
lambda-ha-across-az.template.yaml
lambda-waf.template.yaml
67:119 (36%)
50:102 (42%)
view
41 x 2 templates
templates
citrix-adc-waf-workload.template.yaml
citrix-adc.template.yaml
280:320 (6%)
81:121 (15%)
view
41 x 2 templates
templates
citrix-adc-waf-main.template.yaml
citrix-adc.template.yaml
323:363 (6%)
81:121 (15%)
view
31 x 2 templates
templates
citrix-adc-waf-main.template.yaml
citrix-adc-waf-workload.template.yaml
125:157 (5%)
111:143 (4%)
view
30 x 2 templates
templates
citrix-adc-waf-main.template.yaml
citrix-adc-waf-workload.template.yaml
238:267 (4%)
188:217 (4%)
view
27 x 2 templates
templates
citrix-adc-waf-main.template.yaml
citrix-adc-waf-workload.template.yaml
57:86 (4%)
49:78 (4%)
view
26 x 2 templates
templates
lambda-ha-across-az.template.yaml
lambda-servers-active-active.template...
38:65 (17%)
36:63 (18%)
view
25 x 2 templates
templates
lambda-ha-across-az.template.yaml
lambda-pooled-license.template.yaml
40:65 (17%)
62:87 (16%)
view
25 x 2 templates
templates
lambda-pooled-license.template.yaml
lambda-waf.template.yaml
62:87 (16%)
23:48 (20%)
view
25 x 2 templates
templates
lambda-pooled-license.template.yaml
lambda-servers-active-active.template...
62:87 (16%)
38:63 (17%)
view
25 x 2 templates
templates
lambda-ha-across-az.template.yaml
lambda-waf.template.yaml
40:65 (17%)
23:48 (20%)
view
25 x 2 templates
templates
lambda-servers-active-active.template...
lambda-waf.template.yaml
38:63 (17%)
23:48 (20%)
view
22 x 2 templates
templates
citrix-adc-waf-main.template.yaml
citrix-adc-waf-workload.template.yaml
268:289 (3%)
225:246 (3%)
view
20 x 2 templates
templates
lambda-servers-active-active.template...
lambda-waf.template.yaml
1:22 (14%)
1:22 (16%)
view
20 x 2 templates
templates
lambda-copier.template.yaml
lambda-ha-across-az.template.yaml
13:33 (15%)
45:65 (13%)
view
20 x 2 templates
templates
lambda-copier.template.yaml
lambda-pooled-license.template.yaml
13:33 (15%)
67:87 (13%)
view
20 x 2 templates
templates
lambda-copier.template.yaml
lambda-waf.template.yaml
13:33 (15%)
28:48 (16%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 functions/source/waf/urllib3/contrib
functions/source/waf/urllib3/contrib
securetransport.py
pyopenssl.py
0:0 
0:0 
view
7 x 2 functions/source/waf/requests
functions/source/waf/requests
models.py
models.py
0:0 
0:0 
view