aws-samples / aws-vpc-cidr-mgmt
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
  • 4% duplication:
    • 27,808 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,278 duplicated lines
  • 259 duplicates
system4% (1,278 lines)
Duplication per Extension
py3% (1,044 lines)
yml37% (234 lines)
Duplication per Component (primary)
lambda/chardet10% (479 lines)
ROOT37% (234 lines)
lambda/netaddr/ip8% (145 lines)
lambda/urllib3/contrib7% (136 lines)
lambda/urllib34% (88 lines)
lambda/netaddr/eui14% (75 lines)
lambda/netaddr/strategy11% (68 lines)
lambda17% (39 lines)
lambda/requests<1% (14 lines)
lambda/idna0% (0 lines)
lambda/requests_aws4auth0% (0 lines)
lambda/netaddr/contrib0% (0 lines)
lambda/netaddr0% (0 lines)
lambda/certifi0% (0 lines)
lambda/urllib3/util0% (0 lines)
lambda/urllib3/packages0% (0 lines)
lambda/chardet/cli0% (0 lines)

Duplication Between Components (50+ lines)

G lambda/urllib3 lambda/urllib3 lambda/urllib3/contrib lambda/urllib3/contrib lambda/urllib3--lambda/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 259 duplicates...
Size#FoldersFilesLinesCode
30 x 2 ROOT
ROOT
vpc.yml
vpc.yml
123:152 (10%)
262:291 (10%)
view
21 x 2 ROOT
ROOT
vpc.yml
vpc.yml
27:52 (7%)
170:195 (7%)
view
18 x 2 lambda/chardet
lambda/chardet
eucjpprober.py
sjisprober.py
52:71 (37%)
52:70 (36%)
view
15 x 2 lambda/netaddr/ip
lambda/netaddr/ip
glob.py
glob.py
79:95 (10%)
109:125 (10%)
view
15 x 2 lambda/chardet
lambda/chardet
eucjpprober.py
mbcharsetprober.py
56:71 (31%)
61:75 (32%)
view
15 x 2 lambda/chardet
lambda/chardet
mbcharsetprober.py
sjisprober.py
61:75 (32%)
56:70 (30%)
view
14 x 2 ROOT
ROOT
ip-mgmt.yml
ip-mgmt.yml
142:155 (5%)
208:221 (5%)
view
14 x 2 lambda/chardet
lambda/chardet
mbcssm.py
mbcssm.py
33:46 (2%)
340:353 (2%)
view
14 x 2 lambda/netaddr/strategy
lambda/netaddr/strategy
ipv4.py
ipv6.py
217:240 (12%)
236:259 (12%)
view
13 x 2 ROOT
ROOT
ip-mgmt.yml
ip-mgmt.yml
142:154 (4%)
163:175 (4%)
view
13 x 2 lambda/netaddr/ip
lambda/netaddr/ip
sets.py
sets.py
568:581 (3%)
634:647 (3%)
view
13 x 2 ROOT
ROOT
ip-mgmt.yml
ip-mgmt.yml
163:175 (4%)
208:220 (4%)
view
12 x 2 lambda/urllib3
lambda/urllib3
connectionpool.py
connectionpool.py
172:183 (2%)
857:868 (2%)
view
12 x 2 lambda/urllib3
lambda/urllib3
connectionpool.py
connectionpool.py
790:801 (2%)
820:831 (2%)
view
12 x 2 lambda/netaddr/eui
lambda/netaddr/ip
__init__.py
__init__.py
26:52 (2%)
474:500 (1%)
view
12 x 2 lambda/urllib3/contrib
lambda/urllib3/contrib
pyopenssl.py
securetransport.py
387:404 (4%)
713:730 (2%)
view
12 x 2 lambda/chardet
lambda/chardet
mbcssm.py
mbcssm.py
393:404 (2%)
448:459 (2%)
view
12 x 2 lambda/chardet
lambda/chardet
eucjpprober.py
sjisprober.py
77:92 (25%)
77:92 (24%)
view
11 x 2 ROOT
ROOT
ip-mgmt.yml
ip-mgmt.yml
142:152 (4%)
190:200 (4%)
view
11 x 2 ROOT
ROOT
ip-mgmt.yml
ip-mgmt.yml
163:173 (4%)
190:200 (4%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 lambda/urllib3/contrib
lambda/urllib3/contrib
securetransport.py
pyopenssl.py
0:0 
0:0 
view
7 x 2 lambda/requests
lambda/requests
models.py
models.py
0:0 
0:0 
view