anthropics / httpcore
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
  • 57% duplication:
    • 4,953 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,855 duplicated lines
  • 319 duplicates
system57% (2,855 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py57% (2,855 lines)
Duplication per Component (primary)
httpcore58% (2,855 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 319 duplicates...
Size#FoldersFilesLinesCode
38 x 2 httpcore/_async
httpcore/_sync
280:339 (14%)
280:339 (14%)
view
36 x 2 httpcore/_async
httpcore/_sync
565:609 (8%)
565:609 (8%)
view
33 x 2 httpcore/_async
httpcore/_sync
75:144 (12%)
75:144 (12%)
view
29 x 2 httpcore/_async
httpcore/_sync
264:307 (11%)
264:307 (11%)
view
26 x 2 httpcore/_async
httpcore/_sync
308:341 (10%)
308:341 (10%)
view
26 x 2 httpcore/_async
httpcore/_sync
175:208 (15%)
175:208 (15%)
view
25 x 2 httpcore/_async
httpcore/_sync
11:51 (9%)
11:51 (9%)
view
24 x 2 httpcore/_async
httpcore/_sync
372:402 (5%)
372:402 (5%)
view
23 x 2 httpcore/_async
httpcore/_sync
122:174 (9%)
122:174 (9%)
view
22 x 2 httpcore/_async
httpcore/_sync
61:113 (8%)
61:113 (8%)
view
21 x 2 httpcore/_async
httpcore/_async
183:208 (12%)
316:341 (8%)
view
21 x 2 httpcore/_async
httpcore/_sync
183:208 (12%)
316:341 (8%)
view
21 x 2 httpcore/_async
httpcore/_sync
316:341 (8%)
183:208 (12%)
view
21 x 2 httpcore/_sync
httpcore/_sync
183:208 (12%)
316:341 (8%)
view
21 x 2 httpcore/_async
httpcore/_sync
366:391 (8%)
366:391 (8%)
view
18 x 2 httpcore/_async
httpcore/_sync
19:39 (7%)
19:39 (7%)
view
18 x 2 httpcore/_async
httpcore/_sync
227:251 (4%)
227:251 (4%)
view
18 x 2 httpcore/_async
httpcore/_sync
441:486 (4%)
441:486 (4%)
view
17 x 2 httpcore/_async
httpcore/_sync
136:154 (10%)
136:154 (10%)
view
17 x 2 httpcore/_async
httpcore/_sync
14:40 (6%)
14:40 (6%)
view
17 x 2 httpcore/_async
httpcore/_sync
245:264 (7%)
245:264 (7%)
view
17 x 2 httpcore/_async
httpcore/_sync
270:287 (6%)
270:287 (6%)
view
16 x 2 httpcore/_sync
httpcore/_sync
208:230 (6%)
345:367 (6%)
view
16 x 2 httpcore/_async
httpcore/_async
208:230 (6%)
345:367 (6%)
view
15 x 2 httpcore/_async
httpcore/_sync
106:122 (9%)
106:122 (9%)
view
15 x 2 httpcore/_async
httpcore/_sync
59:73 (5%)
59:73 (5%)
view
15 x 2 httpcore/_async
httpcore/_sync
64:84 (3%)
64:84 (3%)
view
14 x 2 httpcore/_async
httpcore/_sync
192:205 (5%)
192:205 (5%)
view
14 x 2 httpcore/_async
httpcore/_sync
152:166 (3%)
152:166 (3%)
view
14 x 2 httpcore/_async
httpcore/_sync
248:261 (5%)
248:261 (5%)
view
14 x 2 httpcore/_async
httpcore/_sync
297:314 (5%)
297:314 (5%)
view
14 x 2 httpcore/_async
httpcore/_sync
18:40 (3%)
18:40 (3%)
view
13 x 2 httpcore/_async
httpcore/_sync
89:137 (16%)
89:137 (16%)
view
13 x 2 httpcore/_async
httpcore/_sync
63:77 (5%)
63:77 (5%)
view
13 x 2 httpcore/_async
httpcore/_sync
44:58 (5%)
44:58 (5%)
view
13 x 2 httpcore/_sync
httpcore/_sync
31:46 (16%)
63:78 (16%)
view
13 x 2 httpcore/_async
httpcore/_sync
28:44 (16%)
28:44 (16%)
view
13 x 2 httpcore/_async
httpcore/_async
31:46 (16%)
63:78 (16%)
view
13 x 2 httpcore/_async
httpcore/_sync
198:218 (3%)
198:218 (3%)
view
12 x 2 httpcore/_backends
httpcore/_backends
116:129 (9%)
141:152 (9%)
view
12 x 2 httpcore/_async
httpcore/_sync
169:181 (4%)
169:181 (4%)
view
12 x 2 httpcore/_async
httpcore/_sync
407:418 (2%)
407:418 (2%)
view
12 x 2 httpcore/_async
httpcore/_sync
214:230 (4%)
214:230 (4%)
view
12 x 2 httpcore/_async
httpcore/_sync
351:367 (4%)
214:230 (4%)
view
12 x 2 httpcore/_async
httpcore/_sync
351:367 (4%)
351:367 (4%)
view
12 x 2 httpcore/_async
httpcore/_sync
48:59 (4%)
48:59 (4%)
view
12 x 2 httpcore/_async
httpcore/_sync
214:230 (4%)
351:367 (4%)
view
12 x 2 httpcore/_async
httpcore/_sync
205:218 (4%)
205:218 (4%)
view
11 x 2 httpcore/_sync
httpcore/_sync
52:62 (4%)
66:76 (4%)
view
11 x 2 httpcore/_async
httpcore/_sync
296:308 (2%)
296:308 (2%)
view
Most Frequent Duplicates
The list of 50 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 10 httpcore/_sync
httpcore
httpcore/_sync
httpcore
httpcore/_sync
httpcore/_sync
httpcore
httpcore
httpcore
httpcore
315:320 (2%)
55:60 (6%)
617:622 (1%)
104:109 (3%)
358:363 (2%)
216:221 (3%)
217:222 (3%)
247:252 (3%)
271:276 (3%)
312:317 (3%)
view
6 x 10 httpcore/_sync
httpcore
httpcore/_sync
httpcore
httpcore/_sync
httpcore/_sync
httpcore
httpcore
httpcore
httpcore
615:621 (1%)
53:59 (6%)
313:319 (2%)
102:108 (3%)
356:362 (2%)
214:220 (3%)
215:221 (3%)
245:251 (3%)
269:275 (3%)
310:316 (3%)
view
6 x 8 httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
64:69 (5%)
99:104 (4%)
111:116 (4%)
38:43 (8%)
23:28 (16%)
189:194 (3%)
83:88 (8%)
125:130 (5%)
view
6 x 6 httpcore
httpcore/_async
httpcore/_async
httpcore
httpcore/_async
httpcore/_async
81:86 (3%)
358:363 (2%)
617:622 (1%)
95:100 (6%)
216:221 (3%)
315:320 (2%)
view
6 x 6 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
43:48 (3%)
54:59 (2%)
54:59 (2%)
68:73 (2%)
68:73 (2%)
43:48 (3%)
view
6 x 6 httpcore
httpcore/_async
httpcore/_async
httpcore
httpcore/_async
httpcore/_async
79:85 (3%)
356:362 (2%)
615:621 (1%)
93:99 (6%)
214:220 (3%)
313:319 (2%)
view
6 x 6 httpcore/_sync
httpcore/_sync
httpcore/_async
httpcore/_async
httpcore/_async
httpcore/_sync
115:120 (2%)
66:71 (2%)
115:120 (2%)
52:57 (2%)
66:71 (2%)
52:57 (2%)
view
6 x 6 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
181:186 (2%)
181:186 (2%)
137:142 (2%)
137:142 (2%)
161:166 (2%)
161:166 (2%)
view
6 x 5 httpcore/_backends
httpcore/_sync
httpcore/_backends
httpcore/_backends
httpcore/_backends
24:29 (8%)
370:375 (2%)
98:103 (3%)
43:48 (5%)
144:149 (3%)
view
6 x 5 httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
126:131 (5%)
100:105 (4%)
112:117 (4%)
84:89 (8%)
24:29 (16%)
view
6 x 5 httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
134:139 (5%)
125:130 (4%)
137:142 (4%)
92:97 (8%)
39:44 (16%)
view
6 x 5 httpcore
httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
42:47 (17%)
39:44 (7%)
39:44 (7%)
71:76 (7%)
71:76 (7%)
view
6 x 5 httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
124:129 (5%)
98:103 (4%)
110:115 (4%)
82:87 (8%)
22:27 (16%)
view
6 x 5 httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_backends
httpcore/_async
104:109 (5%)
55:60 (4%)
54:59 (4%)
69:74 (8%)
370:375 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
218:226 (2%)
218:226 (2%)
355:363 (2%)
355:363 (2%)
view
6 x 4 httpcore/_sync
httpcore/_sync
httpcore/_async
httpcore/_async
299:305 (2%)
601:607 (1%)
601:607 (1%)
299:305 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
33:41 (7%)
33:41 (7%)
65:73 (7%)
65:73 (7%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
600:606 (1%)
600:606 (1%)
298:304 (2%)
298:304 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
214:221 (2%)
214:221 (2%)
351:358 (2%)
351:358 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
317:323 (2%)
317:323 (2%)
184:190 (3%)
184:190 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
331:337 (2%)
331:337 (2%)
198:204 (3%)
198:204 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
36:42 (7%)
36:42 (7%)
68:74 (7%)
68:74 (7%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
31:39 (7%)
31:39 (7%)
63:71 (7%)
63:71 (7%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
327:333 (2%)
327:333 (2%)
194:200 (3%)
194:200 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
323:330 (2%)
323:330 (2%)
190:197 (3%)
190:197 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
330:336 (2%)
330:336 (2%)
197:203 (3%)
197:203 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
12:17 (2%)
10:15 (7%)
10:15 (7%)
12:17 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
38:43 (7%)
38:43 (7%)
70:75 (7%)
70:75 (7%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
156:161 (2%)
156:161 (2%)
115:120 (2%)
115:120 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
215:223 (2%)
215:223 (2%)
352:360 (2%)
352:360 (2%)
view
6 x 4 httpcore/_async
httpcore/_async
httpcore/_async
httpcore/_async
359:364 (2%)
618:623 (1%)
217:222 (3%)
316:321 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
316:322 (2%)
316:322 (2%)
183:189 (3%)
183:189 (3%)
view
6 x 4 httpcore/_sync
httpcore/_sync
httpcore/_sync
httpcore/_sync
316:321 (2%)
359:364 (2%)
217:222 (3%)
618:623 (1%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
217:224 (2%)
217:224 (2%)
354:361 (2%)
354:361 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
220:227 (2%)
220:227 (2%)
357:364 (2%)
357:364 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
221:229 (2%)
221:229 (2%)
358:366 (2%)
358:366 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
136:141 (2%)
136:141 (2%)
160:165 (2%)
160:165 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
80:85 (3%)
320:327 (2%)
80:85 (3%)
320:327 (2%)
view
6 x 4 httpcore/_sync
httpcore/_sync
httpcore/_async
httpcore/_async
153:158 (2%)
112:117 (2%)
153:158 (2%)
112:117 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
32:40 (7%)
32:40 (7%)
64:72 (7%)
64:72 (7%)
view
6 x 4 httpcore/_sync
httpcore/_sync
httpcore/_async
httpcore/_async
154:159 (2%)
113:118 (2%)
154:159 (2%)
113:118 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
321:327 (2%)
321:327 (2%)
188:194 (3%)
188:194 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
591:598 (1%)
591:598 (1%)
289:296 (2%)
289:296 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
54:59 (3%)
106:111 (2%)
106:111 (2%)
54:59 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
325:331 (2%)
325:331 (2%)
192:198 (3%)
192:198 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
322:328 (2%)
322:328 (2%)
189:195 (3%)
189:195 (3%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
142:147 (3%)
303:308 (2%)
142:147 (3%)
303:308 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_async
httpcore/_sync
335:341 (2%)
335:341 (2%)
202:208 (3%)
202:208 (3%)
view
6 x 4 httpcore/_sync
httpcore/_sync
httpcore/_async
httpcore/_async
155:160 (2%)
114:119 (2%)
155:160 (2%)
114:119 (2%)
view
6 x 4 httpcore/_async
httpcore/_sync
httpcore/_sync
httpcore/_async
181:186 (2%)
181:186 (2%)
248:253 (2%)
248:253 (2%)
view