Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/moto
/ fmt_dist
Function
fmt_dist
test/bench.py:175–176 ·
view source on GitHub ↗
(c: Counter, top=5)
Source
from the content-addressed store, hash-verified
173
errors = Counter(r.error
for
r in fail)
174
175
def
fmt_dist(c: Counter, top=5):
176
return
", "
.join(f
"{k}:{v}"
for
k,v in c.most_common(top)) or
"-"
177
178
def
fmt_perc(vals, name):
179
p = percentiles(vals)
Callers
1
summarize
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected