aws-quickstart / quickstart-citrix-adc-vpx
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:
    • 27,325 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,398 duplicated lines
  • 446 duplicates
system8% (2,398 lines)
Duplication per Extension
yaml52% (1,595 lines)
py3% (803 lines)
Duplication per Component (primary)
templates52% (1,595 lines)
functions/source/adc/chardet10% (479 lines)
functions/source/adc/urllib3/contrib8% (136 lines)
functions/source/adc/urllib34% (88 lines)
functions/source/adc42% (74 lines)
functions/source/adc/requests<1% (14 lines)
functions/source/adc/barbarika1% (12 lines)
ci0% (0 lines)
functions/source/adc/idna0% (0 lines)
functions/source/adc/certifi0% (0 lines)
functions/source/adc/urllib3/util0% (0 lines)
functions/source/adc/urllib3/packages0% (0 lines)
functions/source/adc/chardet/cli0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/adc/urllib3 functions/source/adc/urllib3 functions/source/adc/urllib3/contrib functions/source/adc/urllib3/contrib functions/source/adc/urllib3--functions/source/adc/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 446 duplicates...
Size#FoldersFilesLinesCode
152 x 2 templates
templates
citrix-adc-vpx-main.template.yaml
citrix-adc-vpx-workload.template.yaml
294:447 (21%)
266:419 (19%)
view
49 x 2 templates
templates
citrix-adc-vpx-main.template.yaml
citrix-adc-vpx-workload.template.yaml
455:503 (6%)
420:468 (6%)
view
42 x 2 templates
templates
citrix-adc-vpx-main.template.yaml
citrix-adc-vpx-workload.template.yaml
252:293 (5%)
215:256 (5%)
view
41 x 2 templates
templates
citrix-adc-vpx-main.template.yaml
standalone-vpx.template.yaml
349:389 (5%)
94:134 (9%)
view
41 x 2 templates
templates
citrix-adc-vpx-workload.template.yaml
standalone-vpx.template.yaml
321:361 (5%)
94:134 (9%)
view
40 x 2 templates
templates
lambda-all-servers-reachable.template...
lambda-ha-across-az.template.yaml
58:97 (28%)
71:110 (25%)
view
32 x 2 templates
templates
citrix-adc-vpx-main.template.yaml
citrix-adc-vpx-workload.template.yaml
58:92 (4%)
49:83 (4%)
view
28 x 2 templates
templates
citrix-adc-vpx-main.template.yaml
lambda-latestami.template.yaml
469:496 (3%)
7:34 (23%)
view
28 x 2 templates
templates
citrix-adc-vpx-workload.template.yaml
lambda-latestami.template.yaml
434:461 (3%)
7:34 (23%)
view
26 x 2 templates
templates
lambda-all-servers-reachable.template...
lambda-ha-across-az.template.yaml
29:56 (18%)
41:69 (16%)
view
25 x 2 templates
templates
lambda-all-servers-reachable.template...
lambda-latestami.template.yaml
31:56 (17%)
35:60 (20%)
view
25 x 2 templates
templates
lambda-ha-across-az.template.yaml
lambda-latestami.template.yaml
44:69 (16%)
35:60 (20%)
view
25 x 2 templates
templates
lambda-ha-across-az.template.yaml
lambda-pooled-license.template.yaml
44:69 (16%)
66:91 (15%)
view
25 x 2 templates
templates
lambda-latestami.template.yaml
lambda-pooled-license.template.yaml
35:60 (20%)
66:91 (15%)
view
25 x 2 templates
templates
lambda-all-servers-reachable.template...
lambda-pooled-license.template.yaml
31:56 (17%)
66:91 (15%)
view
23 x 2 templates
templates
citrix-adc-vpx-main.template.yaml
citrix-adc-vpx-workload.template.yaml
152:177 (3%)
136:161 (2%)
view
22 x 2 templates
templates
citrix-adc-vpx-workload.template.yaml
citrix-adc-vpx-workload.template.yaml
551:572 (2%)
591:612 (2%)
view
20 x 2 templates
templates
lambda-copier.template.yaml
lambda-latestami.template.yaml
13:33 (14%)
40:60 (16%)
view
20 x 2 templates
templates
lambda-copier.template.yaml
lambda-ha-across-az.template.yaml
13:33 (14%)
49:69 (12%)
view
20 x 2 templates
templates
lambda-all-servers-reachable.template...
lambda-copier.template.yaml
36:56 (14%)
13:33 (14%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 functions/source/adc/urllib3/contrib
functions/source/adc/urllib3/contrib
securetransport.py
pyopenssl.py
0:0 
0:0 
view
7 x 2 functions/source/adc/requests
functions/source/adc/requests
models.py
models.py
0:0 
0:0 
view