MCPcopy Create free account
hub / github.com/OpenCodeInterpreter/OpenCodeInterpreter / InputFunctionVisitor

Class InputFunctionVisitor

demo/chatbot.py:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111class InputFunctionVisitor(ast.NodeVisitor):
112 def __init__(self):
113 self.found_input = False
114
115 def visit_Call(self, node):
116 if isinstance(node.func, ast.Name) and node.func.id == 'input':
117 self.found_input = True
118 self.generic_visit(node)
119
120def has_input_function_calls(code):
121 try:

Callers 1

has_input_function_callsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected