awslabs / aws-c-http
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
  • 3% duplication:
    • 18,427 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 701 duplicated lines
  • 61 duplicates
system3% (701 lines)
Duplication per Extension
c4% (668 lines)
h1% (33 lines)
Duplication per Component (primary)
source4% (668 lines)
include/aws/http/private2% (33 lines)
codebuild0% (0 lines)
cmake0% (0 lines)
include/aws/http0% (0 lines)

Duplication Between Components (50+ lines)

G include/aws/http/private include/aws/http/private source source include/aws/http/private--source 66

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 61 duplicates...
Size#FoldersFilesLinesCode
22 x 2 source
source
h1_connection.c
h2_connection.c
26:51 (1%)
27:52 (1%)
view
22 x 2 source
source
h1_connection.c
websocket.c
24:50 (1%)
134:160 (2%)
view
21 x 2 source
source
h2_connection.c
websocket.c
27:51 (1%)
136:160 (1%)
view
15 x 2 source
source
h1_stream.c
h1_stream.c
159:183 (4%)
251:272 (4%)
view
11 x 2 source
source
h1_encoder.c
h1_encoder.c
41:62 (1%)
166:187 (1%)
view
11 x 2 source
source
proxy_strategy.c
proxy_strategy.c
623:640 (1%)
883:900 (1%)
view
11 x 2 source
source
h2_decoder.c
h2_decoder.c
41:51 (1%)
57:67 (1%)
view
11 x 2 source
source
h1_connection.c
h2_connection.c
134:148 (<1%)
232:246 (<1%)
view
11 x 2 include/aws/http/private
source
connection_impl.h
connection.c
194:204 (9%)
82:92 (1%)
view
10 x 2 source
source
h2_connection.c
h2_connection.c
2198:2212 (<1%)
2262:2276 (<1%)
view
10 x 2 source
source
proxy_strategy.c
proxy_strategy.c
178:194 (<1%)
883:899 (<1%)
view
10 x 2 include/aws/http/private
source
h2_frames.h
h2_frames.c
212:221 (6%)
316:325 (1%)
view
10 x 2 source
source
proxy_strategy.c
proxy_strategy.c
178:194 (<1%)
623:639 (<1%)
view
9 x 2 source
source
websocket_decoder.c
websocket_encoder.c
281:289 (5%)
230:238 (5%)
view
9 x 2 source
source
h1_stream.c
h1_stream.c
227:238 (2%)
314:325 (2%)
view
9 x 2 source
source
h2_connection.c
h2_connection.c
1070:1081 (<1%)
1094:1105 (<1%)
view
9 x 2 source
source
proxy_connection.c
proxy_connection.c
162:174 (<1%)
231:243 (<1%)
view
8 x 2 source
source
proxy_strategy.c
proxy_strategy.c
951:961 (<1%)
1168:1178 (<1%)
view
8 x 2 source
source
h2_stream.c
h2_stream.c
107:118 (1%)
149:160 (1%)
view
8 x 2 source
source
proxy_strategy.c
proxy_strategy.c
681:691 (<1%)
1168:1178 (<1%)
view