anthropics / hypercorn
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
  • 14% duplication:
    • 3,932 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 574 duplicated lines
  • 77 duplicates
system14% (574 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py14% (574 lines)
Duplication per Component (primary)
src14% (574 lines)
compliance0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 77 duplicates...
Size#FoldersFilesLinesCode
22 x 2 src/hypercorn/asyncio
src/hypercorn/trio
57:79 (17%)
57:79 (18%)
view
21 x 2 src/hypercorn/asyncio
src/hypercorn/trio
16:44 (70%)
17:45 (70%)
view
18 x 2 src/hypercorn/asyncio
src/hypercorn/trio
49:67 (22%)
40:58 (23%)
view
13 x 2 src/hypercorn/protocol
src/hypercorn/protocol
39:51 (7%)
164:176 (4%)
view
12 x 2 src/hypercorn/protocol
src/hypercorn/protocol
81:92 (4%)
81:92 (3%)
view
11 x 2 src/hypercorn/protocol
src/hypercorn/protocol
321:331 (3%)
101:111 (8%)
view
11 x 2 src/hypercorn/asyncio
src/hypercorn/trio
17:27 (21%)
16:26 (18%)
view
11 x 2 src/hypercorn/protocol
src/hypercorn/protocol
308:319 (3%)
88:99 (8%)
view
11 x 2 src/hypercorn/middleware
src/hypercorn/middleware
59:70 (13%)
94:105 (13%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
9:18 (3%)
12:21 (8%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
81:90 (3%)
164:173 (3%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
13:22 (12%)
164:173 (3%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
200:209 (3%)
213:222 (3%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
35:44 (12%)
64:73 (12%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
64:73 (12%)
78:87 (12%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
35:44 (12%)
78:87 (12%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
13:22 (12%)
81:90 (3%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
81:90 (3%)
164:173 (3%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
9:18 (3%)
12:21 (3%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
12:21 (3%)
12:21 (8%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
13:22 (12%)
39:48 (5%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
81:90 (3%)
39:48 (5%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
96:105 (8%)
108:117 (8%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
81:90 (3%)
39:48 (5%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
13:22 (12%)
81:90 (3%)
view
10 x 2 src/hypercorn/protocol
src/hypercorn/protocol
316:325 (3%)
328:337 (3%)
view
9 x 2 src/hypercorn/protocol
src/hypercorn/protocol
36:44 (11%)
47:55 (11%)
view
9 x 2 src/hypercorn/protocol
src/hypercorn/protocol
47:55 (11%)
79:87 (11%)
view
9 x 2 src/hypercorn
src/hypercorn
237:246 (3%)
262:271 (3%)
view
9 x 2 src/hypercorn/protocol
src/hypercorn/protocol
47:55 (11%)
65:73 (11%)
view
8 x 2 src/hypercorn/protocol
src/hypercorn/protocol
213:220 (3%)
316:323 (2%)
view
8 x 2 src/hypercorn
src/hypercorn
40:47 (3%)
55:62 (3%)
view
8 x 2 src/hypercorn/protocol
src/hypercorn/protocol
213:220 (3%)
328:335 (2%)
view
8 x 2 src/hypercorn
src/hypercorn
26:33 (5%)
334:341 (3%)
view
8 x 2 src/hypercorn
src/hypercorn
42:49 (5%)
334:341 (3%)
view
8 x 2 src/hypercorn/protocol
src/hypercorn/protocol
200:207 (3%)
316:323 (2%)
view
8 x 2 src/hypercorn
src/hypercorn
26:33 (5%)
42:49 (5%)
view
8 x 2 src/hypercorn/protocol
src/hypercorn/protocol
200:207 (3%)
328:335 (2%)
view
7 x 2 src/hypercorn/asyncio
src/hypercorn
41:47 (13%)
309:315 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
79:85 (9%)
200:206 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
65:71 (9%)
213:219 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
47:53 (9%)
316:322 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
47:53 (9%)
328:334 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
82:88 (3%)
213:219 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
16:23 (3%)
33:40 (2%)
view
7 x 2 src/hypercorn/asyncio
src/hypercorn/trio
41:47 (13%)
47:53 (12%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
79:85 (9%)
316:322 (2%)
view
7 x 2 src/hypercorn/trio
src/hypercorn
47:53 (12%)
309:315 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
47:53 (9%)
200:206 (2%)
view
7 x 2 src/hypercorn/protocol
src/hypercorn/protocol
65:71 (9%)
200:206 (2%)
view
Most Frequent Duplicates
The list of 21 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 8 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
37:42 (7%)
201:206 (2%)
317:322 (1%)
48:53 (7%)
66:71 (7%)
80:85 (7%)
329:334 (1%)
214:219 (2%)
view
6 x 8 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
36:41 (7%)
200:205 (2%)
316:321 (1%)
47:52 (7%)
65:70 (7%)
79:84 (7%)
328:333 (1%)
213:218 (2%)
view
6 x 7 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
13:18 (7%)
30:35 (4%)
29:34 (5%)
164:169 (1%)
81:86 (2%)
81:86 (1%)
39:44 (3%)
view
6 x 5 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
15:20 (7%)
83:88 (2%)
83:88 (1%)
41:46 (3%)
166:171 (1%)
view
6 x 5 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
16:21 (7%)
84:89 (2%)
84:89 (1%)
42:47 (3%)
167:172 (1%)
view
6 x 5 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
14:19 (7%)
82:87 (2%)
82:87 (1%)
40:45 (3%)
165:170 (1%)
view
6 x 5 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
17:22 (7%)
85:90 (2%)
85:90 (1%)
43:48 (3%)
168:173 (1%)
view
6 x 4 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
318:323 (1%)
202:207 (2%)
330:335 (1%)
215:220 (2%)
view
6 x 4 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
39:44 (7%)
50:55 (7%)
68:73 (7%)
82:87 (7%)
view
6 x 4 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
38:43 (7%)
49:54 (7%)
67:72 (7%)
81:86 (7%)
view
6 x 3 src/hypercorn
src/hypercorn
src/hypercorn
336:341 (2%)
28:33 (4%)
44:49 (4%)
view
6 x 3 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
14:19 (1%)
11:16 (2%)
14:19 (4%)
view
6 x 3 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
13:18 (1%)
10:15 (2%)
13:18 (4%)
view
6 x 3 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
15:20 (1%)
12:17 (2%)
15:20 (4%)
view
6 x 3 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
12:17 (1%)
9:14 (2%)
12:17 (4%)
view
6 x 3 src/hypercorn/trio
src/hypercorn
src/hypercorn/asyncio
48:53 (10%)
310:315 (2%)
42:47 (11%)
view
6 x 3 src/hypercorn
src/hypercorn
src/hypercorn
335:340 (2%)
27:32 (4%)
43:48 (4%)
view
6 x 3 src/hypercorn
src/hypercorn
src/hypercorn
334:339 (2%)
26:31 (4%)
42:47 (4%)
view
6 x 3 src/hypercorn/trio
src/hypercorn
src/hypercorn/asyncio
47:52 (10%)
309:314 (2%)
41:46 (11%)
view
6 x 3 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
16:21 (1%)
13:18 (2%)
16:21 (4%)
view
6 x 3 src/hypercorn/protocol
src/hypercorn/protocol
src/hypercorn/protocol
35:40 (7%)
64:69 (7%)
78:83 (7%)
view