MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / collect

Function collect

aura/analyzers/python_src_inspector.py:175–185  ·  view source on GitHub ↗
(source_code, encoding="utf-8", minimal=False)

Source from the content-addressed store, hash-verified

173
174
175def collect(source_code, encoding="utf-8", minimal=False):
176 src = ast.parse(source_code)
177 src_dump = {
178 "ast_tree": ast2json(src),
179 "encoding": encoding,
180 }
181
182 if not minimal:
183 src_dump.update(get_environment())
184
185 return src_dump
186
187
188def main(pth=None, out=sys.stdout):

Callers 4

process_source_codeFunction · 0.90
process_taintFunction · 0.90
_compile_srcMethod · 0.85
mainFunction · 0.85

Calls 2

ast2jsonFunction · 0.85
get_environmentFunction · 0.85

Tested by 2

process_source_codeFunction · 0.72
process_taintFunction · 0.72