Download code_repair/codecontests/src/public_context.py from Gen-Verse/RSI-Anything: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/datasets/Gen-Verse/RSI-Anything/resolve/main/code_repair/codecontests/src/public_context.py
- Command line
-
hf download hf://datasets/Gen-Verse/RSI-Anything/code_repair/codecontests/src/public_context.py
-
curl -L -o public_context.py https://huggingface.co/datasets/Gen-Verse/RSI-Anything/resolve/main/code_repair/codecontests/src/public_context.py
260 Bytes
| import json | |
| def feedback_text(feedback): | |
| return json.dumps([{'test_id': r['test_id'], 'status': r['status'], 'actual': r['actual'][:1024], 'stderr': r['stderr'][:2048], 'seconds': round(r['seconds'], 4)} for r in feedback['results']], ensure_ascii=False) | |