Spaces:
Configuration error
Configuration error
Download server/templates/level_3/processor.py from anonajay/lint-coding-agent: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/anonajay/lint-coding-agent/resolve/main/server/templates/level_3/processor.py
- Command line
-
hf download hf://spaces/anonajay/lint-coding-agent/server/templates/level_3/processor.py
-
curl -L -o processor.py https://huggingface.co/spaces/anonajay/lint-coding-agent/resolve/main/server/templates/level_3/processor.py
309 Bytes
| # BROKEN: The default list [] is created once at definition time. | |
| def add_to_box(item, box=[]): | |
| box.append(item) | |
| return box | |
| def clear_and_process(data): | |
| # This should return a fresh list every time, | |
| # but currently it accumulates data from previous calls. | |
| return add_to_box(data) |