awslabs / aws-crt-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
  • 8% duplication:
    • 7,021 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 563 duplicated lines
  • 83 duplicates
system8% (563 lines)
Duplication per Extension
c8% (372 lines)
yml66% (113 lines)
py3% (78 lines)
Duplication per Component (primary)
source8% (372 lines)
codebuild/cd74% (113 lines)
awscrt3% (50 lines)
awscrt/eventstream7% (28 lines)
codebuild0% (0 lines)
ROOT0% (0 lines)
docsrc/source0% (0 lines)
continuous-delivery0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 83 duplicates...
Size#FoldersFilesLinesCode
21 x 2 codebuild/cd
codebuild/cd
publish_to_prod_pypi.yml
publish_to_test_pypi.yml
1:22 (80%)
1:22 (80%)
view
14 x 2 source
source
event_stream_rpc_client_connection.c
event_stream_rpc_client_continuation.c
305:325 (6%)
244:264 (6%)
view
13 x 2 codebuild/cd
codebuild/cd
manylinux-x64-build.yml
manylinux-x86-build.yml
1:15 (43%)
1:15 (44%)
view
11 x 2 source
source
event_stream_rpc_client_connection.c
event_stream_rpc_client_continuation.c
329:349 (4%)
268:282 (5%)
view
11 x 2 source
source
event_stream_rpc_client_connection.c
event_stream_rpc_client_continuation.c
352:369 (4%)
285:302 (5%)
view
10 x 2 source
source
event_stream_rpc_client_connection.c
event_stream_rpc_client_continuation.c
352:368 (4%)
218:235 (4%)
view
10 x 2 source
source
event_stream_rpc_client_continuation.c
event_stream_rpc_client_continuation.c
218:235 (4%)
285:301 (4%)
view
10 x 2 source
source
event_stream_rpc_client_connection.c
event_stream_rpc_client_continuation.c
338:349 (4%)
200:211 (4%)
view
10 x 2 source
source
event_stream_rpc_client_continuation.c
event_stream_rpc_client_continuation.c
200:211 (4%)
271:282 (4%)
view
10 x 2 codebuild/cd
codebuild/cd
manylinux1-tee.yml
windows-tee.yml
1:12 (45%)
1:12 (52%)
view
9 x 2 awscrt
awscrt
mqtt.py
mqtt.py
363:373 (3%)
406:416 (3%)
view
8 x 2 source
source
auth_credentials.c
auth_credentials.c
275:286 (1%)
376:387 (1%)
view
8 x 2 awscrt
awscrt
s3.py
s3.py
140:147 (4%)
258:265 (4%)
view
8 x 2 source
source
mqtt_client_connection.c
mqtt_client_connection.c
532:543 (1%)
659:670 (1%)
view
8 x 2 awscrt
awscrt
mqtt.py
mqtt.py
498:508 (2%)
556:566 (2%)
view
8 x 2 source
source
s3_client.c
s3_meta_request.c
102:114 (7%)
531:543 (1%)
view
7 x 2 source
source
auth_credentials.c
auth_credentials.c
346:354 (1%)
480:488 (1%)
view
7 x 2 source
source
io.c
io.c
108:116 (1%)
292:301 (1%)
view
7 x 2 source
source
mqtt_client_connection.c
mqtt_client_connection.c
100:111 (<1%)
129:140 (<1%)
view
7 x 2 codebuild/cd
codebuild/cd
publish_to_test_pypi.yml
windows-tee.yml
10:16 (26%)
7:13 (36%)
view