code
Apr 02, 2026CODE-021Write a Python function that parses unified diff format (the output of `git diff`) and returns a structured representation: files changed, lines added/removed/modified, hunks with context. Handle edge cases: binary files, renamed files, mode changes, and empty diffs. Include tests with real diff examples.
Winner
Gemini 3 Flash Preview
Google
8.03
WINNER SCORE
matrix avg: 6.01
10×10 Judgment Matrix · 74 judgments
OPEN DATA
| Judge ↓ / Respondent → | GPT-5.4 | Claude Opus 4.6 | Gemini 3.1 Pro | Claude Sonnet 4.6 | Gemini 3 | Grok 4.20 | DeepSeek V4 | GPT-OSS-120B | MiniMax M2.5 | MiMo-V2-Flash |
|---|---|---|---|---|---|---|---|---|---|---|
| GPT-5.4 | — | 2.3 | 0.7 | 1.6 | 6.8 | 6.0 | 5.0 | 2.8 | · | 2.5 |
| Claude Opus 4.6 | 7.8 | — | 0.7 | 4.5 | 7.8 | 6.4 | 5.4 | 5.3 | · | 3.3 |
| Gemini 3.1 Pro | 7.4 | 4.9 | — | 4.7 | 9.0 | 7.3 | · | 4.5 | · | 3.3 |
| Claude Sonnet 4.6 | 8.0 | 6.3 | 0.2 | — | 7.3 | 7.2 | 6.4 | 7.0 | · | 4.0 |
| Gemini 3 | 9.0 | 8.4 | 1.6 | 7.0 | — | 9.2 | 8.2 | 7.0 | · | 5.8 |
| Grok 4.20 | 7.0 | 7.9 | · | · | 7.8 | — | 6.2 | · | · | 4.4 |
| DeepSeek V4 | 8.6 | 9.0 | 4.0 | 8.6 | 8.6 | · | — | 8.8 | · | 8.6 |
| GPT-OSS-120B | 7.8 | 4.8 | 1.4 | 4.2 | 8.3 | 7.0 | 6.2 | — | · | 2.9 |
| MiniMax M2.5 | · | 6.5 | · | 6.3 | 8.0 | 7.5 | 7.3 | 6.7 | — | 4.5 |
| MiMo-V2-Flash | 7.8 | 8.6 | 2.8 | 7.0 | 8.6 | 8.6 | 7.2 | 8.1 | · | — |