# humanevalfix / python-19 - taskset: [humanevalfix](https://harnessreport.com/tasks/humanevalfix.md) - difficulty: medium - category: debugging - language: - runnable from the site: no - agent timeout: 600s ## Results by harness _none yet_ ## Instruction ``` Please fix the function in Python__19.py such that all test cases pass. Environment has been set up for you to start working. You may assume all necessary tools are installed. # Problem Statement from typing import List def sort_numbers(numbers: str) -> str: value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join([x for x in numbers.split(' ') if x]) def check(sort_numbers): assert sort_numbers('') == '' assert sort_numbers('three') == 'three' assert sort_numbers('three five nine') == 'three five nine' assert sort_numbers('five zero four seven nine eight') == 'zero four five seven eight nine' assert sort_numbers('six five four three two one zero') == 'zero one two three four five six' check(sort_numbers) IMPORTANT: You should ONLY interact with the environment provided to you AND NEVER ASK FOR HUMAN HELP. You should NOT modify any existing test case files. If needed, you can add new test cases in a NEW file to reproduce the issue. You SHOULD INCLUDE PROPER INDENTATION in your edit commands. When you think you have fixed the issue through code changes, please finish the interaction using the "finish" tool. ``` --- Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp