anthropics / redis-py
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
  • 16% duplication:
    • 20,785 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,330 duplicated lines
  • 239 duplicates
system16% (3,330 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py16% (3,330 lines)
Duplication per Component (primary)
redis17% (3,088 lines)
benchmarks22% (129 lines)
doctests4% (99 lines)
ROOT17% (14 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 239 duplicates...
Size#FoldersFilesLinesCode
38 x 2 redis/commands/timeseries
redis/commands/timeseries
748:837 (7%)
842:931 (7%)
view
32 x 2 redis/asyncio
redis
1120:1153 (3%)
1146:1179 (3%)
view
30 x 2 redis/commands/timeseries
redis/commands/timeseries
562:632 (6%)
636:708 (6%)
view
29 x 2 redis/asyncio
redis
303:334 (2%)
294:325 (2%)
view
26 x 2 redis/asyncio
redis
748:778 (2%)
698:728 (2%)
view
25 x 2 redis/asyncio
redis
649:673 (2%)
117:141 (2%)
view
25 x 2 redis/_parsers
redis/_parsers
118:145 (15%)
240:267 (15%)
view
24 x 2 redis/commands/search
redis/commands/search
42:68 (19%)
134:160 (19%)
view
23 x 2 redis/asyncio
redis/asyncio
479:558 (2%)
865:944 (2%)
view
22 x 2 redis/commands
redis/commands
1252:1286 (<1%)
1408:1437 (<1%)
view
22 x 2 redis/commands/timeseries
redis/commands/timeseries
284:371 (4%)
376:463 (4%)
view
20 x 2 redis/commands/json
redis/commands/timeseries
104:135 (22%)
67:99 (30%)
view
19 x 2 redis/asyncio
redis
272:293 (7%)
299:320 (7%)
view
18 x 2 redis/asyncio
redis
684:703 (1%)
684:703 (1%)
view
17 x 2 doctests
doctests
10:32 (29%)
11:33 (50%)
view
16 x 2 redis/asyncio
redis
53:73 (1%)
38:59 (1%)
view
16 x 2 redis
redis/asyncio
11:28 (24%)
15:33 (28%)
view
16 x 2 redis/asyncio
redis
175:190 (1%)
272:288 (1%)
view
15 x 2 redis/asyncio
redis
642:662 (1%)
1026:1046 (<1%)
view
15 x 2 redis/commands/search
redis/commands/search
832:877 (2%)
1103:1148 (2%)
view
15 x 2 redis/asyncio
redis
1367:1385 (1%)
1689:1707 (<1%)
view
14 x 2 redis/asyncio
redis
196:212 (5%)
227:243 (5%)
view
14 x 2 redis
redis
477:547 (1%)
841:911 (<1%)
view
13 x 2 benchmarks
benchmarks
205:217 (6%)
53:65 (16%)
view
13 x 2 redis/asyncio
redis
162:174 (1%)
251:270 (1%)
view
13 x 2 redis/_parsers
redis/_parsers
55:77 (6%)
193:215 (6%)
view
13 x 2 redis/asyncio
redis
193:212 (1%)
174:193 (1%)
view
13 x 2 redis/commands/search
redis/commands/search
544:568 (2%)
969:993 (2%)
view
13 x 2 redis/asyncio
redis
738:751 (1%)
740:753 (1%)
view
13 x 2 redis/_parsers
redis/_parsers
129:144 (8%)
212:228 (8%)
view
13 x 2 redis/auth
redis/auth
260:275 (5%)
306:321 (5%)
view
12 x 2 redis/asyncio
redis
933:944 (1%)
536:547 (1%)
view
12 x 2 redis/commands
redis/commands
129:140 (2%)
327:338 (2%)
view
12 x 2 redis/asyncio
redis
933:944 (1%)
900:911 (<1%)
view
12 x 2 doctests
doctests
18:33 (24%)
18:33 (36%)
view
12 x 2 redis/asyncio
redis
547:558 (1%)
900:911 (<1%)
view
12 x 2 redis/asyncio
redis
88:154 (7%)
85:151 (7%)
view
12 x 2 doctests
doctests
18:33 (36%)
17:32 (37%)
view
12 x 2 doctests
doctests
18:33 (24%)
17:32 (20%)
view
12 x 2 doctests
doctests
17:32 (20%)
18:33 (36%)
view
12 x 2 redis/_parsers
redis/_parsers
41:52 (7%)
544:555 (1%)
view
12 x 2 doctests
doctests
18:33 (24%)
17:32 (37%)
view
12 x 2 doctests
doctests
17:32 (37%)
18:33 (35%)
view
12 x 2 redis/asyncio
redis
547:558 (1%)
536:547 (1%)
view
12 x 2 doctests
doctests
18:33 (24%)
18:33 (35%)
view
12 x 2 doctests
doctests
17:32 (20%)
17:32 (37%)
view
12 x 2 doctests
doctests
18:33 (36%)
18:33 (35%)
view
12 x 2 redis/commands
redis/commands
6038:6079 (<1%)
6100:6119 (<1%)
view
12 x 2 redis/asyncio
redis
96:114 (5%)
137:155 (4%)
view
11 x 2 benchmarks
benchmarks
231:242 (5%)
79:90 (13%)
view
Most Frequent Duplicates
The list of 45 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 7 doctests
doctests
doctests
doctests
doctests
doctests
doctests
18:24 (17%)
18:24 (12%)
17:23 (18%)
198:204 (2%)
17:23 (10%)
18:24 (18%)
39:45 (9%)
view
6 x 5 doctests
doctests
doctests
doctests
doctests
20:27 (17%)
20:27 (12%)
19:26 (18%)
19:26 (10%)
20:27 (18%)
view
6 x 5 redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
91:96 (1%)
160:165 (1%)
244:249 (1%)
366:371 (1%)
458:463 (1%)
view
6 x 5 doctests
doctests
doctests
doctests
doctests
23:31 (17%)
23:31 (12%)
22:30 (18%)
22:30 (10%)
23:31 (18%)
view
6 x 5 doctests
doctests
doctests
doctests
doctests
24:32 (17%)
24:32 (12%)
23:31 (18%)
23:31 (10%)
24:32 (18%)
view
6 x 5 doctests
doctests
doctests
doctests
doctests
22:30 (17%)
22:30 (12%)
21:29 (18%)
21:29 (10%)
22:30 (18%)
view
6 x 5 redis/commands/bf
redis/commands/bf
redis/commands/bf
redis/commands/bf
redis/commands/bf
111:117 (4%)
142:148 (4%)
177:183 (4%)
213:219 (4%)
247:253 (4%)
view
6 x 5 doctests
doctests
doctests
doctests
doctests
21:28 (17%)
21:28 (12%)
20:27 (18%)
20:27 (10%)
21:28 (18%)
view
6 x 5 doctests
doctests
doctests
doctests
doctests
27:33 (17%)
27:33 (12%)
26:32 (18%)
26:32 (10%)
27:33 (18%)
view
6 x 5 redis/commands/bf
redis/commands/bf
redis/commands/bf
redis/commands/bf
redis/commands/bf
109:116 (4%)
140:147 (4%)
175:182 (4%)
211:218 (4%)
245:252 (4%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
905:910 (<1%)
938:943 (<1%)
552:557 (<1%)
541:546 (<1%)
view
6 x 4 redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
90:95 (1%)
243:248 (1%)
365:370 (1%)
457:462 (1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5289:5294 (<1%)
5349:5354 (<1%)
5409:5414 (<1%)
5475:5480 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5246:5280 (<1%)
5306:5340 (<1%)
5366:5400 (<1%)
5432:5466 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5288:5293 (<1%)
5348:5353 (<1%)
5408:5413 (<1%)
5474:5479 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5245:5250 (<1%)
5305:5310 (<1%)
5365:5370 (<1%)
5431:5436 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
1765:1770 (<1%)
1802:1807 (<1%)
2064:2069 (<1%)
2099:2104 (<1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
901:906 (<1%)
934:939 (<1%)
548:553 (<1%)
537:542 (<1%)
view
6 x 4 redis/commands/timeseries
redis/commands/bf
redis/commands/bf
redis/commands/bf
85:91 (14%)
20:26 (6%)
51:57 (6%)
114:120 (6%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5291:5297 (<1%)
5351:5357 (<1%)
5411:5417 (<1%)
5477:5483 (<1%)
view
6 x 4 redis/commands/timeseries
redis/commands/bf
redis/commands/bf
redis/commands/bf
84:90 (14%)
19:25 (6%)
50:56 (6%)
113:119 (6%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
1387:1394 (<1%)
1363:1370 (<1%)
1559:1566 (<1%)
1570:1577 (<1%)
view
6 x 4 redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
89:94 (1%)
242:247 (1%)
364:369 (1%)
456:461 (1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
903:908 (<1%)
936:941 (<1%)
550:555 (<1%)
539:544 (<1%)
view
6 x 4 redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
31:36 (1%)
174:179 (1%)
288:293 (1%)
380:385 (1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
906:911 (<1%)
939:944 (<1%)
553:558 (<1%)
542:547 (<1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
902:907 (<1%)
935:940 (<1%)
549:554 (<1%)
538:543 (<1%)
view
6 x 4 redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
32:37 (1%)
175:180 (1%)
289:294 (1%)
381:386 (1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
900:905 (<1%)
933:938 (<1%)
547:552 (<1%)
536:541 (<1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
1386:1393 (<1%)
1362:1369 (<1%)
1558:1565 (<1%)
1569:1576 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5247:5281 (<1%)
5307:5341 (<1%)
5367:5401 (<1%)
5433:5467 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
1766:1771 (<1%)
1803:1808 (<1%)
2065:2070 (<1%)
2100:2105 (<1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
920:925 (<1%)
962:967 (<1%)
989:994 (<1%)
957:962 (<1%)
view
6 x 4 redis
redis/asyncio
redis/asyncio
redis
904:909 (<1%)
937:942 (<1%)
551:556 (<1%)
540:545 (<1%)
view
6 x 4 redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
redis/commands/timeseries
33:38 (1%)
104:109 (1%)
290:295 (1%)
382:387 (1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5290:5295 (<1%)
5350:5355 (<1%)
5410:5415 (<1%)
5476:5481 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5248:5282 (<1%)
5308:5342 (<1%)
5368:5402 (<1%)
5434:5468 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
1767:1772 (<1%)
1804:1809 (<1%)
2066:2071 (<1%)
2101:2106 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
5287:5292 (<1%)
5347:5352 (<1%)
5407:5412 (<1%)
5473:5478 (<1%)
view
6 x 4 redis/commands
redis/commands
redis/commands
redis/commands
1768:1773 (<1%)
1805:1810 (<1%)
2067:2072 (<1%)
2102:2107 (<1%)
view
6 x 3 doctests
doctests
doctests
197:203 (2%)
17:23 (17%)
16:22 (10%)
view
6 x 3 doctests
doctests
doctests
195:201 (2%)
15:21 (17%)
14:20 (10%)
view
6 x 3 doctests
doctests
doctests
196:202 (2%)
16:22 (17%)
15:21 (10%)
view
6 x 3 redis/commands/timeseries
redis/commands/search
redis/commands/json
94:99 (9%)
116:121 (4%)
130:135 (6%)
view
6 x 3 redis/commands
redis/commands
redis/commands
592:597 (<1%)
611:616 (<1%)
631:636 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 benchmarks
benchmarks
0:0 
0:0 
view