Multi-line hunk: function body conflict
Tests ability to resolve a function-body merge conflict combining formatting and logic changes. Evaluates semantic code merging.
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 merge feature
Prompt
Resolve the merge conflict in greet.py. The base was a simple greet with print("Hello"). Branch A added f-string formatting with the name parameter. Branch B 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)
```python
def greet(name):
print(f"Hello, {name}")
return True
```
def greet(name):
print(f"Hello, {name}")
return True
def greet(name):
print(f"Hello, {name}")
return True
JSON Schema
Structured Output
(raw) {
"resolved_content": "def greet(name):\n print(f\"Hello, {name}\")\n return True"
}
def greet(name):
print(f"Hello, {name}")
return True
def greet(name):
print(f"Hello, {name}")
return True
JSON Schema
Structured Output
(raw) {
"resolved_content": "def greet(name):\n print(f\"Hello, {name}\")\n return True\n"
}
```
def greet(name):
print(f"Hello, {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\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'
```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'
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'