Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / class
GraphStats
codeintel.graph.GraphStats
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 |
|---|---|---|
| build_edges | graph.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| as_dict | graph.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| graph | graph.py | same file |
codeintel.graph.GraphStatsbackend/app/codeintel/graph.py, lines 58–75Open source
@dataclassclass GraphStats: contains: int = 0 imports: int = 0 calls_resolved: int = 0 calls_unresolved: int = 0 calls_ambiguous: int = 0 by_resolution: dict[str, int] = field(default_factory=lambda: defaultdict(int)) def as_dict(self) -> dict: return { "contains": self.contains, "imports": self.imports, "calls_resolved": self.calls_resolved, "calls_unresolved": self.calls_unresolved, "calls_ambiguous": self.calls_ambiguous, "calls_by_resolution": dict(self.by_resolution), }What the index recorded
- Signature
class GraphStats:- File
backend/app/codeintel/graph.py- Lines
- 58–75
- Parser
- python-ast
- Git blob
3791a0283d18722675047af567570cb2c1911c63- Call sites
- 2 named, 0 resolved, 2 left unlinked
