-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathmrr_mini_dataset.json
More file actions
377 lines (377 loc) · 11.9 KB
/
mrr_mini_dataset.json
File metadata and controls
377 lines (377 loc) · 11.9 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
{
"metadata": {
"version": "1.0-sample",
"total_cases": 50,
"description": "Mini sample of Chronos MRR benchmark for quick testing",
"full_benchmark_info": "Complete 5000-case benchmark available Q1 2026"
},
"test_cases": [
{
"bug_id": "mrr_syntax_001",
"category": "syntax",
"difficulty": "easy",
"language": "python",
"repository_size": "small",
"description": "Missing closing parenthesis in data processing function",
"symptoms": ["SyntaxError: unexpected EOF while parsing"],
"scattered_context": {
"data_processor.py": {
"relevance": "critical",
"function": "process_items",
"error_line": 45
},
"test_processor.py": {
"relevance": "high",
"failing_test": "test_process_positive_items"
}
},
"ground_truth": {
"root_cause": "Missing closing parenthesis in list comprehension",
"fix_type": "add_syntax",
"files_modified": 1,
"test_status": "all_pass"
}
},
{
"bug_id": "mrr_logic_042",
"category": "logic",
"difficulty": "medium",
"language": "javascript",
"repository_size": "medium",
"description": "Incorrect boundary check in pagination logic",
"symptoms": ["Last page shows duplicate items", "PageCount off by one"],
"scattered_context": {
"pagination.js": {
"relevance": "critical",
"function": "calculatePages",
"issue": "Wrong inequality operator"
},
"api/routes.js": {
"relevance": "high",
"usage": "Calls pagination.calculatePages"
},
"tests/pagination.test.js": {
"relevance": "high",
"failing_tests": ["test_last_page", "test_boundary_conditions"]
},
"commits/abc123": {
"relevance": "medium",
"date": "2 months ago",
"message": "Refactored pagination logic"
}
},
"ground_truth": {
"root_cause": "Off-by-one error: should use <= instead of <",
"fix_location": "pagination.js:calculatePages:line87",
"fix_type": "operator_change",
"files_modified": 1
}
},
{
"bug_id": "mrr_null_087",
"category": "memory",
"difficulty": "medium",
"language": "java",
"repository_size": "large",
"description": "NullPointerException in user session management",
"symptoms": [
"NPE when user logs out and immediately logs back in",
"Occurs only in production environment"
],
"scattered_context": {
"auth/SessionManager.java": {
"relevance": "critical",
"method": "invalidateSession",
"issue": "Doesn't clear cache properly"
},
"cache/RedisCache.java": {
"relevance": "critical",
"method": "delete",
"issue": "Returns null on cache miss"
},
"controllers/AuthController.java": {
"relevance": "high",
"usage": "Calls SessionManager methods"
},
"config/prod.properties": {
"relevance": "medium",
"difference": "Cache TTL different from dev"
},
"logs/production.log": {
"relevance": "high",
"stacktrace": "Shows NPE origin"
}
},
"ground_truth": {
"root_cause": "Session invalidation doesn't wait for cache deletion confirmation",
"fix_type": "add_null_check",
"files_modified": 2,
"requires_sync": true
}
},
{
"bug_id": "mrr_race_156",
"category": "concurrency",
"difficulty": "hard",
"language": "python",
"repository_size": "medium",
"description": "Race condition in distributed task queue causing duplicate processing",
"symptoms": [
"Same task processed multiple times",
"Happens under high load",
"Database shows duplicate entries"
],
"scattered_context": {
"workers/task_processor.py": {
"relevance": "critical",
"class": "TaskProcessor",
"method": "claim_task",
"issue": "Not atomic"
},
"db/models.py": {
"relevance": "critical",
"model": "Task",
"missing": "Unique constraint on processing"
},
"queue/redis_queue.py": {
"relevance": "high",
"method": "dequeue",
"issue": "No distributed lock"
},
"tests/load_test.py": {
"relevance": "medium",
"note": "Doesn't test concurrent workers"
},
"monitoring/metrics.py": {
"relevance": "medium",
"shows": "Duplicate processing spike times"
}
},
"ground_truth": {
"root_cause": "Task claiming not atomic across distributed workers",
"fix_type": "add_distributed_lock",
"solution": "Implement Redis-based distributed lock with TTL",
"files_modified": 3
}
},
{
"bug_id": "mrr_api_203",
"category": "api",
"difficulty": "medium",
"language": "javascript",
"repository_size": "small",
"description": "Breaking change after upgrading payment SDK from v2 to v3",
"symptoms": [
"TypeError: stripe.charges.create is not a function",
"All payment processing fails"
],
"scattered_context": {
"payment/processor.js": {
"relevance": "critical",
"usage": "Old v2 API patterns"
},
"package.json": {
"relevance": "critical",
"change": "stripe: ^2.0.0 -> ^3.0.0"
},
"migrations/stripe_v3.md": {
"relevance": "high",
"location": "docs/migrations/",
"unread": true
},
"tests/payment.test.js": {
"relevance": "high",
"status": "All failing"
},
"config/stripe.js": {
"relevance": "medium",
"note": "Config format also changed"
}
},
"ground_truth": {
"root_cause": "Stripe v3 changed API structure - charges is now paymentIntents",
"fix_type": "api_migration",
"migration_guide": "docs/migrations/stripe_v3.md",
"files_modified": 4
}
},
{
"bug_id": "mrr_perf_089",
"category": "performance",
"difficulty": "hard",
"language": "python",
"repository_size": "large",
"description": "Dashboard load time increased from 2s to 45s after new feature",
"symptoms": [
"Dashboard timeout errors",
"Database CPU at 100%",
"Started after commit def456"
],
"scattered_context": {
"dashboard/views.py": {
"relevance": "critical",
"function": "get_user_analytics",
"new_feature": "Real-time activity feed"
},
"models/activity.py": {
"relevance": "critical",
"issue": "Missing database index"
},
"api/serializers.py": {
"relevance": "high",
"issue": "N+1 query in activity serializer"
},
"requirements.txt": {
"relevance": "medium",
"note": "ORM version upgrade might help"
},
"monitoring/slow_query.log": {
"relevance": "high",
"shows": "Repeated full table scans"
}
},
"ground_truth": {
"root_cause": "N+1 query problem with missing index on activity.user_id",
"fix_type": "add_index_and_prefetch",
"performance_gain": "45s -> 1.8s",
"files_modified": 3
}
},
{
"bug_id": "mrr_logic_108",
"category": "logic",
"difficulty": "easy",
"language": "java",
"repository_size": "small",
"description": "Discount calculation applies percentage as absolute value",
"symptoms": [
"50% discount reduces price by $50 instead of 50%",
"Customer complaints about overcharging"
],
"scattered_context": {
"pricing/DiscountCalculator.java": {
"relevance": "critical",
"method": "applyDiscount",
"line": 67
},
"tests/DiscountTest.java": {
"relevance": "high",
"note": "Test uses integer prices, bug hidden"
}
},
"ground_truth": {
"root_cause": "Missing division by 100 for percentage calculation",
"fix_type": "arithmetic_fix",
"fix": "price * (1 - discount/100.0)",
"files_modified": 1
}
},
{
"bug_id": "mrr_memory_234",
"category": "memory",
"difficulty": "hard",
"language": "javascript",
"repository_size": "medium",
"description": "Memory leak in WebSocket event handlers causing server crashes",
"symptoms": [
"Server memory usage grows continuously",
"Crashes after ~1000 connections",
"Heap snapshots show detached DOM references"
],
"scattered_context": {
"websocket/client.js": {
"relevance": "critical",
"issue": "Event listeners not removed on disconnect"
},
"websocket/server.js": {
"relevance": "critical",
"issue": "Stores all client references"
},
"utils/events.js": {
"relevance": "high",
"pattern": "Similar leak pattern"
},
"monitoring/heap_dumps/": {
"relevance": "high",
"files": ["dump1.heapsnapshot", "dump2.heapsnapshot"]
},
"nginx/logs/error.log": {
"relevance": "medium",
"shows": "Worker process OOM kills"
}
},
"ground_truth": {
"root_cause": "WebSocket cleanup doesn't remove all event listeners",
"fix_type": "cleanup_handlers",
"solution": "Implement proper cleanup in disconnect handler",
"files_modified": 2
}
},
{
"bug_id": "mrr_syntax_045",
"category": "syntax",
"difficulty": "easy",
"language": "python",
"repository_size": "small",
"description": "IndentationError in config parser after team member used tabs",
"symptoms": ["IndentationError: unexpected indent", "CI/CD pipeline fails"],
"scattered_context": {
"config/parser.py": {
"relevance": "critical",
"line_range": [45, 52],
"issue": "Mixed tabs and spaces"
},
".editorconfig": {
"relevance": "medium",
"missing": true
}
},
"ground_truth": {
"root_cause": "Mixed indentation (tabs vs spaces) in parser.py",
"fix_type": "fix_indentation",
"files_modified": 1
}
},
{
"bug_id": "mrr_concurrency_312",
"category": "concurrency",
"difficulty": "medium",
"language": "java",
"repository_size": "large",
"description": "Deadlock in payment processing under high load",
"symptoms": [
"Thread dump shows circular wait",
"Happens when >50 concurrent payments",
"System hangs, requires restart"
],
"scattered_context": {
"payment/PaymentService.java": {
"relevance": "critical",
"methods": ["processPayment", "updateInventory"],
"issue": "Lock ordering differs"
},
"inventory/InventoryService.java": {
"relevance": "critical",
"methods": ["reserve", "release"],
"issue": "Opposite lock order"
},
"docs/architecture.md": {
"relevance": "medium",
"section": "Locking Strategy",
"outdated": true
},
"monitoring/thread_dumps/": {
"relevance": "high",
"files": ["deadlock1.txt", "deadlock2.txt"]
}
},
"ground_truth": {
"root_cause": "Inconsistent lock ordering between payment and inventory",
"fix_type": "fix_lock_ordering",
"solution": "Establish global lock ordering protocol",
"files_modified": 2
}
}
],
"additional_cases_reference": "See mrr_sample_dataset.json for 500 test cases"
}