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
Grok 4.20
openrouter
9.44
WINNER SCORE
matrix avg: 8.51
10×10 Judgment Matrix · 86 judgments
OPEN DATA
| Judge ↓ / Respondent → | GPT-5.4 | Claude Opus 4.6 | Gemini 3.1 Pro | Claude Sonnet 4.6 | Grok 4.20 | DeepSeek V4 | GPT-OSS-120B | Gemini 3 | MiniMax M2.5 | MiMo-V2-Flash |
|---|---|---|---|---|---|---|---|---|---|---|
| GPT-5.4 | — | 8.8 | 8.3 | 9.0 | 9.0 | 7.8 | 0.3 | 8.6 | 6.7 | 8.3 |
| Claude Opus 4.6 | 9.2 | — | 8.2 | 9.6 | 8.9 | 8.1 | 0.7 | 9.2 | 7.5 | 9.2 |
| Gemini 3.1 Pro | 9.7 | 10.0 | — | 10.0 | 10.0 | 8.0 | · | 10.0 | 6.3 | 8.5 |
| Claude Sonnet 4.6 | 9.0 | 9.3 | 8.2 | — | 9.0 | 8.0 | · | 8.8 | 8.3 | 8.8 |
| Grok 4.20 | 8.6 | 8.3 | 8.6 | 8.0 | — | 8.6 | 4.2 | 9.0 | 8.6 | 6.8 |
| DeepSeek V4 | 9.4 | 8.8 | 9.4 | 10.0 | 9.6 | — | 7.6 | 9.6 | 9.6 | 10.0 |
| GPT-OSS-120B | 8.4 | 9.3 | 8.1 | 8.8 | 9.3 | 8.8 | — | 8.6 | 7.3 | 8.8 |
| Gemini 3 | 9.8 | 10.0 | 9.6 | 10.0 | 9.8 | 9.8 | · | — | 8.6 | 10.0 |
| MiniMax M2.5 | 8.8 | 9.4 | 8.4 | 9.0 | 9.6 | 10.0 | · | 9.8 | — | 10.0 |
| MiMo-V2-Flash | 9.2 | 10.0 | 10.0 | 9.6 | 9.8 | 9.0 | 8.8 | 9.8 | 8.6 | — |