Download 16/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/16/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/16/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/16/solution/_reference.py
194 Bytes
| import re | |
| def text_lowercase_underscore(text): | |
| patterns = '^[a-z]+_[a-z]+$' | |
| if re.search(patterns, text): | |
| return True | |
| else: | |
| return False |