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

Function split_all_sepcial_case

src/codetext/clean/noise_removal.py:705–713  ·  view source on GitHub ↗
(docstring: str)

Source from the content-addressed store, hash-verified

703
704
705def split_all_sepcial_case(docstring: str):
706 docstring_tokens = []
707 for token in tokenize_docstring(docstring.strip()):
708 sub_tokens = snake_case_split(token)
709 for sub_token in sub_tokens:
710 sub_sub_tokens = camel_case_split(sub_token)
711 docstring_tokens.extend(sub_sub_tokens)
712
713 return docstring_tokens
714
715def check_contain_many_long_word(docstring: str):
716 threshold = 30

Callers 1

Calls 3

tokenize_docstringFunction · 0.85
snake_case_splitFunction · 0.85
camel_case_splitFunction · 0.85

Tested by

no test coverage detected