-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31b5863
commit 3876ce2
Showing
5 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "codetext" | ||
version = "0.0.8" | ||
version = "0.0.9" | ||
authors = [ | ||
{ name="Dung Manh Nguyen", email="[email protected]" }, | ||
] | ||
|
@@ -21,7 +21,8 @@ dependencies = [ | |
"Levenshtein>=0.20", | ||
"langdetect>=1.0.0", | ||
"bs4>=0.0.1", | ||
"tabulate>=0.9.0" | ||
"tabulate>=0.9.0", | ||
"tree_sitter_languages>=1.10.0" | ||
] | ||
|
||
[project.urls] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ tabulate | |
Levenshtein | ||
langdetect | ||
bs4 | ||
tree-sitter-languages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
from ..src.codetext.utils import build_language | ||
|
||
from tree_sitter_languages import get_language, get_parser | ||
|
||
if __name__ == '__main__': | ||
lang_list = ['python', 'cpp', 'java', 'c-sharp', 'ruby', 'rust', 'javascript', 'php', 'go'] | ||
|
||
for lang in lang_list: | ||
build_language(lang) | ||
# build_language(lang) | ||
try: | ||
get_parser(get_language(lang)) | ||
except: | ||
build_language(lang) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters