Back to the room

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 symbols

Loading

Called by (1)
SymbolFileResolved by
describe_repositorydescribe.pysame file
Inside (1)
SymbolFileResolved by
describedescribe.pysame 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 True

What 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

Read it on GitHub at this commit