Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenRaiser/PaperFlow
/ fmt
Function
fmt
experiments/human_eval/draw_interest_drift_paperflow_style.py:101–104 ·
view source on GitHub ↗
(value: float)
Source
from the content-addressed store, hash-verified
99
100
101
def
fmt(value: float) -> str:
102
if
value >= 10:
103
return
f
"{value:.2f}"
104
return
f
"{value:.4f}"
.rstrip(
"0"
).rstrip(
"."
)
105
106
107
def
draw_legend(draw: ImageDraw.ImageDraw) -> None:
Callers
2
draw_png
Function · 0.70
write_svg
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected