aws / aws-iot-device-sdk-python
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
  • 6% duplication:
    • 3,841 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 256 duplicated lines
  • 23 duplicates
system6% (256 lines)
Duplication per Extension
py6% (256 lines)
Duplication per Component (primary)
AWSIoTPythonSDK/core/protocol/paho11% (183 lines)
AWSIoTPythonSDK/core/greengrass/discovery11% (37 lines)
AWSIoTPythonSDK/core/protocol/connection7% (36 lines)
ROOT0% (0 lines)
AWSIoTPythonSDK0% (0 lines)
AWSIoTPythonSDK/exception0% (0 lines)
AWSIoTPythonSDK/core0% (0 lines)
AWSIoTPythonSDK/core/util0% (0 lines)
AWSIoTPythonSDK/core/greengrass0% (0 lines)
AWSIoTPythonSDK/core/jobs0% (0 lines)
AWSIoTPythonSDK/core/protocol0% (0 lines)
AWSIoTPythonSDK/core/protocol/internal0% (0 lines)
AWSIoTPythonSDK/core/shadow0% (0 lines)

Duplication Between Components (50+ lines)

G AWSIoTPythonSDK/core/greengrass/discovery AWSIoTPythonSDK/core/greengrass/discovery AWSIoTPythonSDK/core/protocol/paho AWSIoTPythonSDK/core/protocol/paho AWSIoTPythonSDK/core/greengrass/discovery--AWSIoTPythonSDK/core/protocol/paho 74

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 23 duplicates...
Size#FoldersFilesLinesCode
15 x 2 AWSIoTPythonSDK/core/greengrass/discovery
AWSIoTPythonSDK/core/protocol/paho
providers.py
client.py
312:327 (6%)
2400:2415 (<1%)
view
12 x 2 AWSIoTPythonSDK/core/greengrass/discovery
AWSIoTPythonSDK/core/protocol/paho
providers.py
client.py
282:296 (5%)
2420:2434 (<1%)
view
12 x 2 AWSIoTPythonSDK/core/protocol/connection
AWSIoTPythonSDK/core/protocol/connection
cores.py
cores.py
413:425 (2%)
449:461 (2%)
view
10 x 2 AWSIoTPythonSDK/core/greengrass/discovery
AWSIoTPythonSDK/core/protocol/paho
providers.py
client.py
298:310 (4%)
2436:2448 (<1%)
view
9 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
450:458 (<1%)
745:753 (<1%)
view
8 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1517:1524 (<1%)
1540:1547 (<1%)
view
8 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1540:1547 (<1%)
1571:1578 (<1%)
view
8 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1517:1524 (<1%)
1571:1578 (<1%)
view
7 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
547:553 (<1%)
772:778 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1541:1546 (<1%)
1617:1622 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1920:1925 (<1%)
1936:1941 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1488:1494 (<1%)
1705:1710 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
2145:2150 (<1%)
2155:2160 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1477:1482 (<1%)
1694:1699 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1572:1577 (<1%)
1617:1622 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1237:1242 (<1%)
1694:1699 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/connection
AWSIoTPythonSDK/core/protocol/connection
cores.py
cores.py
591:599 (1%)
666:674 (1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1384:1389 (<1%)
1393:1398 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
1518:1523 (<1%)
1617:1622 (<1%)
view
6 x 2 AWSIoTPythonSDK/core/protocol/paho
AWSIoTPythonSDK/core/protocol/paho
client.py
client.py
2135:2140 (<1%)
2155:2160 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
14 x 2 AWSIoTPythonSDK/core/greengrass/discovery
AWSIoTPythonSDK/core/protocol/paho
providers.py
client.py
0:0 
0:0 
view