Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
clip
codeintel.parsers.base.clip
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 |
|---|---|---|
| encode_raw | embeddings.py | unique name |
| _docstring | python_parser.py | through an import |
| _signature | python_parser.py | through an import |
| _file_comment | treesitter_parser.py | through an import |
| _leading_comment | treesitter_parser.py | through an import |
| _signature | treesitter_parser.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| base | base.py | same file |
codeintel.parsers.base.clipbackend/app/codeintel/parsers/base.py, lines 66–68Open source
def clip(text: str, limit: int) -> str: text = " ".join(text.split()) return text if len(text) <= limit else text[: limit - 1] + "…"What the index recorded
- Signature
def clip(text: str, limit: int) -> str:- File
backend/app/codeintel/parsers/base.py- Lines
- 66–68
- Parser
- python-ast
- Git blob
3ebc48248b33125ad21597173a82926893a501dc- Call sites
- 3 named, 0 resolved, 3 left unlinked
- Outside this subset
- 2 more edges reach code outside the graph shown here
