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 symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| compound_name | retrieval.py | through an import |
| tokenize | text.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| text | text.py | same 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 partsWhat 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
