MCPcopy Create free account
hub / github.com/google-research/language / write

Function write

language/quest/common/jsonl_utils.py:40–46  ·  view source on GitHub ↗

Write a List of Dicts to jsonl file.

(filepath, rows)

Source from the content-addressed store, hash-verified

38
39
40def write(filepath, rows):
41 """Write a List of Dicts to jsonl file."""
42 with gfile.GFile(filepath, "w") as jsonl_file:
43 for row in rows:
44 line = "%s\n" % json.dumps(row)
45 jsonl_file.write(line)
46 print("Wrote %s lines to %s." % (len(rows), filepath))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…