MCPcopy Create free account
hub / github.com/codefuse-ai/codefuse-devops-eval / save_to_jsonl_file

Function save_to_jsonl_file

src/utils/jsonl_utils.py:12–18  ·  view source on GitHub ↗
(data, filename)

Source from the content-addressed store, hash-verified

10
11
12def save_to_jsonl_file(data, filename):
13 dir_name = os.path.dirname(filename)
14 if not os.path.exists(dir_name): os.makedirs(dir_name)
15
16 with open(filename, "w", encoding="utf-8") as f:
17 for item in data:
18 f.write(json.dumps(item, ensure_ascii=False) + "\n")
19

Callers 1

qwen_eval_main.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected