MCPcopy Index your code
hub / github.com/anthropics/defending-code-reference-harness / _tail

Function _tail

harness/patch_grade.py:313–315  ·  view source on GitHub ↗
(s: str, n: int = 40)

Source from the content-addressed store, hash-verified

311
312
313def _tail(s: str, n: int = 40) -> str:
314 lines = s.splitlines()
315 return "\n".join(lines[-n:]) + ("\n" if lines else "")

Callers 1

grade_patchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected