code stringlengths 3 6.57k |
|---|
repo.close() |
_remove(path) |
wrap_with(threading.Lock() |
_get_cache_dir(url) |
tempfile.mkdtemp("dvc-cache") |
clean_repos() |
CLONES.values() |
list(CACHE_DIRS.values() |
CLONES.clear() |
CACHE_DIRS.clear() |
_remove(path) |
_get_remote_config(url) |
Repo(url) |
get("remote") |
repo.close() |
_cached_clone(url, rev, for_write=False) |
_clone_default_branch(url, rev, for_write=for_write) |
and (url) |
tempfile.mkdtemp("dvc-erepo") |
logger.debug("erepo: making a copy of %s clone", url) |
copy_tree(clone_path, repo_path) |
_git_checkout(repo_path, rev) |
wrap_with(threading.Lock() |
_clone_default_branch(url, rev, for_write=False) |
CLONES.get(url, (None, False) |
Git(clone_path) |
Git.is_sha(rev) |
git.has_rev(rev) |
full (unshallowed) |
logger.debug("erepo: unshallowing clone for '%s'", url) |
_unshallow(git) |
logger.debug("erepo: git pull '%s'", url) |
git.pull() |
logger.debug("erepo: git clone '%s' to a temporary dir", url) |
tempfile.mkdtemp("dvc-clone") |
Git.is_sha(rev) |
Git.clone(url, clone_path, shallow_branch=rev) |
Git.clone(url, clone_path) |
git.close() |
_unshallow(git) |
head (i.e. we shallow cloned a tag) |
ref.name.split("/") |
git.gitpython.repo.create_head(branch_name, ref) |
branch.set_tracking_branch(ref) |
branch.checkout() |
git.pull(unshallow=True) |
_git_checkout(repo_path, rev) |
logger.debug("erepo: git checkout %s@%s", repo_path, rev) |
Git(repo_path) |
git.checkout(rev) |
git.close() |
_remove(path) |
retry(5, errors=OSError, timeout=0.1) |
os_retry(remove) |
relpath(path) |
remove(path) |
url(r'^$', AuthorList.as_view() |
url(r'^(?P<pk>\d+) |
url(r'^signup/$', AuthorSignupView, name='author-signup') |
TestModeler(TestCase) |
test___init__default(self) |
Modeler('test') |
dict() |
dict() |
test___init__with_arguments(self) |
Mock() |
Modeler({'some': 'metadata'}, model=model, model_kwargs={'some': 'kwargs'}) |
dict() |
test__get_extensions(self) |
Mock(spec=SDVModel) |
Mock(spec=Modeler) |
dict() |
Mock(spec=Metadata) |
pd.DataFrame({'foo': ['aaa', 'bbb', 'ccc']}) |
Modeler._get_extension(modeler, 'some_name', child_table, 'foo') |
pd.testing.assert_frame_equal(result, expected) |
test_cpa_with_tables_no_primary_key(self) |
Mock(spec=Modeler) |
Mock(spec=Metadata) |
Mock(spec=SDVModel) |
dict() |
dict() |
pd.DataFrame({'data': [1, 2, 3]}) |
pd.DataFrame({'data': ['a', 'b', 'c']}) |
Modeler.cpa(modeler, 'test', tables) |
pd.DataFrame({'data': [1, 2, 3]}) |
pd.DataFrame({'data': ['a', 'b', 'c']}) |
pd.testing.assert_frame_equal(result, expected) |
test_model_database(self) |
rcpa_side_effect(table_name, tables) |
Mock() |
dict() |
Modeler.model_database(modeler) |
call('foo') |
call('bar') |
call('tar') |
np.isclose(distance_from_batman_returns('titanic') |
pytest.mark.parametrize('correct,incorrect', [(1, -1) |
test_pre_contract_fulfilled(self, correct, incorrect) |
deal.pre(lambda x: x > 0) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.