MCPcopy Create free account
hub / github.com/GPTScan/GPTScan / __in_code

Function __in_code

src/static_check.py:90–91  ·  view source on GitHub ↗
(pattern:str, text:str)

Source from the content-addressed store, hash-verified

88 return len(re.split(f'emit\\s*{function}', text)[-1].split[","]) > 5
89
90def __in_code(pattern:str, text:str):
91 return pattern.lower() in text.lower()
92
93def run_static_check(checker:str, args, function_name:str, falcon:Falcon, text:str) -> bool:
94 # if there is a vulnerability, return true

Callers 1

run_static_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected