(example_id: str)
| 27 | |
| 28 | |
| 29 | def _parse_example_id(example_id: str) -> tuple[str, int] | None: |
| 30 | matched = re.fullmatch(r"(zh|en)/(\d+)", (example_id or "").strip()) |
| 31 | if matched is None: |
| 32 | return None |
| 33 | return matched.group(1), int(matched.group(2)) |
| 34 | |
| 35 | |
| 36 | def build_example_rows() -> list[tuple[str, str, str]]: |
no outgoing calls
no test coverage detected