MCPcopy Create free account
hub / github.com/claw-bench/claw-bench / process_data

Function process_data

tasks/debugging/debug-004/environment/data/utils.py:20–28  ·  view source on GitHub ↗
(data, output_format)

Source from the content-addressed store, hash-verified

18
19
20def process_data(data, output_format):
21 if not validate_format(output_format):
22 raise ValueError(f"Unsupported format: {output_format}")
23 result = {
24 "processed_items": len(data),
25 "format": output_format,
26 **data,
27 }
28 return format_output(result)

Callers 1

mainFunction · 0.90

Calls 2

validate_formatFunction · 0.85
format_outputFunction · 0.70

Tested by

no test coverage detected