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

Function does_str_containt_math

src/codetext/clean/noise_removal.py:500–509  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

498# =================== Check characters ======================
499
500def does_str_containt_math(str):
501 math_indicators = ["equation", "\exp(", "\log(", "\sqrt(", "mathbf", "mathrm"]
502 # TODO: page [number]
503 containt_math = False
504 for math_indicator in math_indicators:
505 if math_indicator in str:
506 containt_math = True
507 break
508
509 return containt_math
510
511
512def check_contain_little_alphabet_char(docstring: str):

Calls

no outgoing calls

Tested by

no test coverage detected