MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / display_name

Function display_name

scripts/memwaste-scaling.py:159–165  ·  view source on GitHub ↗
(raw: str)

Source from the content-addressed store, hash-verified

157
158
159def display_name(raw: str) -> str:
160 # static functions are "file.c;name" (or "file.c:name" in older formats)
161 for sep in (";", ":"):
162 if sep in raw:
163 file_part, fn = raw.rsplit(sep, 1)
164 return f"{fn} ({os.path.basename(file_part)})"
165 return raw
166
167
168def main() -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected