Download tasks/codeql_python_benchmark51_v2/pyvul-c52f0447bb0aa65cf9a4/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-c52f0447bb0aa65cf9a4/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_python_benchmark51_v2/pyvul-c52f0447bb0aa65cf9a4/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-c52f0447bb0aa65cf9a4/patch.diff
636 Bytes
| diff --git a/src/transformers/utils/hub.py b/src/transformers/utils/hub.py | |
| index 58aac59d24..335547f2b8 100644 | |
| --- a/src/transformers/utils/hub.py | |
| +++ b/src/transformers/utils/hub.py | |
| def download_url(url, proxies=None): | |
| " that this is not compatible with the caching system (your file will be downloaded at each execution) or" | |
| " multiple processes (each process will download the file in a different temporary file)." | |
| ) | |
| - tmp_file = tempfile.mktemp() | |
| + tmp_file = tempfile.mkstemp()[1] | |
| with open(tmp_file, "wb") as f: | |
| http_get(url, f, proxies=proxies) | |
| return tmp_file | |