Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
grounded
codeintel.describe.grounded
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 |
|---|---|---|
| describe_repository | describe.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| describe | describe.py | same file |
codeintel.describe.groundedbackend/app/codeintel/describe.py, lines 67–74Open source
def grounded(description: str, code: str) -> bool: """Every code-shaped token in the description (``parse_url``, ``req.body``, ``getValue``, ``f()``) appears in the code.""" lowered = code.lower() for token in _CODEISH.findall(description): if token.rstrip("()").lower() not in lowered: return False return TrueWhat the index recorded
- Signature
def grounded(description: str, code: str) -> bool:- File
backend/app/codeintel/describe.py- Lines
- 67–74
- Parser
- python-ast
- Git blob
9e70d40ab4a4d664b1b0e8b0ac225e7a134fa3f2- Call sites
- 3 named, 0 resolved, 3 left unlinked
- Outside this subset
- 2 more edges reach code outside the graph shown here
