Back to the room

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

Code Observatory / function

split_identifier

codeintel.text.split_identifier

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 (2)
SymbolFileResolved by
compound_nameretrieval.pythrough an import
tokenizetext.pysame file
Inside (1)
SymbolFileResolved by
texttext.pysame file
codeintel.text.split_identifierbackend/app/codeintel/text.py, lines 28–36Open source
def split_identifier(token: str) -> list[str]:    """``getHTTPResponse_v2`` -> ``['get', 'http', 'response', 'v2']``."""    parts: list[str] = []    for piece in re.split(r"[_$\-]+", token):        if not piece:            continue        sub = _CAMEL_RE.findall(piece)        parts.extend(s.lower() for s in (sub or [piece]))    return parts

What the index recorded

Signature
def split_identifier(token: str) -> list[str]:
File
backend/app/codeintel/text.py
Lines
28–36
Parser
python-ast
Git blob
74781c9c047d5953611fd7634b2cf29e7661b895
Call sites
4 named, 0 resolved, 4 left unlinked
Outside this subset
2 more edges reach code outside the graph shown here

Read it on GitHub at this commit