Test fixture
Bug fixes, edge conditions, and minimal patch accuracy.
The model receives the prompt (and optional system message). The run uses scorer contains_all with the JSON configuration below. Pass/fail and partial credit are determined entirely by that scorer against the model output; no human grading.
The following Python function is supposed to return only even numbers from a list, but it contains a bug. Explain the bug briefly and provide the corrected code only.
```python
def get_even_numbers(nums):
result = []
for n in nums:
if n % 2 == 1:
result.append(n)
return result
```
{
"expected_contains": [
"n % 2 == 0",
"def get_even_numbers(nums):",
"return result"
]
}temperature
0
max_tokens
220
timeout (s)
120
type
scored
file
fix_even_numbers.json