Download tasks/average-float/buggy.py from xdotli/cybergym-patch-bug: direct link, hf CLI and curl.
- Browser
- Download file 83 Bytes
-
https://huggingface.co/datasets/xdotli/cybergym-patch-bug/resolve/main/tasks/average-float/buggy.py
- Command line
-
hf download hf://datasets/xdotli/cybergym-patch-bug/tasks/average-float/buggy.py
-
curl -L -o buggy.py https://huggingface.co/datasets/xdotli/cybergym-patch-bug/resolve/main/tasks/average-float/buggy.py
83 Bytes
| def average(xs): | |
| s = 0 | |
| for x in xs: | |
| s += x | |
| return s // len(xs) | |