Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
raw_file_url
codeintel.git_source.raw_file_url
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| git_source | git_source.py | same file |
codeintel.git_source.raw_file_urlbackend/app/codeintel/git_source.py, lines 94–105Open source
def raw_file_url(canonical_url: str, commit: str, path: str) -> str | None: parts = urlsplit(canonical_url) if parts.scheme != "https": return None repo_path = parts.path.strip("/") if parts.hostname == "github.com": return f"https://raw.githubusercontent.com/{repo_path}/{commit}/{path}" if parts.hostname == "gitlab.com": return f"https://gitlab.com/{repo_path}/-/raw/{commit}/{path}" if parts.hostname == "bitbucket.org": return f"https://bitbucket.org/{repo_path}/raw/{commit}/{path}" return NoneWhat the index recorded
- Signature
def raw_file_url(canonical_url: str, commit: str, path: str) -> str | None:- File
backend/app/codeintel/git_source.py- Lines
- 94–105
- Parser
- python-ast
- Git blob
6f88470169e4935929c5f865a974bd86da564c1a- Call sites
- 2 named, 0 resolved, 2 left unlinked
- Outside this subset
- 1 more edges reach code outside the graph shown here
