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

Class SetEncoder

evaluation/evalplus/evalplus/inputgen.py:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class SetEncoder(json.JSONEncoder):
16 def default(self, obj):
17 if isinstance(obj, set):
18 return list(obj)
19 return json.JSONEncoder.default(self, obj)
20
21
22# Used for MBPP as MBPP's prompt is not a formal function signature

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected