-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathmrr_sample_dataset.json
More file actions
523 lines (523 loc) · 16.4 KB
/
mrr_sample_dataset.json
File metadata and controls
523 lines (523 loc) · 16.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
{
"metadata": {
"version": "1.0-sample",
"total_cases": 500,
"description": "Representative sample of Chronos MRR benchmark (10% of full 5000 cases)",
"full_benchmark_info": "Complete benchmark available Q1 2026 - contact [email protected]",
"categories": {
"syntax": 50,
"logic": 120,
"concurrency": 80,
"memory": 60,
"api": 90,
"performance": 40,
"cross_category": 60
}
},
"evaluation_protocol": {
"metrics": [
"retrieval_precision_at_k",
"retrieval_recall_at_k",
"fix_accuracy",
"root_cause_identification",
"iterations_to_fix",
"context_efficiency"
],
"validation": {
"test_execution": "Run provided test suite",
"regression_check": "Ensure no new failures",
"performance_check": "Verify no performance degradation"
}
},
"test_cases": [
{
"bug_id": "mrr_sample_001",
"category": "cross_category",
"subcategories": ["memory", "concurrency"],
"difficulty": "hard",
"language": "java",
"repository": {
"size": "large",
"files": 1847,
"loc": 287000,
"age_months": 36
},
"description": "Memory leak in concurrent connection pool causing OOM after 48 hours",
"symptoms": [
"OutOfMemoryError after 2 days uptime",
"Heap dump shows millions of Connection objects",
"Only happens in production with >1000 concurrent users"
],
"scattered_context": {
"db/ConnectionPool.java": {
"relevance": "critical",
"methods": ["getConnection", "releaseConnection"],
"issue": "Race condition in connection cleanup"
},
"db/ConnectionFactory.java": {
"relevance": "critical",
"issue": "Creates connections without cleanup hooks"
},
"config/database.properties": {
"relevance": "high",
"diff_prod_dev": "Pool size 500 vs 10"
},
"monitoring/gc.log": {
"relevance": "high",
"pattern": "Full GC frequency increasing"
},
"commits/": {
"relevance": "high",
"relevant_commits": [
{"id": "abc123", "date": "6 months ago", "message": "Optimize connection pooling"},
{"id": "def456", "date": "4 months ago", "message": "Increase pool size for production"}
]
},
"tests/integration/ConnectionPoolTest.java": {
"relevance": "medium",
"issue": "Doesn't test high concurrency"
}
},
"ground_truth": {
"root_cause": "Connection cleanup thread dies silently on ConcurrentModificationException",
"contributing_factors": [
"No monitoring on cleanup thread",
"Exception swallowed in catch block",
"Pool size too large for cleanup rate"
],
"fix": {
"primary": "Use ConcurrentHashMap for connection tracking",
"secondary": "Add cleanup thread monitoring",
"config": "Reduce pool size or increase cleanup frequency"
},
"files_modified": 4,
"complexity": "high"
}
},
{
"bug_id": "mrr_sample_002",
"category": "logic",
"difficulty": "medium",
"language": "python",
"repository": {
"size": "medium",
"files": 423,
"loc": 67000
},
"description": "Timezone conversion error causes incorrect billing dates",
"symptoms": [
"Customers billed one day early in specific timezones",
"Only affects UTC+X timezones",
"Started after daylight savings change"
],
"scattered_context": {
"billing/scheduler.py": {
"relevance": "critical",
"function": "calculate_next_billing_date",
"issue": "Uses local time instead of UTC"
},
"utils/timezone.py": {
"relevance": "critical",
"function": "convert_to_utc",
"issue": "Doesn't handle DST transitions"
},
"models/subscription.py": {
"relevance": "high",
"field": "next_billing_date",
"storage": "Stored as local time"
},
"tests/test_billing.py": {
"relevance": "high",
"coverage": "No DST edge cases"
},
"customer_complaints.csv": {
"relevance": "medium",
"pattern": "All complaints from UTC+1 to UTC+12"
}
},
"ground_truth": {
"root_cause": "Billing date calculation doesn't account for DST transitions",
"fix_type": "timezone_handling",
"solution": "Always calculate in UTC, convert for display only",
"files_modified": 3
}
},
{
"bug_id": "mrr_sample_003",
"category": "api",
"difficulty": "easy",
"language": "javascript",
"repository": {
"size": "small",
"files": 89,
"loc": 12000
},
"description": "GraphQL API returns null for newly added fields",
"symptoms": [
"New 'profile.preferences' field always null",
"Other profile fields work correctly",
"No errors in logs"
],
"scattered_context": {
"graphql/schema.graphql": {
"relevance": "critical",
"change": "Added preferences field"
},
"graphql/resolvers/user.js": {
"relevance": "critical",
"missing": "Resolver for preferences field"
},
"models/user.js": {
"relevance": "high",
"has": "Preferences data exists in model"
},
"tests/graphql/user.test.js": {
"relevance": "medium",
"missing": "Test for new field"
}
},
"ground_truth": {
"root_cause": "Missing resolver for new GraphQL field",
"fix_type": "add_resolver",
"files_modified": 2
}
},
{
"bug_id": "mrr_sample_004",
"category": "performance",
"difficulty": "hard",
"language": "python",
"repository": {
"size": "large",
"files": 2134,
"loc": 450000
},
"description": "Search API response time degraded from 100ms to 8s",
"symptoms": [
"Search requests timeout",
"Database CPU spikes to 100%",
"Started after adding fuzzy search feature"
],
"scattered_context": {
"search/engine.py": {
"relevance": "critical",
"function": "fuzzy_search",
"issue": "Cartesian product in query"
},
"db/indexes.py": {
"relevance": "critical",
"missing": "No index for fuzzy search columns"
},
"search/query_builder.py": {
"relevance": "high",
"issue": "Generates inefficient SQL"
},
"config/search.yaml": {
"relevance": "medium",
"setting": "fuzzy_threshold too low"
},
"monitoring/slow_queries.log": {
"relevance": "high",
"query": "Shows problematic JOIN pattern"
},
"benchmarks/search_performance.py": {
"relevance": "medium",
"note": "Only tests with 100 records"
}
},
"ground_truth": {
"root_cause": "Fuzzy search performs full table scan with cross join",
"fix": {
"immediate": "Add trigram index for fuzzy search",
"optimal": "Use dedicated search engine (Elasticsearch)",
"config": "Increase fuzzy threshold to reduce matches"
},
"files_modified": 4,
"performance_impact": "8s -> 150ms"
}
},
{
"bug_id": "mrr_sample_005",
"category": "memory",
"difficulty": "medium",
"language": "javascript",
"repository": {
"size": "medium",
"files": 567,
"loc": 89000
},
"description": "Node.js app memory usage grows indefinitely with image uploads",
"symptoms": [
"Memory usage increases by ~50MB per image upload",
"Memory never released even after processing",
"Server crashes after ~100 uploads"
],
"scattered_context": {
"upload/image_processor.js": {
"relevance": "critical",
"issue": "Holds buffer references in closure"
},
"lib/image_utils.js": {
"relevance": "critical",
"issue": "Creates multiple buffer copies"
},
"middleware/upload.js": {
"relevance": "high",
"issue": "Doesn't clean temp files"
},
"package.json": {
"relevance": "medium",
"lib": "[email protected] has known memory issues"
}
},
"ground_truth": {
"root_cause": "Image buffers retained in event handler closures",
"fix": {
"code": "Explicitly null buffer references after use",
"library": "Update sharp to 0.31.0",
"pattern": "Process images in worker threads"
},
"files_modified": 3
}
},
{
"bug_id": "mrr_sample_006",
"category": "concurrency",
"difficulty": "hard",
"language": "python",
"repository": {
"size": "medium",
"files": 412,
"loc": 78000
},
"description": "Distributed cache inconsistency causing stale data reads",
"symptoms": [
"Users see old data after updates",
"Inconsistent data across app servers",
"Cache invalidation logs show success"
],
"scattered_context": {
"cache/distributed_cache.py": {
"relevance": "critical",
"method": "invalidate",
"issue": "Fire-and-forget pattern"
},
"cache/redis_client.py": {
"relevance": "critical",
"issue": "No invalidation confirmation"
},
"models/base.py": {
"relevance": "high",
"decorator": "@cached",
"issue": "Doesn't wait for invalidation"
},
"config/redis_cluster.yaml": {
"relevance": "medium",
"topology": "3 Redis nodes"
},
"logs/redis/": {
"relevance": "high",
"shows": "Network timeouts during invalidation"
}
},
"ground_truth": {
"root_cause": "Cache invalidation not synchronous across cluster",
"contributing": "Network partitions cause invalidation to fail silently",
"fix": {
"pattern": "Use cache versioning instead of invalidation",
"alternative": "Implement two-phase invalidation with confirmation"
},
"files_modified": 4
}
},
{
"bug_id": "mrr_sample_007",
"category": "syntax",
"difficulty": "easy",
"language": "java",
"repository": {
"size": "small",
"files": 134,
"loc": 23000
},
"description": "Maven build fails with 'illegal character' error",
"symptoms": [
"Build works on Windows, fails on Linux",
"Error: illegal character: '\\ufeff'"
],
"scattered_context": {
"src/main/java/App.java": {
"relevance": "critical",
"line": 1,
"issue": "BOM character at file start"
},
"pom.xml": {
"relevance": "medium",
"encoding": "UTF-8 specified"
}
},
"ground_truth": {
"root_cause": "UTF-8 BOM character in source file",
"fix_type": "remove_bom",
"files_modified": 1
}
},
{
"bug_id": "mrr_sample_008",
"category": "logic",
"difficulty": "medium",
"language": "javascript",
"repository": {
"size": "medium",
"files": 890,
"loc": 156000
},
"description": "Shopping cart total incorrect when mixing taxable and non-taxable items",
"symptoms": [
"Tax applied to non-taxable items",
"Only happens with specific item combinations",
"Total calculation off by tax amount"
],
"scattered_context": {
"cart/calculator.js": {
"relevance": "critical",
"function": "calculateTotal",
"issue": "Tax applied after grouping"
},
"models/product.js": {
"relevance": "high",
"field": "isTaxable",
"type": "boolean"
},
"tax/rules.js": {
"relevance": "high",
"logic": "Complex tax rules by category"
},
"tests/cart_calculation.test.js": {
"relevance": "high",
"missing": "Mixed taxable/non-taxable test"
},
"customer_reports/": {
"relevance": "medium",
"pattern": "All involve food + electronics"
}
},
"ground_truth": {
"root_cause": "Tax calculation groups all items before checking taxable flag",
"fix": "Separate taxable/non-taxable items before calculation",
"edge_case": "Some states tax certain food items",
"files_modified": 2
}
},
{
"bug_id": "mrr_sample_009",
"category": "api",
"difficulty": "hard",
"language": "python",
"repository": {
"size": "large",
"files": 3456,
"loc": 567000
},
"description": "Webhook delivery fails silently after OAuth token refresh",
"symptoms": [
"Webhooks stop being delivered",
"No errors in webhook logs",
"Happens exactly 1 hour after setup"
],
"scattered_context": {
"webhooks/delivery.py": {
"relevance": "critical",
"class": "WebhookDeliverer",
"issue": "Caches auth headers"
},
"auth/oauth_client.py": {
"relevance": "critical",
"method": "refresh_token",
"note": "Token expires in 3600s"
},
"webhooks/retry_logic.py": {
"relevance": "high",
"issue": "Doesn't retry 401 errors"
},
"integrations/base.py": {
"relevance": "high",
"pattern": "Other integrations handle refresh"
},
"monitoring/webhook_metrics.py": {
"relevance": "medium",
"missing": "No auth failure metrics"
},
"docs/webhooks.md": {
"relevance": "low",
"mentions": "Automatic token refresh"
}
},
"ground_truth": {
"root_cause": "Webhook delivery caches OAuth headers, doesn't refresh on 401",
"fix": {
"immediate": "Check token expiry before each delivery",
"better": "Implement token refresh on 401 response",
"best": "Use webhook service with automatic refresh"
},
"files_modified": 3
}
},
{
"bug_id": "mrr_sample_010",
"category": "performance",
"difficulty": "medium",
"language": "java",
"repository": {
"size": "large",
"files": 2345,
"loc": 890000
},
"description": "Report generation causes CPU spike and blocks other requests",
"symptoms": [
"API response time increases 10x during report generation",
"Single report generation uses 100% CPU",
"Other requests queue up"
],
"scattered_context": {
"reports/generator.java": {
"relevance": "critical",
"method": "generateReport",
"issue": "Synchronous, CPU-intensive"
},
"reports/excel_builder.java": {
"relevance": "critical",
"issue": "Builds entire report in memory"
},
"api/controllers/ReportController.java": {
"relevance": "high",
"pattern": "Blocks request thread"
},
"config/thread_pool.xml": {
"relevance": "medium",
"size": "Fixed at 10 threads"
},
"infrastructure/deployment.yaml": {
"relevance": "medium",
"note": "Single instance, no queue"
}
},
"ground_truth": {
"root_cause": "Synchronous report generation blocks request thread",
"contributing": "Report built entirely in memory, no streaming",
"fix": {
"immediate": "Move to async processing with job queue",
"optimization": "Stream report generation to reduce memory",
"architecture": "Separate report service with own resources"
},
"files_modified": 5
}
}
],
"additional_test_cases": "Full dataset contains 490 more test cases across all categories",
"usage_notes": {
"repository_snapshots": "Contact [email protected] for access to test repositories",
"evaluation_harness": "See benchmarks/evaluation/ for testing framework",
"baseline_results": "Chronos achieves 65.3% success rate on full benchmark"
}
}