MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeText-parser / tokenize_docstring

Function tokenize_docstring

src/codetext/parser/language_parser.py:20–21  ·  view source on GitHub ↗
(docstring: str)

Source from the content-addressed store, hash-verified

18
19
20def tokenize_docstring(docstring: str) -> List[str]:
21 return [t for t in DOCSTRING_REGEX_TOKENIZER.findall(str(docstring)) if t is not None and len(t) > 0]
22
23
24def tokenize_code(node, blob: str, nodes_to_exclude: Optional[Set]=None) -> List:

Calls

no outgoing calls

Tested by

no test coverage detected