Download parser/build.py from idsedykh/codebleu: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/idsedykh/codebleu/resolve/main/parser/build.py
- Command line
-
hf download hf://spaces/idsedykh/codebleu/parser/build.py
-
curl -L -o build.py https://huggingface.co/spaces/idsedykh/codebleu/resolve/main/parser/build.py
431 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT license. | |
| from tree_sitter import Language, Parser | |
| Language.build_library( | |
| # Store the library in the `build` directory | |
| 'my-languages.so', | |
| # Include one or more languages | |
| [ | |
| 'tree-sitter-go', | |
| 'tree-sitter-javascript', | |
| 'tree-sitter-python', | |
| 'tree-sitter-php', | |
| 'tree-sitter-java', | |
| 'tree-sitter-ruby', | |
| 'tree-sitter-c-sharp', | |
| ] | |
| ) | |