Back to the room

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

Code Observatory / method

as_dict

codeintel.retrieval.Evidence.as_dict

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
Evidenceretrieval.pysame file
codeintel.retrieval.Evidence.as_dictbackend/app/codeintel/retrieval.py, lines 97–105Open source
    def as_dict(self) -> dict:        return {            "keyword_rank": self.keyword_rank,            "keyword_score": None if self.keyword_score is None else round(self.keyword_score, 4),            "dense_rank": self.dense_rank,            "dense_similarity": None if self.dense_similarity is None else round(self.dense_similarity, 4),            "graph": self.graph,            "boosts": self.boosts,        }

What the index recorded

Signature
def as_dict(self) -> dict:
File
backend/app/codeintel/retrieval.py
Lines
97–105
Parser
python-ast
Git blob
884729a39ae0b3d340ad83f75946677dcddf3791
Call sites
1 named, 0 resolved, 1 left unlinked

Read it on GitHub at this commit