Back to the room

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

Code Observatory / method

__init__

codeintel.embeddings.EdgeFirstEmbedder.__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
EdgeFirstEmbedderembeddings.pysame file
codeintel.embeddings.EdgeFirstEmbedder.__init__backend/app/codeintel/embeddings.py, lines 377–388Open source
    def __init__(self, base_url: str, token: str, local: OnnxEmbedder, *, timeout: float = 2.5,                 retry_after: float = 60.0):        self.base_url = base_url.rstrip("/")        self.local = local        self.model_id = local.model_id        self.timeout = timeout        self.retry_after = retry_after        self._headers = {"Authorization": f"Bearer {token}"}        self._client = None  # one keep-alive connection: a TLS handshake per query cost ~0.5 s through Funnel        self._client_lock = threading.Lock()        self._skip_until = 0.0        self.edge_calls = self.local_calls = 0

What the index recorded

Signature
def __init__(self, base_url: str, token: str, local: OnnxEmbedder, *, timeout: float, retry_after: float):
File
backend/app/codeintel/embeddings.py
Lines
377–388
Parser
python-ast
Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79
Call sites
2 named, 0 resolved, 2 left unlinked

Read it on GitHub at this commit