Download data2/step22/build.py from SciCode/dataset-builder: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/SciCode/dataset-builder/resolve/main/data2/step22/build.py
- Command line
-
hf download hf://SciCode/dataset-builder/data2/step22/build.py
-
curl -L -o build.py https://huggingface.co/SciCode/dataset-builder/resolve/main/data2/step22/build.py
437 Bytes
| import os | |
| from tree_sitter import Language | |
| # os.environ["CFLAGS"] = "-fPIC" | |
| # os.environ["LDFLAGS"] = "-lstdc++" | |
| Language.build_library( | |
| "build/my-languages.so", | |
| [ | |
| "grammars/tree-sitter-python", | |
| "grammars/tree-sitter-c", | |
| "grammars/tree-sitter-cpp", | |
| "grammars/tree-sitter-java", | |
| "grammars/tree-sitter-go", | |
| "grammars/tree-sitter-rust", | |
| "grammars/tree-sitter-julia", | |
| ] | |
| ) |