awslabs / digital-user-engagement-events-database
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
  • 99% duplication:
    • 46,856 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 46,683 duplicated lines
  • 1,022 duplicates
system99% (46,683 lines)
Duplication per Extension
py99% (46,683 lines)
Duplication per Component (primary)
custom-bucket-name-helper/idna99% (10,633 lines)
custom-resource-helper/idna99% (10,633 lines)
custom-bucket-name-helper/urllib399% (5,617 lines)
custom-resource-helper/urllib399% (5,617 lines)
custom-bucket-name-helper/chardet99% (4,609 lines)
custom-resource-helper/chardet99% (4,609 lines)
custom-bucket-name-helper/requests99% (2,391 lines)
custom-resource-helper/requests99% (2,391 lines)
custom-bucket-name-helper85% (46 lines)
custom-resource-helper39% (46 lines)
lib100% (28 lines)
custom-bucket-name-helper/certifi96% (26 lines)
custom-resource-helper/certifi96% (26 lines)
athena-partition-lambda15% (11 lines)

Duplication Between Components (50+ lines)

G custom-bucket-name-helper/idna custom-bucket-name-helper/idna custom-resource-helper/idna custom-resource-helper/idna custom-bucket-name-helper/idna--custom-resource-helper/idna 21266 custom-bucket-name-helper/urllib3 custom-bucket-name-helper/urllib3 custom-resource-helper/urllib3 custom-resource-helper/urllib3 custom-bucket-name-helper/urllib3--custom-resource-helper/urllib3 11234 custom-bucket-name-helper/chardet custom-bucket-name-helper/chardet custom-resource-helper/chardet custom-resource-helper/chardet custom-bucket-name-helper/chardet--custom-resource-helper/chardet 9218 custom-bucket-name-helper/requests custom-bucket-name-helper/requests custom-resource-helper/requests custom-resource-helper/requests custom-bucket-name-helper/requests--custom-resource-helper/requests 4782 custom-bucket-name-helper custom-bucket-name-helper custom-resource-helper custom-resource-helper custom-bucket-name-helper--custom-resource-helper 92 lib lib custom-bucket-name-helper--lib 56 custom-resource-helper--lib 56 custom-bucket-name-helper/certifi custom-bucket-name-helper/certifi custom-resource-helper/certifi custom-resource-helper/certifi custom-bucket-name-helper/certifi--custom-resource-helper/certifi 52

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 1,022 duplicates...
Size#FoldersFilesLinesCode
8231 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
7:8317 (100%)
7:8317 (100%)
view
1989 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
idnadata.py
idnadata.py
3:1991 (100%)
3:1991 (100%)
view
676 x 2 source/custom-bucket-name-helper/urllib3/packages
source/custom-resource-helper/urllib3/packages
six.py
six.py
31:1021 (100%)
31:1021 (100%)
view
531 x 2 source/custom-bucket-name-helper/urllib3
source/custom-resource-helper/urllib3
connectionpool.py
connectionpool.py
12:1033 (100%)
12:1033 (100%)
view
498 x 2 source/custom-bucket-name-helper/requests
source/custom-resource-helper/requests
models.py
models.py
22:954 (100%)
22:954 (100%)
view
492 x 2 source/custom-bucket-name-helper/urllib3/contrib
source/custom-resource-helper/urllib3/contrib
securetransport.py
securetransport.py
67:864 (100%)
67:864 (100%)
view
481 x 2 source/custom-bucket-name-helper/urllib3
source/custom-resource-helper/urllib3
response.py
response.py
9:821 (100%)
9:821 (100%)
view
476 x 2 source/custom-bucket-name-helper/requests
source/custom-resource-helper/requests
utils.py
utils.py
30:982 (100%)
30:982 (100%)
view
355 x 2 source/custom-bucket-nam...ontrib/_securetransport
source/custom-resource-h...ontrib/_securetransport
bindings.py
bindings.py
37:493 (100%)
37:493 (100%)
view
340 x 2 source/custom-bucket-name-helper/chardet
source/custom-resource-helper/chardet
euctwfreq.py
euctwfreq.py
44:386 (100%)
44:386 (100%)
view
340 x 2 source/custom-bucket-name-helper/chardet
source/custom-resource-helper/chardet
big5freq.py
big5freq.py
43:385 (100%)
43:385 (100%)
view
332 x 2 source/custom-bucket-name-helper/requests
source/custom-resource-helper/requests
sessions.py
sessions.py
19:767 (100%)
19:767 (100%)
view
294 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
core.py
core.py
8:398 (100%)
8:398 (100%)
view
290 x 2 source/custom-bucket-name-helper/urllib3/contrib
source/custom-resource-helper/urllib3/contrib
pyopenssl.py
pyopenssl.py
51:501 (100%)
51:501 (100%)
view
286 x 2 source/custom-bucket-name-helper/chardet
source/custom-resource-helper/chardet
langcyrillicmodel.py
langcyrillicmodel.py
30:333 (100%)
30:333 (100%)
view
277 x 2 source/custom-bucket-name-helper/chardet
source/custom-resource-helper/chardet
jisfreq.py
jisfreq.py
44:323 (100%)
44:323 (100%)
view
273 x 2 source/custom-bucket-name-helper/requests
source/custom-resource-helper/requests
cookies.py
cookies.py
19:549 (100%)
19:549 (100%)
view
255 x 2 source/custom-bucket-name-helper/requests
source/custom-resource-helper/requests
adapters.py
adapters.py
34:533 (100%)
34:533 (100%)
view
255 x 2 source/custom-bucket-name-helper/urllib3/util
source/custom-resource-helper/urllib3/util
url.py
url.py
9:430 (100%)
9:430 (100%)
view
249 x 2 source/custom-bucket-name-helper/urllib3
source/custom-resource-helper/urllib3
connection.py
connection.py
13:423 (100%)
13:423 (100%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 511 unit duplicates...
Size#FoldersFilesLinesCode
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 source/custom-bucket-name-helper/idna
source/custom-resource-helper/idna
uts46data.py
uts46data.py
0:0 
0:0 
view