MCPcopy
hub / github.com/HisMax/RedInk / _summarize_raw

Function _summarize_raw

backend/errors.py:374–377  ·  view source on GitHub ↗
(value: str, limit: int)

Source from the content-addressed store, hash-verified

372
373
374def _summarize_raw(value: str, limit: int) -> str:
375 if "<html" in value.lower() or "<!doctype" in value.lower():
376 return _truncate(_summarize_html(value), limit)
377 return _truncate(value, limit)
378
379
380def _summarize_html(value: str) -> str:

Callers 1

classify_errorFunction · 0.85

Calls 2

_truncateFunction · 0.85
_summarize_htmlFunction · 0.85

Tested by

no test coverage detected