MCPcopy Create free account
hub / github.com/openai/plugins / _code_fence

Function _code_fence

plugins/codex-security/scripts/report_projection.py:169–171  ·  view source on GitHub ↗
(code: str)

Source from the content-addressed store, hash-verified

167
168
169def _code_fence(code: str) -> str:
170 longest_run = max((len(match.group(0)) for match in re.finditer(r"`+", code)), default=0)
171 return "`" * max(3, longest_run + 1)
172
173
174def _code_evidence_lines(evidence: list[dict[str, Any]]) -> list[str]:

Callers 1

_code_evidence_linesFunction · 0.85

Calls 1

groupMethod · 0.80

Tested by

no test coverage detected