Multi-line hunk: function body conflict
Tests ability to resolve a function-body conflict combining formatting changes from both branches. Evaluates semantic merging of code logic.
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 'def greet(name): print("Hello") return True' > greet.py - 05
git add greet.py - 06
git commit -m 'Initial greet' - 07
git checkout -b feature - 08
printf 'def greet(name): print(f"Hello, {name}") return True' > greet.py - 09
git add greet.py - 10
git commit -m 'Add name parameter' - 11
git checkout main - 12
printf 'def greet(name): print("Hi there") return False' > greet.py - 13
git add greet.py - 14
git commit -m 'Change greeting' - 15
git cherry-pick $(git rev-parse feature)
Prompt
Resolve the cherry-pick conflict in greet.py. The base was a simple greet with print("Hello"). The incoming commit added f-string formatting with the name parameter. The current branch changed the greeting text to "Hi there" and changed return to False. Resolve the conflict keeping the most useful changes. Provide ONLY the resolved file content.
Expected
def greet(name):
print(f"Hello, {name}")
return True
Campaign Evidence
Loading campaign evidence…
Model Outputs (14)
def greet(name):
print(f"Hello, {name}")
return True
```python
def greet(name):
print(f"Hi there, {name}")
return False
```
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got '```python
def greet(name):
print(f"Hi there, {name}")
return False
```'
def greet(name):
print(f"Hi there, {name}")
return False
JSON Schema
Structured Output
(raw) { "resolved_content": "def greet(name):\n print(f\"Hi there, {name}\")\n return False\n" }
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print(f"Hi there, {name}")
return False
'
```python
def greet(name):
print(f"Hi there, {name}")
return False
```
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got '```python
def greet(name):
print(f"Hi there, {name}")
return False
```'
def greet(name):
print(f"Hi there, {name}")
return False
JSON Schema
Structured Output
(raw) {"resolved_content": "def greet(name):\n print(f\"Hi there, {name}\")\n return False"}
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print(f"Hi there, {name}")
return False'
Here's the resolved file content keeping the most useful changes (f-string formatting with name parameter and the "Hi there" greeting):
```python
def greet(name):
print(f"Hi there, {name}")
return True
```
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'Here's the resolved file content keeping the most useful changes (f-string formatting with name parameter and the "Hi there" greeting):
```python
def greet(name):
print(f"Hi there, {name}")
return True
```'
def greet(name):
print(f"Hi there, {name}")
return True
JSON Schema
Structured Output
(raw) {"resolved_content": "def greet(name):\n print(f\"Hi there, {name}\")\n return True"}
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print(f"Hi there, {name}")
return True'
def greet(name):
print(f"Hi there, {name}")
return False
JSON Schema
Structured Output
(raw) {
"resolved_content": "def greet(name):\n print(f\"Hi there, {name}\")\n return False"
}
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print(f"Hi there, {name}")
return False'
def greet(name):
print(f"Hi there, {name}")
return False
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print(f"Hi there, {name}")
return False'
def greet(name):
print("Hi there")
return False
JSON Schema
Structured Output
(raw) {
"resolved_content": "def greet(name):\n print(\"Hi there\")\n return False"
}
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print("Hi there")
return False'
```python
def greet(name):
print(f"Hi there, {name}")
return True
```
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got '
```python
def greet(name):
print(f"Hi there, {name}")
return True
```
'
def greet(name):
print(f"Hi there, {name}")
return True
JSON Schema
Structured Output
(raw) {"resolved_content": "def greet(name):\n print(f\"Hi there, {name}\")\n return True"}
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print(f"Hi there, {name}")
return True'
```python
def greet(name):
print(f"Hi there, {name}")
return False
```
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got '
```python
def greet(name):
print(f"Hi there, {name}")
return False
```
'
def greet(name):
print(f"Hi there, {name}")
return False
JSON Schema
Structured Output
(raw) {"resolved_content": "def greet(name):\n print(f\"Hi there, {name}\")\n return False"}
Failure: Expected 'def greet(name):
print(f"Hello, {name}")
return True
', got 'def greet(name):
print(f"Hi there, {name}")
return False'