Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_read_profile
codeintel.embeddings._read_profile
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 |
|---|---|---|
| __init__ | embeddings.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| embeddings | embeddings.py | same file |
codeintel.embeddings._read_profilebackend/app/codeintel/embeddings.py, lines 453–458Open source
def _read_profile(model_dir: str) -> dict: path = os.path.join(model_dir, "pharos_model.json") if not os.path.isfile(path): return {} with open(path) as fh: return json.load(fh)What the index recorded
- Signature
def _read_profile(model_dir: str) -> dict:- File
backend/app/codeintel/embeddings.py- Lines
- 453–458
- Parser
- python-ast
- Git blob
df7f8202f23ca6ad2c57aca5f09b435eb6486d79- Call sites
- 4 named, 1 resolved, 3 left unlinked
- Outside this subset
- 1 more edges reach code outside the graph shown here
