Download venv/lib/python3.12/site-packages/joblib/test/testutils.py from anonymous-CAP/cap-hatespeech: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/anonymous-CAP/cap-hatespeech/resolve/main/venv/lib/python3.12/site-packages/joblib/test/testutils.py
- Command line
-
hf download hf://anonymous-CAP/cap-hatespeech/venv/lib/python3.12/site-packages/joblib/test/testutils.py
-
curl -L -o testutils.py https://huggingface.co/anonymous-CAP/cap-hatespeech/resolve/main/venv/lib/python3.12/site-packages/joblib/test/testutils.py
252 Bytes
| def return_slice_of_data(arr, start_idx, end_idx): | |
| return arr[start_idx:end_idx] | |
| def print_filename_and_raise(arr): | |
| from joblib._memmapping_reducer import _get_backing_memmap | |
| print(_get_backing_memmap(arr).filename) | |
| raise ValueError | |