MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / write_jsonl

Function write_jsonl

scripts/extract_source_text.py:256–262  ·  view source on GitHub ↗
(records: list[dict[str, Any]], output_path: str)

Source from the content-addressed store, hash-verified

254
255
256def write_jsonl(records: list[dict[str, Any]], output_path: str) -> None:
257 ensure_parent(output_path)
258 path = Path(output_path).expanduser().resolve()
259 path.write_text(
260 "\n".join(json.dumps(record, ensure_ascii=False) for record in records) + "\n",
261 encoding="utf-8",
262 )
263
264
265def write_full_text_markdown(records: list[dict[str, Any]], output_path: str, title: str) -> None:

Callers 1

mainFunction · 0.85

Calls 1

ensure_parentFunction · 0.90

Tested by

no test coverage detected