AgentArena / tasks /refactor_extract_function.yaml
smlflg's picture
Initial public upload from Projekte/AgentArena
3b0d6b3 verified
Raw History Blame Contribute Delete
613 Bytes
slug: refactor-extract-function
title: "Refactor monolithic process_data() into three focused functions"
description: |
processor.py contains a single 60+ line process_data() function that validates,
transforms, and formats data all in one place. Extract three top-level functions:
validate_data(data), transform_data(data), format_output(data).
process_data() must delegate to all three and continue to work correctly.
repo:
url: file:///tmp/arena-tasks/arena-task-extract
ref: main
success:
command: "python -m pytest tests/ -v"
limits:
time_seconds: 300
max_tokens: 200000
difficulty: medium