Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
repository_summary
codeintel.symbols.repository_summary
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 |
|---|---|---|
| get_repository | router.py | through an import |
| list_repositories | router.py | through an import |
| build_mcp_server | native_server.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| symbols | symbols.py | same file |
codeintel.symbols.repository_summarybackend/app/codeintel/symbols.py, lines 78–98Open source
def repository_summary(db: Session, repo: Repository) -> dict: stats = repo.stats or {} return { "id": str(repo.id), "name": repo.name, "url": repo.url, "source_type": repo.source_type, "branch": repo.branch, "index_status": repo.index_status, "last_commit_sha": repo.last_commit_sha, "last_indexed_at": repo.last_indexed_at.isoformat() if repo.last_indexed_at else None, "total_files": repo.total_files, "total_lines": repo.total_lines, "chunks": stats.get("chunks_total"), "embedding_model": stats.get("embedding_model"), "languages": { name: {k: v for k, v in lang.items() if k in ("files", "ast_files", "fallback_files", "chunks", "fallback_reasons")} for name, lang in (stats.get("languages") or {}).items() }, "graph": stats.get("graph"), }What the index recorded
- Signature
def repository_summary(db: Session, repo: Repository) -> dict:- File
backend/app/codeintel/symbols.py- Lines
- 78–98
- Parser
- python-ast
- Git blob
abdbb1001335e092a3fd51dcc000a89cac57e3a4- Call sites
- 4 named, 0 resolved, 4 left unlinked
- Outside this subset
- 1 more edges reach code outside the graph shown here
