← Evaluations/EVAL-20260402-125437
code
Mar 17, 2026CODE-010

Create TypeScript types that enforce these compile-time constraints: 1. A `Route` type where the path parameters in the URL template must match the params object: - `createRoute('/users/:userId/posts/:postId', { userId: '123', postId: '456' })` ✓ - `createRoute('/users/:userId', { wrongParam: '123' })` ✗ (compile error) 2. A `Builder` pattern type where methods can only be called in a specific order: - `builder.setName('x').setAge(25).build()` ✓ - `builder.setAge(25).setName('x').build()` ✗ (compile error) - `builder.setName('x').build()` ✗ (compile error - age not set) Show the type definitions and example usage.

Winner
Claude Sonnet 4.6
openrouter
9.14
WINNER SCORE
matrix avg: 7.64
results.json report.mdFull dataset (CSV) →
10×10 Judgment Matrix · 75 judgments
OPEN DATA
Judge ↓ / Respondent →Gemini 3GPT-5.4Claude Opus 4.6Gemini 3.1 ProClaude Sonnet 4.6Grok 4.20DeepSeek V4GPT-OSS-120BMiniMax M2.5MiMo-V2-Flash
Gemini 39.810.01.410.09.69.88.8·9.8
GPT-5.48.38.20.58.45.87.03.3·7.8
Claude Opus 4.68.88.6·9.26.06.56.1·8.0
Gemini 3.1 Pro8.39.89.69.67.86.64.7··
Claude Sonnet 4.68.88.89.01.07.07.87.3·8.8
Grok 4.208.68.6··8.87.48.6·8.6
DeepSeek V49.49.1·5.09.49.49.1·9.6
GPT-OSS-120B8.88.88.82.08.87.37.3·7.3
MiniMax M2.58.48.48.8·9.07.48.45.98.1
MiMo-V2-Flash9.08.69.02.99.08.68.68.6·