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

Function join

dvc/utils/humanize.py:4–13  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

2
3
4def join(words):
5 words = list(words)
6 if not words:
7 return ""
8
9 return (
10 "{before} and {after}".format(before=", ".join(words[:-1]), after=words[-1])
11 if len(words) > 1
12 else words[0]
13 )
14
15
16def get_summary(stats):

Callers 15

__init__Method · 0.90
get_summaryFunction · 0.85
resolveMethod · 0.85
resolve_allMethod · 0.85
resolve_allMethod · 0.85
test_ls_maxdepthFunction · 0.85
test_directoryFunction · 0.85
test_unchangedFunction · 0.85

Calls 2

joinMethod · 0.80
formatMethod · 0.45