code
Jan 13, 2026CODE-001This Python async function has 3 bugs: a race condition, an unhandled exception, and a resource leak. Find all three and explain why each is problematic. ```python import asyncio import aiohttp class DataFetcher: def __init__(self): self.cache = {} self.session = aiohttp.ClientSession() async def fetch_data(self, urls): results = [] for url in urls: if url in self.cache: results.append(self.cache[url]) else: async with self.session.get(url) as response: data = await response.json() self.cache[url] = data results.append(data) return results async def fetch_parallel(self, urls): tasks = [self.fetch_single(url) for url in urls] return await asyncio.gather(*tasks) async def fetch_single(self, url): if url in self.cache: return self.cache[url] async with self.session.get(url) as response: data = await response.json() self.cache[url] = data return data ```
Winner
GPT-5.2-Codex
OpenAI
9.79
WINNER SCORE
matrix avg: 9.00
10×10 Judgment Matrix · 100 judgments
OPEN DATA
| Judge ↓ / Respondent → | GLM-4-7 | Gemini 3 | Grok Code Fast | Claude Opus 4.5 | Claude Sonnet 4.5 | Gemini 3 | MiniMax M2 | DeepSeek V3.2 | GPT-5.2-Codex | Grok 3 (Direct) |
|---|---|---|---|---|---|---|---|---|---|---|
| GLM-4-7 | — | 9.2 | 8.7 | 10.0 | 9.6 | 8.4 | 9.8 | 10.0 | 9.7 | 0.0 |
| Gemini 3 | 0.0 | — | 9.8 | 9.8 | 10.0 | 9.6 | 9.8 | 9.8 | 9.8 | 9.8 |
| Grok Code Fast | 2.0 | 9.8 | — | 9.6 | 10.0 | 9.8 | 10.0 | 10.0 | 10.0 | 10.0 |
| Claude Opus 4.5 | 0.7 | 9.8 | 9.8 | — | 9.8 | 8.8 | 9.6 | 9.6 | 9.6 | 9.8 |
| Claude Sonnet 4.5 | 2.6 | 9.8 | 9.3 | 9.8 | — | 9.6 | 9.8 | 9.6 | 9.8 | 10.0 |
| Gemini 3 | 0.0 | 0.0 | 10.0 | 0.0 | 0.0 | — | 0.0 | 0.0 | 10.0 | 0.0 |
| MiniMax M2 | 9.0 | 9.8 | 8.6 | 10.0 | 10.0 | 6.3 | — | 9.8 | 9.8 | 10.0 |
| DeepSeek V3.2 | 8.6 | 10.0 | 9.2 | 9.6 | 9.3 | 8.6 | 9.6 | — | 9.8 | 9.6 |
| GPT-5.2-Codex | 0.0 | 8.8 | 8.7 | 8.8 | 8.8 | 7.3 | 8.8 | 8.0 | — | 8.8 |
| Grok 3 (Direct) | 6.5 | 8.8 | 9.2 | 9.6 | 9.6 | 8.8 | 9.7 | 8.8 | 9.7 | — |