MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / nmi_to_plain

Function nmi_to_plain

codeclash/arenas/scml/runtime/run_scml.py:132–138  ·  view source on GitHub ↗
(nmi)

Source from the content-addressed store, hash-verified

130
131
132def nmi_to_plain(nmi) -> dict[str, Any]:
133 if nmi is None:
134 return {}
135 return {
136 "annotation": to_plain(getattr(nmi, "annotation", {})),
137 "issues": [issue_to_plain(issue) for issue in getattr(nmi, "issues", [])],
138 }
139
140
141def normalize_offer(offer, nmi) -> tuple[tuple[int, int, int] | None, str | None]:

Callers 1

_base_observationMethod · 0.85

Calls 2

to_plainFunction · 0.85
issue_to_plainFunction · 0.85

Tested by

no test coverage detected