repo_id
stringclasses
400 values
commit_sha
stringclasses
400 values
commit_index
int32
0
951
in_repo_split
stringclasses
1 value
cross_repo_split
stringclasses
1 value
test_file
stringlengths
7
121
test_function
stringlengths
1
108
assertion_type
stringclasses
32 values
difficulty
stringclasses
8 values
context_lines
int32
3
600
prefix
large_stringlengths
44
113k
target
large_stringlengths
1
498
anchor_sha
stringclasses
400 values
anchor_index
int32
0
951
qna_source
stringclasses
1 value
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_hf_datasets.py
test_crag_hf
assert
numeric_literal
124
import datasets from syftr.storage import ( BrightHF, CragTask3HF, DRDocsHF, FinanceBenchHF, HotPotQAHF, MultiHopRAGHF, PartitionMap, PhantomWikiV001HF, PhantomWikiv050, SyntheticCragTask3HF, SyntheticFinanceBenchHF, SyntheticHotPotQAHF, ) def test_crag_hf(): def _t...
8
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_hf_datasets.py
test_financebench_hf
assert
numeric_literal
26
import datasets from syftr.storage import ( BrightHF, CragTask3HF, DRDocsHF, FinanceBenchHF, HotPotQAHF, MultiHopRAGHF, PartitionMap, PhantomWikiV001HF, PhantomWikiv050, SyntheticCragTask3HF, SyntheticFinanceBenchHF, SyntheticHotPotQAHF, ) def test_financebench_hf(): ...
3
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_hf_datasets.py
test_hotpotqa_hf
assert
numeric_literal
29
import datasets from syftr.storage import ( BrightHF, CragTask3HF, DRDocsHF, FinanceBenchHF, HotPotQAHF, MultiHopRAGHF, PartitionMap, PhantomWikiV001HF, PhantomWikiv050, SyntheticCragTask3HF, SyntheticFinanceBenchHF, SyntheticHotPotQAHF, ) def test_hotpotqa_hf(): # ...
6
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_hf_datasets.py
test_multihoprag_hf
assert
numeric_literal
24
import datasets from syftr.storage import ( BrightHF, CragTask3HF, DRDocsHF, FinanceBenchHF, HotPotQAHF, MultiHopRAGHF, PartitionMap, PhantomWikiV001HF, PhantomWikiv050, SyntheticCragTask3HF, SyntheticFinanceBenchHF, SyntheticHotPotQAHF, ) def test_multihoprag_hf(): ...
0
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_hf_datasets.py
test_drdocs_hf
assert
numeric_literal
40
import datasets from syftr.storage import ( BrightHF, CragTask3HF, DRDocsHF, FinanceBenchHF, HotPotQAHF, MultiHopRAGHF, PartitionMap, PhantomWikiV001HF, PhantomWikiv050, SyntheticCragTask3HF, SyntheticFinanceBenchHF, SyntheticHotPotQAHF, ) def test_drdocs_hf(): """D...
10
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_hf_datasets.py
test_drdocs_hf
assert
numeric_literal
41
import datasets from syftr.storage import ( BrightHF, CragTask3HF, DRDocsHF, FinanceBenchHF, HotPotQAHF, MultiHopRAGHF, PartitionMap, PhantomWikiV001HF, PhantomWikiv050, SyntheticCragTask3HF, SyntheticFinanceBenchHF, SyntheticHotPotQAHF, ) def test_drdocs_hf(): """D...
80
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_huggingface_helper.py
test_timeout_logic
pytest.raises
variable
35
import pytest from syftr.embeddings.timeouts import EmbeddingPreemptiveTimeoutError from syftr.studies import TimeoutConfig @pytest.mark.parametrize( "total_chunks,total_time,chunks_processed,should_time_out", [ (0, 1000, 10, False), # Too slow, but shouldn't check (1000, 10, 10, False), # F...
EmbeddingPreemptiveTimeoutError)
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_initialization.py
test_study_initialization
assert
func_call
48
import tempfile from pathlib import Path from optuna.storages import RDBStorage from syftr.configuration import cfg from syftr.optimization import initialize_from_study from syftr.optuna_helper import get_completed_trials, get_pareto_df from syftr.studies import StudyConfig, get_subspace def test_study_initializatio...
len(df_dst)
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/functional/test_reranker.py
test_reranker_flow_rag
assert
numeric_literal
6
def test_reranker_flow_rag(hotpot_reranker_flow, correctness_evaluator): question = "Who is Adam Collis?" response, duration, call_data = hotpot_reranker_flow.generate(question) assert duration >
0
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/integration/test_api_e2e.py
test_get_study_get_delete
pytest.raises
complex_expr
27
import time from pathlib import Path import pytest from syftr import api from syftr.configuration import cfg EXAMPLE_STUDY_CONFIG_PATH = Path(cfg.paths.studies_dir / "example-dr-docs.yaml") NON_EXISTANT_STUDY_CONFIG_PATH = Path( cfg.paths.test_studies_dir / "hotpot-toy-non-existent.yaml" ) def test_get_study_ge...
api.SyftrUserAPIError)
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/integration/test_api_e2e.py
test_start_stop
assert
complex_expr
19
import time from pathlib import Path import pytest from syftr import api from syftr.configuration import cfg EXAMPLE_STUDY_CONFIG_PATH = Path(cfg.paths.studies_dir / "example-dr-docs.yaml") NON_EXISTANT_STUDY_CONFIG_PATH = Path( cfg.paths.test_studies_dir / "hotpot-toy-non-existent.yaml" ) def test_start_stop()...
api.SyftrStudyStatus.RUNNING
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/integration/test_api_e2e.py
test_start_stop
assert
complex_expr
22
import time from pathlib import Path import pytest from syftr import api from syftr.configuration import cfg EXAMPLE_STUDY_CONFIG_PATH = Path(cfg.paths.studies_dir / "example-dr-docs.yaml") NON_EXISTANT_STUDY_CONFIG_PATH = Path( cfg.paths.test_studies_dir / "hotpot-toy-non-existent.yaml" ) def test_start_stop()...
api.SyftrStudyStatus.STOPPED
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/integration/test_api_e2e.py
test_wait_for_completion
assert
complex_expr
20
import time from pathlib import Path import pytest from syftr import api from syftr.configuration import cfg EXAMPLE_STUDY_CONFIG_PATH = Path(cfg.paths.studies_dir / "example-dr-docs.yaml") NON_EXISTANT_STUDY_CONFIG_PATH = Path( cfg.paths.test_studies_dir / "hotpot-toy-non-existent.yaml" ) @pytest.mark.skip(rea...
api.SyftrStudyStatus.COMPLETED
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/integration/test_api_e2e.py
test_stop_not_running
assert
string_literal
19
import time from pathlib import Path import pytest from syftr import api from syftr.configuration import cfg EXAMPLE_STUDY_CONFIG_PATH = Path(cfg.paths.studies_dir / "example-dr-docs.yaml") NON_EXISTANT_STUDY_CONFIG_PATH = Path( cfg.paths.test_studies_dir / "hotpot-toy-non-existent.yaml" ) def test_stop_not_run...
"This study is not running. Run it first."
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/integration/test_api_e2e.py
test_get_study_get_delete
assert
string_literal
29
import time from pathlib import Path import pytest from syftr import api from syftr.configuration import cfg EXAMPLE_STUDY_CONFIG_PATH = Path(cfg.paths.studies_dir / "example-dr-docs.yaml") NON_EXISTANT_STUDY_CONFIG_PATH = Path( cfg.paths.test_studies_dir / "hotpot-toy-non-existent.yaml" ) def test_get_study_ge...
"Cannot find study example-dr-docs in the database."
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/integration/test_api_e2e.py
test_delete_study_non_existent
assert
string_literal
19
import time from pathlib import Path import pytest from syftr import api from syftr.configuration import cfg EXAMPLE_STUDY_CONFIG_PATH = Path(cfg.paths.studies_dir / "example-dr-docs.yaml") NON_EXISTANT_STUDY_CONFIG_PATH = Path( cfg.paths.test_studies_dir / "hotpot-toy-non-existent.yaml" ) def test_delete_study...
"Study hotpot-dev-toy-non-existent has no study config in the database."
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_pareto_df
assert
none_literal
34
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
None
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_flows_df_returns_dataframe
assert
complex_expr
36
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
df.columns
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_init_no_path
assert
variable
33
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
study_config_path
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_pareto_df
assert
complex_expr
37
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
pareto_df.columns
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_knee_point
pytest.raises
complex_expr
33
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
api.SyftrUserAPIError)
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_status_completed
assert
complex_expr
34
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
api.SyftrStudyStatus.COMPLETED
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_status_non_existent
assert
complex_expr
32
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
api.SyftrStudyStatus.INITIALIZED
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_get_study_non_existent_in_db
assert
string_literal
33
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
"Cannot find study non_existent_study in the database."
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_api.py
test_knee_point
assert
string_literal
35
import pathlib from pathlib import Path from unittest.mock import MagicMock, patch import optuna import pandas as pd import pytest from syftr import api from syftr.configuration import cfg from syftr.studies import StudyConfig MOCK_STUDY = MagicMock(spec=optuna.Study) MOCK_STUDY.study_name = "example-dr-docs" TRIALS...
"Not enough points in the Pareto front to find a knee point."
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_cardinality.py
test_splitter_cardinality
assert
numeric_literal
29
import math import typing as T from syftr.studies import ( FewShotRetriever, Hybrid, QueryDecomposition, Reranker, Retriever, SearchSpace, Splitter, TopK, ) MINIMAL_LLMS: T.List[str] = ["llmA", "llmB"] def _get_minimal_splitter() -> Splitter: return Splitter( chunk_min_exp...
4
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_cardinality.py
test_topk_cardinality
assert
numeric_literal
36
import math import typing as T from syftr.studies import ( FewShotRetriever, Hybrid, QueryDecomposition, Reranker, Retriever, SearchSpace, Splitter, TopK, ) MINIMAL_LLMS: T.List[str] = ["llmA", "llmB"] def _get_minimal_splitter() -> Splitter: return Splitter( chunk_min_exp...
1
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_cardinality.py
test_search_space_cardinality
assert
variable
102
import math import typing as T from syftr.studies import ( FewShotRetriever, Hybrid, QueryDecomposition, Reranker, Retriever, SearchSpace, Splitter, TopK, ) MINIMAL_LLMS: T.List[str] = ["llmA", "llmB"] def _get_minimal_splitter() -> Splitter: return Splitter( chunk_min_exp...
expected_rag_card
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_cardinality.py
test_search_space_cardinality
assert
variable
122
import math import typing as T from syftr.studies import ( FewShotRetriever, Hybrid, QueryDecomposition, Reranker, Retriever, SearchSpace, Splitter, TopK, ) MINIMAL_LLMS: T.List[str] = ["llmA", "llmB"] def _get_minimal_splitter() -> Splitter: return Splitter( chunk_min_exp...
expected_no_rag_card
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_cardinality.py
test_search_space_cardinality
assert
complex_expr
134
import math import typing as T from syftr.studies import ( FewShotRetriever, Hybrid, QueryDecomposition, Reranker, Retriever, SearchSpace, Splitter, TopK, ) MINIMAL_LLMS: T.List[str] = ["llmA", "llmB"] def _get_minimal_splitter() -> Splitter: return Splitter( chunk_min_exp...
expected_rag_card + expected_no_rag_card
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_cardinality.py
test_retiever_cardinality
assert
func_call
61
import math import typing as T from syftr.studies import ( FewShotRetriever, Hybrid, QueryDecomposition, Reranker, Retriever, SearchSpace, Splitter, TopK, ) MINIMAL_LLMS: T.List[str] = ["llmA", "llmB"] def _get_minimal_splitter() -> Splitter: return Splitter( chunk_min_exp...
r.top_k.get_cardinality() * len(r.methods) * len(r.query_decomposition_enabled) * r.hybrid.get_cardinality() * r.query_decomposition.get_cardinality() * r.fusion.get_cardinality()
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_flow.py
test_flow_name
assert
variable
18
import pytest from syftr.tuner.core import get_flow_name @pytest.mark.parametrize( "rag_mode, expected", [ ("no_rag", "Flow"), ("rag", "RAGFlow"), ("react_rag_agent", "ReActAgentFlow"), ("critique_rag_agent", "CritiqueAgentFlow"), ("sub_question_rag", "SubQuestionRAGFlo...
expected
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_report.py
test_get_exception_report
assert
variable
62
from syftr.helpers import get_exception_report def test_get_exception_report(): generation_exceptions = [] try: eval("x === 3") # SyntaxError except Exception as e: generation_exceptions.append(e) try: "2" + 2 # TypeError except Exception as e: generation_excepti...
exception_message
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_retry.py
test_custom_exception
assert
variable
11
import pytest from tenacity import retry, stop_after_attempt, wait_exponential def bad_function(): raise _TestException() def test_custom_exception(): with pytest.raises(_TestException) as exc_info: bad_function() assert type(exc_info.value) is
_TestException
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datarobot/syftr
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
train
train
tests/unit/test_retry.py
test_custom_exception
pytest.raises
variable
9
import pytest from tenacity import retry, stop_after_attempt, wait_exponential def bad_function(): raise _TestException() def test_custom_exception(): with pytest.raises(
_TestException)
8ee8c42b1c4fa4506d2678d844e8a40c552cef98
8
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/environment/driver/tests/test_dockerenv.py
test_run_container
assert
string_literal
57
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform import uuid import timeout_decorator from io import open from datmo.core.controller.environment.driver.dockerenv import DockerEnvironmentDriver from datmo.core.util.e...
""
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_snapshot.py
test_get_files
assert
string_literal
107
import os import tempfile import platform from io import open, TextIOWrapper from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import EnvironmentController from datmo.core.controller.task import TaskController from datmo.core....
"r"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_snapshot.py
test_get_files
assert
string_literal
117
import os import tempfile import platform from io import open, TextIOWrapper from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import EnvironmentController from datmo.core.controller.task import TaskController from datmo.core....
"a"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_task.py
test_get_files
assert
string_literal
100
import os import uuid import tempfile import platform from io import open, TextIOWrapper from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import EnvironmentController from datmo.core.controller.task import TaskController from...
"r"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_task.py
test_get_files
assert
string_literal
114
import os import uuid import tempfile import platform from io import open, TextIOWrapper from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import EnvironmentController from datmo.core.controller.task import TaskController from...
"a"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_snapshot.py
test_snapshot_entity_files
assert
string_literal
69
import os import tempfile import platform from io import open, TextIOWrapper from datmo.snapshot import create, ls, update, delete from datmo.config import Config from datmo.snapshot import Snapshot from datmo.task import run from datmo.core.entity.snapshot import Snapshot as CoreSnapshot from datmo.core.controller.pr...
"r"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_snapshot.py
test_task_entity_get_files
assert
string_literal
78
import os import tempfile import platform from io import open, TextIOWrapper from datmo.snapshot import create, ls, update, delete from datmo.config import Config from datmo.snapshot import Snapshot from datmo.task import run from datmo.core.entity.snapshot import Snapshot as CoreSnapshot from datmo.core.controller.pr...
"a"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_task.py
test_task_entity_files
assert
string_literal
67
import os import tempfile import platform import datetime from io import open, TextIOWrapper from datmo.task import run, ls from datmo.config import Config from datmo.task import Task from datmo.core.entity.task import Task as CoreTask from datmo.core.controller.project import ProjectController from datmo.core.util.ex...
"r"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_task.py
test_task_entity_get_files
assert
string_literal
73
import os import tempfile import platform import datetime from io import open, TextIOWrapper from datmo.task import run, ls from datmo.config import Config from datmo.task import Task from datmo.core.entity.task import Task as CoreTask from datmo.core.controller.project import ProjectController from datmo.core.util.ex...
"a"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_misc_functions.py
test_parse_path
assert
string_literal
51
import os import tempfile import platform import datetime from pytz import timezone from io import open from datmo.core.util.misc_functions import ( create_unique_hash, mutually_exclusive, is_project_dir, find_project_dir, grep, prettify_datetime, format_table, parse_cli_key_value, get_datmo_temp_path, par...
"new"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_config.py
test_config_singleton
assert
string_literal
25
import os import tempfile import platform from datmo.config import Config class TestConfigModule(): def setup_method(self): # provide mountable tmp directory for docker tempfile.tempdir = "/tmp" if not platform.system( ) == "Windows" else None test_datmo_dir = os.environ.get('TEST_...
'foo'
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_environment.py
test_environment_create
assert
string_literal
69
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import uuid import tempfile import shutil import platform from argparse import ArgumentError from datmo.cli.driver.helper import Helper from datmo.cli.command.environment import Environm...
"test"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/environment/tests/test_environment.py
test_create
assert
string_literal
79
import os import uuid import shutil import tempfile import platform import timeout_decorator from io import open from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import \ EnvironmentController from datmo.core.entity.envir...
"test"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_base.py
test_datmo_model
assert
string_literal
45
from __future__ import division from __future__ import unicode_literals import os import tempfile import platform from datmo.config import Config from datmo.core.controller.base import BaseController from datmo.core.controller.code.driver.file import FileCodeDriver from datmo.core.controller.file.driver.local import ...
"test"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_base.py
test_default_code_driver
assert
string_literal
34
from __future__ import division from __future__ import unicode_literals import os import tempfile import platform from datmo.config import Config from datmo.core.controller.base import BaseController from datmo.core.controller.code.driver.file import FileCodeDriver from datmo.core.controller.file.driver.local import ...
"file"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_project.py
test_init_reinit_success
assert
string_literal
48
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform import time import timeout_decorator from io import open from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.c...
"else"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_task.py
test_parse_logs_for_results
assert
string_literal
54
import os import uuid import tempfile import platform from io import open, TextIOWrapper from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import EnvironmentController from datmo.core.controller.task import TaskController from...
"0.94"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_task.py
test_parse_logs_for_results
assert
string_literal
55
import os import uuid import tempfile import platform from io import open, TextIOWrapper from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import EnvironmentController from datmo.core.controller.task import TaskController from...
"0.32"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_misc_functions.py
test_parse_path
assert
string_literal
47
import os import tempfile import platform import datetime from pytz import timezone from io import open from datmo.core.util.misc_functions import ( create_unique_hash, mutually_exclusive, is_project_dir, find_project_dir, grep, prettify_datetime, format_table, parse_cli_key_value, get_datmo_temp_path, par...
"test"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_base.py
test_default_file_driver
assert
string_literal
34
from __future__ import division from __future__ import unicode_literals import os import tempfile import platform from datmo.config import Config from datmo.core.controller.base import BaseController from datmo.core.controller.code.driver.file import FileCodeDriver from datmo.core.controller.file.driver.local import ...
"local"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_project.py
test_init_success
assert
string_literal
46
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform import time import timeout_decorator from io import open from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.c...
"test1"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_project.py
test_status_basic
assert
string_literal
49
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform import time import timeout_decorator from io import open from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.c...
"test3"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_project.py
test_status_snapshot_task
assert
string_literal
97
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform import time import timeout_decorator from io import open from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.c...
"test4"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_i18n.py
test_get_string
assert
string_literal
12
from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datmo.core.util.i18n import get class Testi18n(): def test_get_string(self): msg = get("info", "cli.general.str.test", "disco") assert msg ==
"disco"
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_code.py
test_init_no_id
assert
variable
16
from datmo.core.entity.code import Code class TestCode(): def setup_class(self): self.input_dict = { "model_id": "my_model", "driver_type": "git", "commit_id": "mycommit" } def test_init_no_id(self): code_entity = Code(self.input_dict) for k...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_environment.py
test_init_no_id
assert
variable
21
from datmo.core.entity.environment import Environment class TestEnvironment(): def setup_method(self): self.input_dict = { "model_id": "my_model", "driver_type": "docker", "definition_filename": "Dockerfile", "hardware_info": { "system": "test...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_file_collection.py
test_init_no_id
assert
variable
17
from datmo.core.entity.file_collection import FileCollection class TestFileCollection(): def setup_class(self): self.input_dict = { "model_id": "my_model", "driver_type": "docker", "filehash": "myhash", "path": "/path/to/file", } def test_init_no...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_model.py
test_init_no_id
assert
variable
12
from datmo.core.entity.model import Model class TestModel(): def setup_class(self): self.input_dict = {"name": "test"} def test_init_no_id(self): model_entity = Model(self.input_dict) for k, v in self.input_dict.items(): assert getattr(model_entity, k) ==
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_session.py
test_init_no_id
assert
variable
12
from datmo.core.entity.session import Session class TestSession(): def setup_class(self): self.input_dict = {"model_id": "my_model", "name": "test"} def test_init_no_id(self): session_entity = Session(self.input_dict) for k, v in self.input_dict.items(): assert getattr(se...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_snapshot.py
test_init_no_id
assert
variable
25
from datmo.core.entity.snapshot import Snapshot class TestSnapshot(): def setup_class(self): self.input_dict = { "model_id": "my_model", "session_id": "my_session", "message": "my message", "code_id": "code_id", "environment_id": "environment_id",...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_task.py
test_init_no_id
assert
variable
16
from datmo.core.entity.task import Task class TestTask(): def setup_class(self): self.input_dict = { "model_id": "my_model", "session_id": "my_session", "command": "python test.py", } def test_init_no_id(self): task_entity = Task(self.input_dict) ...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/entity/tests/test_user.py
test_init_no_id
assert
variable
12
from datmo.core.entity.user import User class TestUser(): def setup_class(self): self.input_dict = {"name": "test", "email": "test@test.com"} def test_init_no_id(self): user_entity = User(self.input_dict) for k, v in self.input_dict.items(): assert getattr(user_entity, k)...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_logger.py
test_datmo_logger_get_logfiles
assert
variable
26
import os import uuid import tempfile import platform from time import sleep from datmo.core.util.logger import DatmoLogger class TestLogger(): def setup_class(self): # provide mountable tmp directory for docker tempfile.tempdir = "/tmp" if not platform.system( ) == "Windows" else None ...
f
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_snapshot.py
test_snapshot_entity_instantiate
assert
variable
51
import os import tempfile import platform from io import open, TextIOWrapper from datmo.snapshot import create, ls, update, delete from datmo.config import Config from datmo.snapshot import Snapshot from datmo.task import run from datmo.core.entity.snapshot import Snapshot as CoreSnapshot from datmo.core.controller.pr...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_task.py
test_task_entity_instantiate
assert
variable
41
import os import tempfile import platform import datetime from io import open, TextIOWrapper from datmo.task import run, ls from datmo.config import Config from datmo.task import Task from datmo.core.entity.task import Task as CoreTask from datmo.core.controller.project import ProjectController from datmo.core.util.ex...
v
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_logger.py
test_get_logger_should_return_same_logger
assert
variable
25
import os import uuid import tempfile import platform from time import sleep from datmo.core.util.logger import DatmoLogger class TestLogger(): def setup_class(self): # provide mountable tmp directory for docker tempfile.tempdir = "/tmp" if not platform.system( ) == "Windows" else None ...
f2
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/tests/test_config.py
test_config_singleton
assert
variable
23
import os import tempfile import platform from datmo.config import Config class TestConfigModule(): def setup_method(self): # provide mountable tmp directory for docker tempfile.tempdir = "/tmp" if not platform.system( ) == "Windows" else None test_datmo_dir = os.environ.get('TEST_...
c2
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_snapshot_private.py
test_code_setup_with_code_id
assert
variable
53
import os import tempfile import platform from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.snapshot import SnapshotController from datmo.core.util.exceptions import CommitDoesNotExist class TestSnapshotController(): def setup_method(self): ...
val
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/code/driver/tests/test_file.py
test_tracked_files
assert
variable
66
from __future__ import division from __future__ import unicode_literals import os import time import shutil import tempfile import platform from io import open from datmo.core.controller.code.driver.file import FileCodeDriver from datmo.core.util.misc_functions import list_all_filepaths from datmo.core.util.exception...
item
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/environment/driver/tests/test_dockerenv.py
test_get_image
assert
variable
56
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform import uuid import timeout_decorator from io import open from datmo.core.controller.environment.driver.dockerenv import DockerEnvironmentDriver from datmo.core.util.e...
tags
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_json_store.py
test_get_string
assert
variable
33
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import tempfile import platform import os from io import open from datmo.core.util.json_store import JSONStore from datmo.core.util.exceptions import FileIOError class TestJSONStore(): def setup_class(se...
value
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_project.py
test_version
assert
variable
34
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform from datmo.config import Config from datmo import __version__ from datmo.cli.driver.helper import Helper from datmo.cli.command.project import ProjectCommand from dat...
result
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_snapshot.py
test_snapshot_ls
assert
variable
99
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import time import tempfile import platform from io import open from argparse import ArgumentError from datmo.config import Config from datmo.cli.driver.helper import Helper from datmo.c...
result
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/driver/tests/test_helper.py
test_input
assert
variable
45
from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future import standard_library standard_library.install_aliases() from builtins import input import os import sys import tempfile import platform from datmo.cli.driver.helper import Helper from datmo.cor...
result
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_misc_functions.py
test_list_all_filepaths
assert
variable
38
import os import tempfile import platform import datetime from pytz import timezone from io import open from datmo.core.util.misc_functions import ( create_unique_hash, mutually_exclusive, is_project_dir, find_project_dir, grep, prettify_datetime, format_table, parse_cli_key_value, get_datmo_temp_path, par...
result
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_environment.py
test_environment_create
assert
variable
107
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import uuid import tempfile import shutil import platform from argparse import ArgumentError from datmo.cli.driver.helper import Helper from datmo.cli.command.environment import Environm...
result_2
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_environment.py
test_environment_update
assert
variable
67
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import uuid import tempfile import shutil import platform from argparse import ArgumentError from datmo.cli.driver.helper import Helper from datmo.cli.command.environment import Environm...
new_name
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/code/driver/tests/test_git.py
test_checkout_ref
assert
variable
59
from __future__ import division from __future__ import unicode_literals import os import time import shutil import tempfile import platform from io import open from datmo.core.controller.code.driver.git import (GitCodeDriver, GitHostDriver) from datmo.core.util.excep...
ref_id_2
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/code/tests/test_code.py
test_create
assert
variable
58
import os import tempfile import platform from io import open from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.code.code import CodeController from datmo.core.util.exceptions import (EntityNotFound, CommitFailed, ...
code_obj
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/environment/tests/test_environment.py
test_update
assert
variable
79
import os import uuid import shutil import tempfile import platform import timeout_decorator from io import open from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import \ EnvironmentController from datmo.core.entity.envir...
new_name
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/file/driver/tests/test_local.py
test_get_dirhash
assert
variable
45
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import shutil import tempfile import platform from io import TextIOWrapper from datmo.core.util.misc_functions import get_datmo_temp_path from datmo.core.controller.file.driver.local import LocalFil...
result_2
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_session.py
test_update
assert
variable
41
import os import shutil import tempfile import platform from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.session import SessionController from datmo.core.util.exceptions import InvalidArgumentType, ProjectNotInitialized, InvalidProjectPath, SessionD...
new_name
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/util/tests/test_misc_functions.py
test_parse_path
assert
variable
38
import os import tempfile import platform import datetime from pytz import timezone from io import open from datmo.core.util.misc_functions import ( create_unique_hash, mutually_exclusive, is_project_dir, find_project_dir, grep, prettify_datetime, format_table, parse_cli_key_value, get_datmo_temp_path, par...
src_path
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_project.py
test_init_create_success_no_environment
assert
variable
50
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform from datmo.config import Config from datmo import __version__ from datmo.cli.driver.helper import Helper from datmo.cli.command.project import ProjectCommand from dat...
test_name
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/storage/local/tests/test_dal_session.py
test_query_sessions_current
assert
variable
51
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform from datetime import datetime from datmo.core.storage.driver.blitzdb_dal_driver import BlitzDBDALDriver from datmo.core.storage.local.dal import LocalDAL from datmo.c...
session_1
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/storage/local/tests/test_dal_session.py
test_query_sessions_current
assert
variable
53
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import platform from datetime import datetime from datmo.core.storage.driver.blitzdb_dal_driver import BlitzDBDALDriver from datmo.core.storage.local.dal import LocalDAL from datmo.c...
session_2
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_run.py
test_run
assert
variable
110
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import time import tempfile import platform from argparse import ArgumentError from io import open from datmo.config import Config from datmo.cli.driver.helper import Helper from datmo....
test_ports
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_snapshot.py
test_snapshot_create
assert
variable
128
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import time import tempfile import platform from io import open from argparse import ArgumentError from datmo.config import Config from datmo.cli.driver.helper import Helper from datmo.c...
test_label
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_snapshot.py
test_snapshot_create
assert
variable
155
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import time import tempfile import platform from io import open from argparse import ArgumentError from datmo.config import Config from datmo.cli.driver.helper import Helper from datmo.c...
test_paths
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/command/tests/test_task.py
test_task_run
assert
variable
86
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import glob import time import tempfile import platform from argparse import ArgumentError from io import open from datmo.config import Config from datmo.cli.driver.helper import Helper from datmo....
test_ports
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/driver/tests/test_helper.py
test_prompt
assert
variable
45
from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future import standard_library standard_library.install_aliases() from builtins import input import os import sys import tempfile import platform from datmo.cli.driver.helper import Helper from datmo.cor...
test_input
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/tests/test_task.py
test_get_files
assert
variable
101
import os import uuid import tempfile import platform from io import open, TextIOWrapper from datmo.config import Config from datmo.core.controller.project import ProjectController from datmo.core.controller.environment.environment import EnvironmentController from datmo.core.controller.task import TaskController from...
file_names
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/cli/driver/tests/test_helper.py
test_get_command_class
assert
variable
48
from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future import standard_library standard_library.install_aliases() from builtins import input import os import sys import tempfile import platform from datmo.cli.driver.helper import Helper from datmo.cor...
TaskCommand
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/code/driver/tests/test_file.py
test_current_ref
assert
variable
58
from __future__ import division from __future__ import unicode_literals import os import time import shutil import tempfile import platform from io import open from datmo.core.controller.code.driver.file import FileCodeDriver from datmo.core.util.misc_functions import list_all_filepaths from datmo.core.util.exception...
commit_hash
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor
datmo/datmo
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
train
train
datmo/core/controller/code/driver/tests/test_git.py
test_create_ref
assert
variable
52
from __future__ import division from __future__ import unicode_literals import os import time import shutil import tempfile import platform from io import open from datmo.core.controller.code.driver.git import (GitCodeDriver, GitHostDriver) from datmo.core.util.excep...
commit_hash
fbb20e3ef5b6fc085c4c59a3aea6404cfb6959cb
88
v2_extractor_at_anchor