Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_classify
codeintel.git_source._classify
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 |
|---|---|---|
| _run | git_source.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| git_source | git_source.py | same file |
codeintel.git_source._classifybackend/app/codeintel/git_source.py, lines 269–290Open source
def _classify(stderr: str) -> bool: """Return True if a git failure is worth retrying.""" s = stderr.lower() permanent = ( "repository not found", "not found", "authentication failed", "could not read username", "remote branch", "invalid refspec", "couldn't find remote ref", "unknown revision", "needed a single revision", "bad revision", "not a valid object name", "terminal prompts disabled", "http 401", "http 403", "http 404", "redirect", ) return not any(p in s for p in permanent)What the index recorded
- Signature
def _classify(stderr: str) -> bool:- File
backend/app/codeintel/git_source.py- Lines
- 269–290
- Parser
- python-ast
- Git blob
6f88470169e4935929c5f865a974bd86da564c1a- Call sites
- 2 named, 0 resolved, 2 left unlinked
