harbor run -t openthoughts/tasktrove-openswe-tasks-patched-v5-oracle-success-openswe_oss-25537
harbor download openthoughts/tasktrove-openswe-tasks-patched-v5-oracle-success-openswe_oss-25537
The repository has not been cloned yet. Run the following command first to clone the repo, check out the target commit, and install dependencies:
bash /setup_files/setup.sh
The code will then be available at /testbed.
/testbed
You are working on the repository python-rope/rope (instance: python-rope__rope-389).
python-rope/rope
python-rope__rope-389
The code is located in /testbed.
##375 Implement extract refactoring inside async def
async def
async def my_func(my_list): for x in my_list: var = x + 1 return var
Expected
async def my_func(my_list): for x in my_list: var = new_func(x) return var def new_func(x): var = x + 1 return var
Actual:
[Pymode]: error: Unhandled exception in Pymode: 'For' object has no attribute 'region'