(repo: str, rel: str, start: int, code: str)
| 169 | |
| 170 | |
| 171 | def snippet_id(repo: str, rel: str, start: int, code: str) -> str: |
| 172 | return hashlib.sha1(f"{repo}:{rel}:{start}:{code}".encode("utf-8", "ignore")).hexdigest() |
| 173 | |
| 174 | |
| 175 | def scrape_repo(spec: RepoSpec, repo_root: Path, options: argparse.Namespace) -> Iterator[Dict[str, object]]: |