MCPcopy Index your code
hub / github.com/PrathamLearnsToCode/paper2code / add_link

Function add_link

skills/paper2code/scripts/fetch_paper.py:286–290  ·  view source on GitHub ↗
(url: str, source: str, context: str = "")

Source from the content-addressed store, hash-verified

284 seen_urls = set()
285
286 def add_link(url: str, source: str, context: str = "") -> None:
287 normalized = url.rstrip("/").lower()
288 if normalized not in seen_urls:
289 seen_urls.add(normalized)
290 found.append({"url": url.rstrip("/"), "source": source, "context": context.strip()})
291
292 # --- Source 1: Scan paper text for code URLs ---
293 if paper_text:

Callers 1

find_official_codeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected