Download 140/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 193 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/140/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/140/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/140/solution/_reference.py
193 Bytes
| def extract_singly(test_list): | |
| res = [] | |
| temp = set() | |
| for inner in test_list: | |
| for ele in inner: | |
| if not ele in temp: | |
| temp.add(ele) | |
| res.append(ele) | |
| return (res) |