Spaces:
Sleeping
Sleeping
Download dataset/problem_18/math_utils.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 154 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_18/math_utils.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_18/math_utils.py
-
curl -L -o math_utils.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_18/math_utils.py
154 Bytes
| def clamp(value: int, low: int, high: int) -> int: | |
| if value < low: | |
| return low | |
| if value > high: | |
| return high | |
| return value | |