awslabs / amazon-kinesis-client-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
  • 11% duplication:
    • 509 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 61 duplicated lines
  • 7 duplicates
system11% (61 lines)
Duplication per Extension
py12% (61 lines)
Duplication per Component (primary)
amazon_kclpy16% (43 lines)
amazon_kclpy/v328% (9 lines)
amazon_kclpy/v234% (9 lines)
ROOT0% (0 lines)
amazon_kclpy/jars0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
9 x 2 amazon_kclpy/v2
amazon_kclpy/v3
processor.py
processor.py
7:40 (36%)
8:40 (29%)
view
8 x 2 amazon_kclpy
amazon_kclpy
messages.py
messages.py
135:156 (5%)
299:320 (5%)
view
7 x 2 amazon_kclpy
amazon_kclpy
messages.py
messages.py
69:91 (4%)
344:366 (4%)
view
7 x 2 amazon_kclpy
amazon_kclpy
messages.py
messages.py
69:91 (4%)
415:439 (4%)
view
7 x 2 amazon_kclpy
amazon_kclpy
messages.py
messages.py
344:366 (4%)
415:439 (4%)
view
6 x 2 amazon_kclpy
amazon_kclpy
messages.py
messages.py
135:153 (3%)
202:220 (3%)
view
6 x 2 amazon_kclpy
amazon_kclpy
messages.py
messages.py
202:220 (3%)
299:317 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 amazon_kclpy
amazon_kclpy
messages.py
messages.py
0:0 
0:0 
view