(path: Path)
| 22 | |
| 23 | |
| 24 | def iter_jsonl(path: Path): |
| 25 | with path.open("r", encoding="utf-8-sig") as handle: |
| 26 | for line in handle: |
| 27 | line = line.strip() |
| 28 | if line: |
| 29 | yield json.loads(line) |
| 30 | |
| 31 | |
| 32 | def safe_div(num: float, den: float) -> float: |
no outgoing calls
no test coverage detected