Download masteries/coding/data/check_langs.py from Kiritox07/pace: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/Kiritox07/pace/resolve/main/masteries/coding/data/check_langs.py
- Command line
-
hf download hf://spaces/Kiritox07/pace/masteries/coding/data/check_langs.py
-
curl -L -o check_langs.py https://huggingface.co/spaces/Kiritox07/pace/resolve/main/masteries/coding/data/check_langs.py
507 Bytes
| import datasets | |
| def main(): | |
| ds = datasets.load_dataset("ByteDance-Seed/Code-Contests-Plus", split="train", streaming=True) | |
| langs = set() | |
| for i, item in enumerate(ds): | |
| for sub in item.get('correct_submissions', []): | |
| langs.add(sub.get('language', '')) | |
| for sub in item.get('incorrect_submissions', []): | |
| langs.add(sub.get('language', '')) | |
| if i >= 100: | |
| break | |
| print("Available languages:", langs) | |
| if __name__ == "__main__": | |
| main() | |