Refactor multiple files
Tests ability to generate a commit message for a multi-file refactor. Evaluates describing structural reorganization across modules.
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
echo 'old code' > helpers.py - 05
echo 'old code' > utils.py - 06
git add helpers.py utils.py - 07
git commit -m 'Initial commit' - 08
rm helpers.py utils.py - 09
mkdir -p core - 10
echo 'new code' > core/helpers.py - 11
echo 'new code' > core/utils.py - 12
git add -A
Prompt
Generate a concise commit message (max 50 characters) describing the changes in this diff. Focus on the action taken (e.g., 'Add', 'Fix', 'Update', 'Refactor').
Expected
Refactor helpers into core module
Campaign Evidence
Loading campaign evidence…
Model Outputs (14)
Refactor: Move helpers and utils to core directory
JSON Schema
Structured Output
(raw) {"commit_message": "Refactor: Move helpers and utils to core directory"}
Refactor: move helpers and utils to core module
Move helpers.py and utils.py to core/
JSON Schema
Structured Output
(raw) {"commit_message": "Move helpers.py and utils.py to core/"}
Refactor and move helpers and utils to core
JSON Schema
Structured Output
(raw) {"commit_message": "Refactor and move helpers and utils to core"}
Move helpers & utils to core/
Move helpers and utils to core
JSON Schema
Structured Output
(raw) {"commit_message": "Move helpers and utils to core"}
Add core helpers and utils; drop old helper files
Move helpers.py and utils.py to core/
"Move helpers and utils to core module"
Add core helpers/utils, remove old files
Add core helpers, delete legacy helpers
Add core/helpers.py and core/utils.py, remove old helpers.py and utils.py
JSON Schema
Structured Output
(raw) {
"commit_message": "Add core/helpers.py and core/utils.py, remove old helpers.py and utils.py"
}
Add core/helpers.py core/utils.py; delete helpers
JSON Schema
Structured Output
(raw) { "commit_message": "Add core/helpers.py core/utils.py; delete helpers" }
Invalid JSON. Output: Move utils and helpers to core/
JSON Schema
Structured Output
Structured Output Error
Failed to parse structured JSON response: Expecting value: line 1 column 1 (char 0)
Failure: Failed to parse structured JSON response: Expecting value: line 1 column 1 (char 0)