aws-samples / no-tears-cluster
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
  • 98% duplication:
    • 47,862 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 46,970 duplicated lines
  • 1,029 duplicates
system98% (46,970 lines)
Duplication per Extension
py98% (46,970 lines)
Duplication per Component (primary)
functions/source/c9bootstrap/idna99% (10,508 lines)
functions/source/c9InstanceProfile/idna99% (10,508 lines)
functions/source/c9bootstrap/urllib399% (5,629 lines)
functions/source/c9InstanceProfile/urllib399% (5,629 lines)
functions/source/c9bootstrap/chardet99% (4,609 lines)
functions/source/c9InstanceProfile/chardet99% (4,609 lines)
functions/source/c9bootstrap/requests99% (2,395 lines)
functions/source/c9InstanceProfile/requests99% (2,395 lines)
functions/source/c9bootstrap/crhelper99% (337 lines)
functions/source/c9InstanceProfile/crhelper99% (337 lines)
functions/source/c9bootstrap6% (7 lines)
functions/source/c9InstanceProfile18% (7 lines)
pcluster0% (0 lines)
ROOT0% (0 lines)
functions/source/c9bootstrap/certifi0% (0 lines)
functions/source/c9keypair0% (0 lines)
functions/source/c9InstanceProfile/certifi0% (0 lines)
scripts/spack0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/c9InstanceProfile/idna functions/source/c9InstanceProfile/idna functions/source/c9bootstrap/idna functions/source/c9bootstrap/idna functions/source/c9InstanceProfile/idna--functions/source/c9bootstrap/idna 21016 functions/source/c9InstanceProfile/urllib3 functions/source/c9InstanceProfile/urllib3 functions/source/c9bootstrap/urllib3 functions/source/c9bootstrap/urllib3 functions/source/c9InstanceProfile/urllib3--functions/source/c9bootstrap/urllib3 11258 functions/source/c9InstanceProfile/chardet functions/source/c9InstanceProfile/chardet functions/source/c9bootstrap/chardet functions/source/c9bootstrap/chardet functions/source/c9InstanceProfile/chardet--functions/source/c9bootstrap/chardet 9218 functions/source/c9InstanceProfile/requests functions/source/c9InstanceProfile/requests functions/source/c9bootstrap/requests functions/source/c9bootstrap/requests functions/source/c9InstanceProfile/requests--functions/source/c9bootstrap/requests 4790 functions/source/c9InstanceProfile/crhelper functions/source/c9InstanceProfile/crhelper functions/source/c9bootstrap/crhelper functions/source/c9bootstrap/crhelper functions/source/c9InstanceProfile/crhelper--functions/source/c9bootstrap/crhelper 674

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,029 duplicates...
Size#FoldersFilesLinesCode
8120 x 2 functions/source/c9InstanceProfile/idna
functions/source/c9bootstrap/idna
uts46data.py
uts46data.py
7:8205 (100%)
7:8205 (100%)
view
1977 x 2 functions/source/c9InstanceProfile/idna
functions/source/c9bootstrap/idna
idnadata.py
idnadata.py
3:1979 (100%)
3:1979 (100%)
view
676 x 2 functions/source/c9Insta...rofile/urllib3/packages
functions/source/c9bootstrap/urllib3/packages
six.py
six.py
31:1021 (100%)
31:1021 (100%)
view
543 x 2 functions/source/c9InstanceProfile/urllib3
functions/source/c9bootstrap/urllib3
connectionpool.py
connectionpool.py
12:1051 (100%)
12:1051 (100%)
view
498 x 2 functions/source/c9InstanceProfile/requests
functions/source/c9bootstrap/requests
models.py
models.py
22:953 (100%)
22:953 (100%)
view
496 x 2 functions/source/c9InstanceProfile/urllib3/contrib
functions/source/c9bootstrap/urllib3/contrib
securetransport.py
securetransport.py
67:870 (100%)
67:870 (100%)
view
476 x 2 functions/source/c9InstanceProfile/requests
functions/source/c9bootstrap/requests
utils.py
utils.py
29:977 (100%)
29:977 (100%)
view
475 x 2 functions/source/c9InstanceProfile/urllib3
functions/source/c9bootstrap/urllib3
response.py
response.py
9:809 (100%)
9:809 (100%)
view
355 x 2 functions/source/c9Insta...ontrib/_securetransport
functions/source/c9boots...ontrib/_securetransport
bindings.py
bindings.py
37:492 (100%)
37:492 (100%)
view
340 x 2 functions/source/c9InstanceProfile/chardet
functions/source/c9bootstrap/chardet
euctwfreq.py
euctwfreq.py
44:386 (100%)
44:386 (100%)
view
340 x 2 functions/source/c9InstanceProfile/chardet
functions/source/c9bootstrap/chardet
big5freq.py
big5freq.py
43:385 (100%)
43:385 (100%)
view
336 x 2 functions/source/c9InstanceProfile/requests
functions/source/c9bootstrap/requests
sessions.py
sessions.py
18:770 (100%)
18:770 (100%)
view
292 x 2 functions/source/c9InstanceProfile/idna
functions/source/c9bootstrap/idna
core.py
core.py
8:396 (100%)
8:396 (100%)
view
287 x 2 functions/source/c9InstanceProfile/urllib3/contrib
functions/source/c9bootstrap/urllib3/contrib
pyopenssl.py
pyopenssl.py
51:498 (100%)
51:498 (100%)
view
286 x 2 functions/source/c9InstanceProfile/chardet
functions/source/c9bootstrap/chardet
langcyrillicmodel.py
langcyrillicmodel.py
30:333 (100%)
30:333 (100%)
view
277 x 2 functions/source/c9InstanceProfile/chardet
functions/source/c9bootstrap/chardet
jisfreq.py
jisfreq.py
44:323 (100%)
44:323 (100%)
view
273 x 2 functions/source/c9InstanceProfile/requests
functions/source/c9bootstrap/requests
cookies.py
cookies.py
19:549 (100%)
19:549 (100%)
view
268 x 2 functions/source/c9InstanceProfile/crhelper
functions/source/c9bootstrap/crhelper
resource_helper.py
resource_helper.py
23:329 (100%)
23:329 (100%)
view
265 x 2 functions/source/c9InstanceProfile/urllib3
functions/source/c9bootstrap/urllib3
connection.py
connection.py
12:448 (100%)
12:448 (100%)
view
261 x 2 functions/source/c9InstanceProfile/urllib3/util
functions/source/c9bootstrap/urllib3/util
url.py
url.py
9:439 (100%)
9:439 (100%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 522 unit duplicates...
Size#FoldersFilesLinesCode
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view
102 x 2 functions/source/c9bootstrap/idna
functions/source/c9InstanceProfile/idna
uts46data.py
uts46data.py
0:0 
0:0 
view