Back to the room

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 symbols

Loading

Called by (6)
SymbolFileResolved by
encode_rawembeddings.pyunique name
_docstringpython_parser.pythrough an import
_signaturepython_parser.pythrough an import
_file_commenttreesitter_parser.pythrough an import
_leading_commenttreesitter_parser.pythrough an import
_signaturetreesitter_parser.pythrough an import
Inside (1)
SymbolFileResolved by
basebase.pysame 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

Read it on GitHub at this commit