MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / arxiv_urls

Function arxiv_urls

experiments/benchmark/prepare_hf_benchmark_package.py:76–81  ·  view source on GitHub ↗
(arxiv_id: object)

Source from the content-addressed store, hash-verified

74
75
76def arxiv_urls(arxiv_id: object) -> tuple[str | None, str | None]:
77 arxiv = str(arxiv_id or "").strip()
78 if not arxiv:
79 return None, None
80 arxiv = arxiv.removeprefix("arXiv:").removeprefix("arxiv:")
81 return f"https://arxiv.org/abs/{arxiv}", f"https://arxiv.org/pdf/{arxiv}.pdf"
82
83
84def sanitize_release_text_files(output_dir: Path) -> None:

Callers 1

paper_rowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected