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

Function check_docstring_length

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

Source from the content-addressed store, hash-verified

413# =================== Check docstring ======================
414
415def check_docstring_length(docstring: str):
416 doc_tokens = docstring.strip().split()
417 if len(doc_tokens) < 3: # or len(doc_tokens) > 256:
418 # if len(doc_tokens) >= 256:
419 return True
420 return False
421
422
423def check_docstring_literal(docstring: str):

Callers 1

clean_docstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected