MCPcopy Create free account
hub / github.com/DataArcTech/ToG / extract_content

Function extract_content

eval/utils.py:140–147  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

138 json.dump(results_data, f, ensure_ascii=False, indent=4)
139
140def extract_content(s):
141 matches = re.findall(r'\{(.*?)\}', s)
142 if len(matches) >= 2 and matches[0].lower() == 'yes':
143 return matches[1]
144 elif len(matches) >= 1:
145 return matches[0]
146 else:
147 return 'NULL'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected