MCPcopy
hub / github.com/treeverse/dvc / get_summary

Function get_summary

dvc/utils/humanize.py:16–23  ·  view source on GitHub ↗
(stats)

Source from the content-addressed store, hash-verified

14
15
16def get_summary(stats):
17 status = (
18 (state, len(data) if is_seq(data) else data) for state, data in stats if data
19 )
20 return join(
21 "{} file{} {}".format(num, "s" if num > 1 else "", state)
22 for state, num in status
23 )
24
25
26ELLIPSIS = "…"

Callers 3

log_summaryMethod · 0.90
runMethod · 0.90
test_get_summaryFunction · 0.90

Calls 2

joinFunction · 0.85
formatMethod · 0.45

Tested by 1

test_get_summaryFunction · 0.72