MCPcopy Create free account

hub / github.com/FSoft-AI4Code/CodeText-parser / functions

Functions249 in github.com/FSoft-AI4Code/CodeText-parser

Methodget_class_metadata
(class_node, blob=None)
src/codetext/parser/javascript_parser.py:108
Methodget_class_metadata
Class metadata contains: - identifier (str): class's name - parameters (List[str]): inheritance class
src/codetext/parser/cpp_parser.py:151
Methodget_class_metadata
(class_node, blob: str=None)
src/codetext/parser/php_parser.py:99
Methodget_class_metadata
(class_node, blob=None)
src/codetext/parser/ruby_parser.py:112
Methodget_comment_node
(node)
src/codetext/parser/language_parser.py:227
Methodget_comment_node
Return all comment node inside a parent node Args: node (tree_sitter.Node) Return: List: list of comm
src/codetext/parser/c_sharp_parser.py:85
Methodget_comment_node
Return all comment node inside a parent node Args: node (tree_sitter.Node) Return: List: list of comm
src/codetext/parser/java_parser.py:57
Methodget_comment_node
(node)
src/codetext/parser/python_parser.py:56
Methodget_comment_node
(function_node)
src/codetext/parser/rust_parser.py:148
Methodget_comment_node
(function_node)
src/codetext/parser/javascript_parser.py:45
Methodget_comment_node
Return all comment node inside a parent node Args: node (tree_sitter.Node) Return: List: list of comm
src/codetext/parser/cpp_parser.py:91
Methodget_comment_node
(function_node)
src/codetext/parser/php_parser.py:46
Methodget_comment_node
(function_node)
src/codetext/parser/ruby_parser.py:134
Methodget_docstring
Get docstring description for node Args: node (tree_sitter.Node) blob (str): original source code wh
src/codetext/parser/c_sharp_parser.py:15
Methodget_docstring
Get docstring description for node Args: node (tree_sitter.Node) blob (str): original source code wh
src/codetext/parser/java_parser.py:37
Methodget_docstring
(node, blob:str=None)
src/codetext/parser/python_parser.py:16
Methodget_docstring
(node, blob=None)
src/codetext/parser/rust_parser.py:55
Methodget_docstring
(node, blob=None)
src/codetext/parser/javascript_parser.py:34
Methodget_docstring
Get docstring description for node Args: node (tree_sitter.Node) blob (str): original source code wh
src/codetext/parser/cpp_parser.py:16
Methodget_docstring
(node, blob: str=None)
src/codetext/parser/php_parser.py:23
Methodget_docstring
(node, blob=None)
src/codetext/parser/ruby_parser.py:65
Methodget_docstring_node
(node)
src/codetext/parser/language_parser.py:222
Methodget_function_list
(node)
src/codetext/parser/language_parser.py:212
Methodget_function_list
(node)
src/codetext/parser/c_sharp_parser.py:97
Methodget_function_list
(node)
src/codetext/parser/java_parser.py:74
Methodget_function_list
(node)
src/codetext/parser/python_parser.py:28
Methodget_function_list
(node)
src/codetext/parser/rust_parser.py:20
Methodget_function_list
(node)
src/codetext/parser/javascript_parser.py:50
Methodget_function_list
(node)
src/codetext/parser/cpp_parser.py:81
Methodget_function_list
(node)
src/codetext/parser/php_parser.py:58
Methodget_function_list
(node)
src/codetext/parser/ruby_parser.py:22
Methodget_function_metadata
(function_node, blob=None)
src/codetext/parser/language_parser.py:237
Methodget_function_metadata
Function metadata contains: - identifier (str): function name - parameters (Dict[str, str]): parameter's name and the
src/codetext/parser/c_sharp_parser.py:108
Methodget_function_metadata
(function_node, blob: str = None)
src/codetext/parser/java_parser.py:107
Methodget_function_metadata
(function_node, blob: str=None)
src/codetext/parser/python_parser.py:64
Methodget_function_metadata
(function_node, blob=None)
src/codetext/parser/rust_parser.py:69
Methodget_function_metadata
(function_node, blob: str=None)
src/codetext/parser/javascript_parser.py:74
Methodget_function_metadata
Function metadata contains: - identifier (str): function name - parameters (Dict[str, str]): parameter's name and the
src/codetext/parser/cpp_parser.py:103
Methodget_function_metadata
(function_node, blob: str=None)
src/codetext/parser/php_parser.py:63
Methodget_function_metadata
(function_node, blob=None)
src/codetext/parser/ruby_parser.py:82
Methodis_method_body_empty
(node)
src/codetext/parser/java_parser.py:79
FunctionloadSongs
()
tests/test_parser/test_sample/javascript_test_sample.js:29
Functionlong_string
(x: &str)
tests/test_parser/test_sample/rust_test_sample.rs:7
Functionmain
tests/test_parser/test_sample/c_test_sample.c:19
Functionmain
tests/test_parser/test_sample/cpp_test_sample.cpp:21
Functionmatch_from_spans
Get text from multiple note Args: nodes (List): List of `tree_sitter.Node` blob (str): Full source Return:
src/codetext/parser/language_parser.py:172
Functionmodule_available
Check if a module path is available in your environment. Source: pytorch_lightning/utilities/imports.py .. code-block:: python >>
src/codetext/utils/imports.py:18
MethodmyMethod
()
tests/test_parser/test_sample/php_test_sample.php:93
Methodmy_method
(a)
tests/test_parser/test_sample/ruby_test_sample.rb:36
Functionparent_and_previous_sibling
Merge `node_parent` and `previous_sibling` function
src/codetext/parser/language_parser.py:35
Functionprevious_sibling
Search for the previous sibling of the node. TODO: C TreeSitter should support this natively, but not its Python bindings yet. Replace later.
src/codetext/parser/language_parser.py:48
Functionprivate_function
Items in modules default to private visibility.
tests/test_parser/test_sample/rust_test_sample.rs:24
Functionquack_everyone
(iter: I)
tests/test_parser/test_sample/rust_test_sample.rs:29
MethodremoveHabitEvent
Removes a habit event from a particular user's habit event list. @param context instance of Context @param userIndex integer user index @param habitI
tests/test_parser/test_sample/java_test_sample.java:36
Functionremove_everything_after_a_pattern
Only keep the part appears before the patterns. Ignore everything after the patterns. This function is applied at docstr
src/codetext/clean/noise_removal.py:162
Functionremove_everything_after_an_url
This function applies at sentence-level TO-DO: Should apply on docstring-level by regular expression
src/codetext/clean/noise_removal.py:182
Functionremove_function_name_at_the_beginning
This function is applied at docstring/paragraph-level.
src/codetext/clean/noise_removal.py:128
Functionremove_lines_contain_only_a_single_char
This function applies at line-level
src/codetext/clean/noise_removal.py:234
Functionremove_lines_start_and_end_with_the_same_char
Remove noisy lines. This function applies at line-level
src/codetext/clean/noise_removal.py:206
Functionremove_link_in_brackets
Removing patterns, for examples: - (https://www.a.ai) - <see https://www.b.ai> - <eg. a b c> \param \bri
src/codetext/clean/noise_removal.py:142
Functionremove_patterns_at_any_positions
This function applies at docstring-level
src/codetext/clean/noise_removal.py:250
Functionremove_patterns_at_the_start_and_end_of_a_line
This function applies at line-level
src/codetext/clean/noise_removal.py:262
Functionremove_special_character
(docstring: str)
src/codetext/clean/noise_removal.py:124
Functionremove_specific_pattern
pattern 1 will match "(e.g something)" pattern 2 will match "e.g something\n" or "e.g something. " pattern 3 will match "{@tag content}"
src/codetext/clean/noise_removal.py:312
Functionremove_words_in_string
(words, string)
src/codetext/parser/language_parser.py:13
MethodsetBackgroundImage
(Drawing $objDrawing)
tests/test_parser/test_sample/php_test_sample.php:101
MethodsetUp
(self)
tests/test_parser/test_csharp.py:11
MethodsetUp
(self)
tests/test_parser/test_php.py:11
MethodsetUp
(self)
tests/test_parser/test_java.py:11
MethodsetUp
(self)
tests/test_parser/test_c.py:10
MethodsetUp
(self)
tests/test_parser/test_python.py:11
MethodsetUp
(self)
tests/test_parser/test_go.py:11
MethodsetUp
(self)
tests/test_parser/test_javascript.py:11
MethodsetUp
(self)
tests/test_parser/test_cpp.py:11
MethodsetUp
(self)
tests/test_parser/test_ruby.py:11
MethodsetUp
(self)
tests/test_parser/test_rust.py:11
Methodshow
* Comment something
tests/test_parser/test_sample/javascript_test_sample.js:74
FunctionsongsLoaded
(repos, username=10)
tests/test_parser/test_sample/javascript_test_sample.js:43
FunctionsongsLoadingError
(error)
tests/test_parser/test_sample/javascript_test_sample.js:58
Functionsum2number
A static function
tests/test_parser/test_sample/cpp_test_sample.cpp:8
Methodtest_build_language
(self)
tests/test_utils/test_utils.py:6
Methodtest_extract_docstring
(self)
tests/test_parser/test_java.py:81
Methodtest_extract_docstring
(self)
tests/test_parser/test_c.py:71
Methodtest_extract_docstring
(self)
tests/test_parser/test_go.py:68
Methodtest_extract_docstring
(self)
tests/test_parser/test_javascript.py:109
Methodtest_get_action_list
(self)
tests/test_parser/test_ruby.py:125
Methodtest_get_action_metadata
(self)
tests/test_parser/test_ruby.py:131
Methodtest_get_class_list
(self)
tests/test_parser/test_csharp.py:27
Methodtest_get_class_list
(self)
tests/test_parser/test_php.py:27
Methodtest_get_class_list
(self)
tests/test_parser/test_java.py:27
Methodtest_get_class_list
(self)
tests/test_parser/test_c.py:38
Methodtest_get_class_list
(self)
tests/test_parser/test_python.py:26
Methodtest_get_class_list
(self)
tests/test_parser/test_javascript.py:27
Methodtest_get_class_list
(self)
tests/test_parser/test_cpp.py:27
Methodtest_get_class_list
(self)
tests/test_parser/test_ruby.py:27
Methodtest_get_class_list
(self)
tests/test_parser/test_rust.py:27
Methodtest_get_class_metadata
(self)
tests/test_parser/test_csharp.py:84
Methodtest_get_class_metadata
(self)
tests/test_parser/test_php.py:104
Methodtest_get_class_metadata
(self)
tests/test_parser/test_java.py:72
Methodtest_get_class_metadata
(self)
tests/test_parser/test_c.py:41
← previousnext →101–200 of 249, ranked by callers