Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
4
def
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
16
def
get_summary(stats):
Callers
15
__init__
Method · 0.90
test_item_key_in_generated_stage_vars
Function · 0.90
get_summary
Function · 0.85
resolve
Method · 0.85
resolve_all
Method · 0.85
resolve_all
Method · 0.85
test_pull_granular_excluding_import_that_cannot_be_pulled
Function · 0.85
test_ls_maxdepth
Function · 0.85
test_git_to_dvc_path_wdir_transformation
Function · 0.85
test_directory
Function · 0.85
test_tracked_directory_deep
Function · 0.85
test_unchanged
Function · 0.85
Calls
2
join
Method · 0.80
format
Method · 0.45
Tested by
15
test_item_key_in_generated_stage_vars
Function · 0.72
test_pull_granular_excluding_import_that_cannot_be_pulled
Function · 0.68
test_ls_maxdepth
Function · 0.68
test_git_to_dvc_path_wdir_transformation
Function · 0.68
test_directory
Function · 0.68
test_tracked_directory_deep
Function · 0.68
test_unchanged
Function · 0.68
test_subdir
Function · 0.68
test_untracked_newly_added_files
Function · 0.68
test_missing_cache_workspace_exists
Function · 0.68
test_missing_cache_missing_workspace
Function · 0.68
test_git_committed_missing_cache_workspace_exists
Function · 0.68