MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / write_csv

Function write_csv

tools/commitlist.py:589–595  ·  view source on GitHub ↗
(path: Path, rows: list[CommitRow])

Source from the content-addressed store, hash-verified

587
588
589def write_csv(path: Path, rows: list[CommitRow]) -> None:
590 path.parent.mkdir(parents=True, exist_ok=True)
591 with path.open('w', newline='') as csv_file:
592 writer = csv.writer(csv_file)
593 writer.writerow(COMMIT_FIELDS)
594 for row in rows:
595 writer.writerow([getattr(row, field) for field in COMMIT_FIELDS])
596
597
598def write_lines(path: Path, lines: Iterable[str]) -> None:

Callers 2

write_category_exportsFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected