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

Function _severity_mix

plugins/codex-security/scripts/report_projection.py:194–199  ·  view source on GitHub ↗
(findings: list[dict[str, Any]])

Source from the content-addressed store, hash-verified

192
193
194def _severity_mix(findings: list[dict[str, Any]]) -> str:
195 counts = Counter(finding["severity"]["level"] for finding in findings)
196 return (
197 ", ".join(f"{level}: {counts[level]}" for level in SEVERITY_ORDER if counts[level])
198 or "none"
199 )
200
201
202def _confidence_mix(findings: list[dict[str, Any]]) -> str:

Callers 1

build_report_markdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected