Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / method

__init__

codeintel.indexer.CodeIndexer.__init__

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 symbols

Loading

Inside (1)
SymbolFileResolved by
CodeIndexerindexer.pysame file
codeintel.indexer.CodeIndexer.__init__backend/app/codeintel/indexer.py, lines 142–159Open source
    def __init__(        self,        session: Session,        embedder: Embedder | None,        *,        max_file_bytes: int = 1_000_000,        max_files: int = 20_000,        clone_timeout: int = 600,        clone_token: str | None = None,        heartbeat: Callable[[], None] | None = None,    ) -> None:        self.db = session        self.embedder = embedder        self.max_file_bytes = max_file_bytes        self.max_files = max_files        self.clone_timeout = clone_timeout        self.clone_token = clone_token        self.heartbeat = heartbeat or (lambda: None)

What the index recorded

Signature
def __init__(self, session: Session, embedder: Embedder | None, *, max_file_bytes: int, max_files: int, clone_timeout: int, clone_token: str | None, heartbeat: Callable[[], None] | None) -> None:
File
backend/app/codeintel/indexer.py
Lines
142–159
Parser
python-ast
Git blob
e8fdfa7b5545e821f7649d68cfadd2aae85b89d0

Read it on GitHub at this commit