MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / best

Function best

experiments/human_eval/draw_interest_drift_paperflow_style.py:97–98  ·  view source on GitHub ↗
(values: dict[str, float], direction: str)

Source from the content-addressed store, hash-verified

95
96
97def best(values: dict[str, float], direction: str) -> str:
98 return min(values, key=values.get) if direction == "down" else max(values, key=values.get)
99
100
101def fmt(value: float) -> str:

Callers 2

draw_pngFunction · 0.85
write_svgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected