Context lines with git grep -C
Tests ability to show context lines with git grep -C. Evaluates understanding of surrounding-line output.
Baseline Repository
These commands set up the repo before the model sees the prompt. They define the starting file structure, staged changes, and Git history.
- 01
git init - 02
git config user.email 'test@test.com' - 03
git config user.name 'Test User' - 04
printf 'import sys import os CONFIG = { "host": "localhost", "port": 8080, "debug": True, "workers": 4, } def start_server(): host = CONFIG["host"] port = CONFIG["port"] print(f"Starting on {host}:{port}") ' > server.py - 05
git add . - 06
git commit -m 'Add server config' - 07
echo 'git grep -C 2 port' > .grep_command - 08
git add .grep_command - 09
git commit -m 'Add grep sentinel'
Prompt
Here is the output of a git grep -C 2 command showing 2 lines of context around matches for 'port'. How many total lines (including context) appear in the output? Output ONLY the number, nothing else.
Expected
13
Campaign Evidence
Loading campaign evidence…
Model Outputs (14)
13
13
JSON Schema
Structured Output
(raw) {"count": 13}
13
13
JSON Schema
Structured Output
(raw) { "count" : 13 }
13
13
JSON Schema
Structured Output
(raw) {"count": 13}
12
Failure: Expected numeric answer '13', got '12'
6
JSON Schema
Structured Output
(raw) {
"count": 6
}
Failure: Expected numeric answer '13', got '6'
12
JSON Schema
Structured Output
(raw) {"count": 12}
Failure: Expected numeric answer '13', got '12'
5
Failure: Expected numeric answer '13', got '5'
15
JSON Schema
Structured Output
(raw) {
"count": 15
}
Failure: Expected numeric answer '13', got '15'
30
Failure: Expected numeric answer '13', got '30'
15
JSON Schema
Structured Output
(raw) {"count":15}
Failure: Expected numeric answer '13', got '15'