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
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/profiling/test_profiles.py
test_fraction_of_true
assert
numeric_literal
17
import numpy as np from popmon.analysis.profiling.profiles import profile_fraction_of_true def test_fraction_of_true(): res = profile_fraction_of_true([], []) assert np.isnan(res) res = profile_fraction_of_true(["a"], [10]) assert np.isnan(res) res = profile_fraction_of_true(["a", "b", "c"], [10, ...
0.5
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/profiling/test_profiles.py
test_fraction_of_true
assert
numeric_literal
22
import numpy as np from popmon.analysis.profiling.profiles import profile_fraction_of_true def test_fraction_of_true(): res = profile_fraction_of_true([], []) assert np.isnan(res) res = profile_fraction_of_true(["a"], [10]) assert np.isnan(res) res = profile_fraction_of_true(["a", "b", "c"], [10, ...
1.0
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/profiling/test_profiles.py
test_fraction_of_true
assert
numeric_literal
26
import numpy as np from popmon.analysis.profiling.profiles import profile_fraction_of_true def test_fraction_of_true(): res = profile_fraction_of_true([], []) assert np.isnan(res) res = profile_fraction_of_true(["a"], [10]) assert np.isnan(res) res = profile_fraction_of_true(["a", "b", "c"], [10, ...
0.0
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_functions.py
test_chi_squared1
assert_*
numeric_literal
78
import numpy as np import pandas as pd import pytest from popmon import resources from popmon.analysis.apply_func import ApplyFunc from popmon.analysis.comparison import ( ExpandingNormHistComparer, ReferenceNormHistComparer, RollingNormHistComparer, ) from popmon.analysis.functions import ( expand, ...
4.25)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_functions.py
test_normalized_hist_mean_cov
assert_*
variable
85
import numpy as np import pandas as pd import pytest from popmon import resources from popmon.analysis.apply_func import ApplyFunc from popmon.analysis.comparison import ( ExpandingNormHistComparer, ReferenceNormHistComparer, RollingNormHistComparer, ) from popmon.analysis.functions import ( expand, ...
check)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_functions.py
test_normalized_hist_mean_cov
assert
variable
54
import numpy as np import pandas as pd import pytest from popmon import resources from popmon.analysis.apply_func import ApplyFunc from popmon.analysis.comparison import ( ExpandingNormHistComparer, ReferenceNormHistComparer, RollingNormHistComparer, ) from popmon.analysis.functions import ( expand, ...
datastore
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_functions.py
test_chi_squared1
assert_*
numeric_literal
86
import numpy as np import pandas as pd import pytest from popmon import resources from popmon.analysis.apply_func import ApplyFunc from popmon.analysis.comparison import ( ExpandingNormHistComparer, ReferenceNormHistComparer, RollingNormHistComparer, ) from popmon.analysis.functions import ( expand, ...
0.849999999999999)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_functions.py
test_chi_squared2
assert_*
numeric_literal
77
import numpy as np import pandas as pd import pytest from popmon import resources from popmon.analysis.apply_func import ApplyFunc from popmon.analysis.comparison import ( ExpandingNormHistComparer, ReferenceNormHistComparer, RollingNormHistComparer, ) from popmon.analysis.functions import ( expand, ...
9.891821919006366)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_functions.py
test_chi_squared2
assert_*
numeric_literal
79
import numpy as np import pandas as pd import pytest from popmon import resources from popmon.analysis.apply_func import ApplyFunc from popmon.analysis.comparison import ( ExpandingNormHistComparer, ReferenceNormHistComparer, RollingNormHistComparer, ) from popmon.analysis.functions import ( expand, ...
3.217532467532462)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_histogram
assert
numeric_literal
76
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
5
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_histogram
assert
numeric_literal
77
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
1
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_histogram
assert
numeric_literal
81
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
2
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_datatype
assert
variable
76
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
str
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_prepare_2dgrid
assert_*
collection
95
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
[])
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_contentType
assert
string_literal
77
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
"Bin"
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_consistent_numpy_entries
assert_*
variable
116
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
labels)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_consistent_numpy_entries
assert_*
variable
120
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
centers)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_consistent_numpy_1dhists
assert_*
variable
100
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
entries1)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_consistent_numpy_1dhists
assert_*
variable
102
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
entries2)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_consistent_numpy_entries
assert_*
variable
114
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
entries0)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_consistent_numpy_1dhists
assert_*
variable
101
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
bin_edges)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_hist_numpy.py
test_get_consistent_numpy_2dgrids
pytest.raises
variable
100
import histogrammar as hg import numpy as np import pandas as pd import pytest from popmon.analysis.hist_numpy import ( assert_similar_hists, check_similar_hists, get_2dgrid, get_consistent_numpy_1dhists, get_consistent_numpy_2dgrids, get_consistent_numpy_entries, get_contentType, prepa...
ValueError)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_merge_statistics.py
test_merge_statistics
assert_*
variable
45
import pandas as pd from popmon.analysis.merge_statistics import MergeStatistics def test_merge_statistics(): df1 = pd.DataFrame( { "A": ["A0", "A1", "A2", "A3"], "B": ["B0", "B1", "B2", "B3"], "C": ["C0", "C1", "C2", "C3"], "D": ["D0", "D1", "D2", "D3"], ...
out)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_merge_statistics.py
test_merge_statistics
assert_*
variable
47
import pandas as pd from popmon.analysis.merge_statistics import MergeStatistics def test_merge_statistics(): df1 = pd.DataFrame( { "A": ["A0", "A1", "A2", "A3"], "B": ["B0", "B1", "B2", "B3"], "C": ["C0", "C1", "C2", "C3"], "D": ["D0", "D1", "D2", "D3"], ...
df2)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/analysis/test_merge_statistics.py
test_merge_statistics
assert_*
variable
48
import pandas as pd from popmon.analysis.merge_statistics import MergeStatistics def test_merge_statistics(): df1 = pd.DataFrame( { "A": ["A0", "A1", "A2", "A3"], "B": ["B0", "B1", "B2", "B3"], "C": ["C0", "C1", "C2", "C3"], "D": ["D0", "D1", "D2", "D3"], ...
df1)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_module.py
test_popmon_module
assert_*
numeric_literal
12
import numpy as np import pytest from popmon.base import Module def test_popmon_module(test_module): datastore = {"x": np.arange(10)} datastore = test_module.transform(datastore) assert "x" in datastore # check if key 'x' is still in the datastore np.testing.assert_almost_equal(np.mean(datastore["s...
2.0)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_module.py
test_popmon_module
assert_*
numeric_literal
13
import numpy as np import pytest from popmon.base import Module def test_popmon_module(test_module): datastore = {"x": np.arange(10)} datastore = test_module.transform(datastore) assert "x" in datastore # check if key 'x' is still in the datastore np.testing.assert_almost_equal(np.mean(datastore["sc...
0.3)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_module.py
test_popmon_module
assert
variable
11
import numpy as np import pytest from popmon.base import Module def test_popmon_module(test_module): datastore = {"x": np.arange(10)} datastore = test_module.transform(datastore) assert "x" in
datastore
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_module.py
test_popmon_module_repr
assert
string_literal
8
import numpy as np import pytest from popmon.base import Module def test_popmon_module_repr(test_module): assert str(test_module) ==
"Scaler(input_key='x', output_key='scaled_x')"
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_pipeline.py
test_popmon_pipeline
assert_*
variable
15
import logging import numpy as np import pytest from popmon.base import Module, Pipeline def test_popmon_pipeline(test_pipeline): datastore = {"x": np.array([7, 2, 7, 9, 6]), "weights": np.array([1, 1, 2, 1, 2])} expected_result = np.sum( np.power(np.log(datastore["x"]), 2) * datastore["weights"] ...
expected_result)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_pipeline.py
test_pipeline_repr
assert
string_literal
10
import logging import numpy as np import pytest from popmon.base import Module, Pipeline def test_pipeline_repr(test_pipeline): assert
"""Pipeline: [\n\tPipeline: [\n\t\tLogTransformer(input_key='x', output_key='log_x')\n\t\tPowerTransformer(input_key='log_x', output_key='log_pow_x')\n\t]\n\tSumNormalizer(input_key='weights', output_key='norm_weights')\n\tWeightedSum(input_key='log_pow_x', weight_key='norm_weights', output_key='res')\n]"""
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registery
assert
numeric_literal
23
import pytest from popmon.base.registry import Registry def test_registery(): MyRegistry = Registry() @MyRegistry.register(key="example", description="hello world") def example_function(my_input): return 4 + my_input @MyRegistry.register( key=["coefficient", "p_value"], descr...
5
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registry_properties
assert
collection
13
import pytest from popmon.base.registry import Registry def test_registry_properties(): PropsRegistry = Registry() @PropsRegistry.register(key="hello", description="world", dim=3, htype="all") def my_func(): return 0 assert PropsRegistry.get_keys_by_dim_and_htype(dim=1, htype=None) ==
[]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registry_properties
assert
collection
14
import pytest from popmon.base.registry import Registry def test_registry_properties(): PropsRegistry = Registry() @PropsRegistry.register(key="hello", description="world", dim=3, htype="all") def my_func(): return 0 assert PropsRegistry.get_keys_by_dim_and_htype(dim=1, htype=None) == [] ...
["hello"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registry_run
assert
collection
15
import pytest from popmon.base.registry import Registry def test_registry_run(): RunRegistry = Registry() @RunRegistry.register(key="key", description="run me", dim=1, htype="num") def func(arg1, arg2): return abs(arg1 - arg2) args = [1, 4] result = RunRegistry.run(args=args, dim=1, htyp...
{"key": 3}
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registry_duplicate
pytest.raises
variable
13
import pytest from popmon.base.registry import Registry def test_registry_duplicate(): DuplicatedRegistry = Registry() @DuplicatedRegistry.register(key="test", description="me") def func1(): pass with pytest.raises(
ValueError)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registery
assert
string_literal
27
import pytest from popmon.base.registry import Registry def test_registery(): MyRegistry = Registry() @MyRegistry.register(key="example", description="hello world") def example_function(my_input): return 4 + my_input @MyRegistry.register( key=["coefficient", "p_value"], descr...
"example_function"
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registery
assert
collection
29
import pytest from popmon.base.registry import Registry def test_registery(): MyRegistry = Registry() @MyRegistry.register(key="example", description="hello world") def example_function(my_input): return 4 + my_input @MyRegistry.register( key=["coefficient", "p_value"], descr...
["example", "coefficient", "p_value"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registry_duplicate
assert
string_literal
30
import pytest from popmon.base.registry import Registry def test_registry_duplicate(): DuplicatedRegistry = Registry() @DuplicatedRegistry.register(key="test", description="me") def func1(): pass with pytest.raises(ValueError) as e: @DuplicatedRegistry.register(key="another", descri...
"Key 'test' has already been registered."
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registry_duplicate
assert
string_literal
19
import pytest from popmon.base.registry import Registry def test_registry_duplicate(): DuplicatedRegistry = Registry() @DuplicatedRegistry.register(key="test", description="me") def func1(): pass with pytest.raises(ValueError) as e: @DuplicatedRegistry.register(key="another", descri...
"A function with the name 'func1' has already been registered."
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/base/test_registry.py
test_registery
assert
collection
30
import pytest from popmon.base.registry import Registry def test_registery(): MyRegistry = Registry() @MyRegistry.register(key="example", description="hello world") def example_function(my_input): return 4 + my_input @MyRegistry.register( key=["coefficient", "p_value"], descr...
{ "example": "hello world", "coefficient": "phi_custom coefficient", "p_value": "p-value for the phi_custom coeff.", }
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_hist_splitter.py
test_hist_splitter_filter
assert
bool_literal
51
import pandas as pd import pytest from popmon import resources from popmon.analysis.hist_numpy import assert_similar_hists, check_similar_hists from popmon.base import Pipeline from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader @pytest.mark.filterwarnings("ignore:Input histograms have...
False
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_hist_splitter.py
test_hist_splitter
assert_*
variable
51
import pandas as pd import pytest from popmon import resources from popmon.analysis.hist_numpy import assert_similar_hists, check_similar_hists from popmon.base import Pipeline from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader def test_hist_splitter(): hist_list = [ "date...
hlist)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_hist_splitter.py
test_hist_splitter
assert
func_call
41
import pandas as pd import pytest from popmon import resources from popmon.analysis.hist_numpy import assert_similar_hists, check_similar_hists from popmon.base import Pipeline from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader def test_hist_splitter(): hist_list = [ "date...
len(features)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_hist_splitter.py
test_hist_splitter
assert
complex_expr
43
import pandas as pd import pytest from popmon import resources from popmon.analysis.hist_numpy import assert_similar_hists, check_similar_hists from popmon.base import Pipeline from popmon.hist.hist_splitter import HistSplitter from popmon.io import JsonReader def test_hist_splitter(): hist_list = [ "date...
datastore["output_hist"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_histogrammar
assert
numeric_literal
45
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
5
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_histogrammar
assert
numeric_literal
46
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
1
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_histogrammar
assert
numeric_literal
50
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
2
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_datatype
assert
variable
48
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
str
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_split_hist_along_first_dimension
assert
string_literal
134
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
"Count"
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_project_split2dhist_on_axis
assert
variable
102
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
splitA1
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_project_split2dhist_on_axis
assert
variable
103
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
splitA2
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_project_split2dhist_on_axis
assert
variable
121
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
splitC1
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_project_split2dhist_on_axis
assert
variable
122
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
splitC2
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_split_hist_along_first_dimension
assert_*
variable
75
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
check3a)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_split_hist_along_first_dimension
assert_*
variable
76
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
check3b)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_project_split2dhist_on_axis
assert_*
variable
112
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
bin_edges1)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/hist/test_histogram.py
test_sum_over_x
assert_*
variable
66
import histogrammar as hg import numpy as np import pandas as pd from popmon.hist.hist_utils import ( is_numeric, is_timestamp, project_on_x, project_split2dhist_on_axis, sparse_bin_centers_x, split_hist_along_first_dimension, sum_entries, sum_over_x, ) def get_test_data(): df = pd...
bin_edges3)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_file_reader.py
test_file_reader_json
assert
numeric_literal
16
import json from popmon import resources from popmon.io import FileReader def test_file_reader_json(): fr = FileReader( file_path=resources.data("example.json"), store_key="example", apply_func=json.loads, ) datastore = fr.transform(datastore={}) assert datastore["example"]["b...
3
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_file_reader.py
test_file_reader_json
assert
numeric_literal
17
import json from popmon import resources from popmon.io import FileReader def test_file_reader_json(): fr = FileReader( file_path=resources.data("example.json"), store_key="example", apply_func=json.loads, ) datastore = fr.transform(datastore={}) assert datastore["example"]["b...
0
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_file_writer.py
test_file_writer_df
assert
variable
26
import copy import json import pandas as pd import pytest from popmon.io import FileWriter DATA = {"name": ["Name"], "surname": ["Surname"]} def get_ready_ds(): return copy.deepcopy({"my_data": DATA}) def to_json(data, **kwargs): return json.dumps(data, **kwargs) def to_pandas(data): return pd.DataFra...
DATA
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_file_writer.py
test_file_writer_not_a_func
pytest.raises
variable
23
import copy import json import pandas as pd import pytest from popmon.io import FileWriter DATA = {"name": ["Name"], "surname": ["Surname"]} def get_ready_ds(): return copy.deepcopy({"my_data": DATA}) def to_json(data, **kwargs): return json.dumps(data, **kwargs) def to_pandas(data): return pd.DataFra...
TypeError)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_file_writer.py
test_file_writer_json
assert
func_call
24
import copy import json import pandas as pd import pytest from popmon.io import FileWriter DATA = {"name": ["Name"], "surname": ["Surname"]} def get_ready_ds(): return copy.deepcopy({"my_data": DATA}) def to_json(data, **kwargs): return json.dumps(data, **kwargs) def to_pandas(data): return pd.DataFra...
to_json(DATA)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_file_writer.py
test_file_writer_json_with_kwargument
assert
func_call
24
import copy import json import pandas as pd import pytest from popmon.io import FileWriter DATA = {"name": ["Name"], "surname": ["Surname"]} def get_ready_ds(): return copy.deepcopy({"my_data": DATA}) def to_json(data, **kwargs): return json.dumps(data, **kwargs) def to_pandas(data): return pd.DataFra...
to_json(DATA, indent=4)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_file_writer.py
test_file_writer_df
assert
func_call
27
import copy import json import pandas as pd import pytest from popmon.io import FileWriter DATA = {"name": ["Name"], "surname": ["Surname"]} def get_ready_ds(): return copy.deepcopy({"my_data": DATA}) def to_json(data, **kwargs): return json.dumps(data, **kwargs) def to_pandas(data): return pd.DataFra...
to_pandas(DATA).to_dict()
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_json_reader.py
test_json_reader
assert
numeric_literal
10
from popmon import resources from popmon.io import JsonReader def test_json_reader(): jr = JsonReader(file_path=resources.data("example.json"), store_key="example") datastore = jr.transform(datastore={}) assert datastore["example"]["boolean"] assert len(datastore["example"]["array"]) ==
3
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/io/test_json_reader.py
test_json_reader
assert
numeric_literal
11
from popmon import resources from popmon.io import JsonReader def test_json_reader(): jr = JsonReader(file_path=resources.data("example.json"), store_key="example") datastore = jr.transform(datastore={}) assert datastore["example"]["boolean"] assert len(datastore["example"]["array"]) == 3 assert ...
0
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_metrics.py
test_hists_stability_metrics
assert
func_call
38
import pandas as pd import pytest from popmon import resources from popmon.base import Pipeline from popmon.config import Settings from popmon.io import JsonReader from popmon.pipeline.metrics import df_stability_metrics, stability_metrics def test_hists_stability_metrics(): settings = Settings(reference_type="ro...
list(ds.keys())
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_report.py
test_df_stability_report_self
assert
complex_expr
33
import pandas as pd import pytest from popmon import resources from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.filling import get_bin_specs from popmon.io import JsonReader from popmon.pipeline.report import df_stability_report, stability_report def test_df_stability_report_self()...
bin_specs["date:eyeColor"][0]["origin"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_report.py
test_df_stability_report_self
assert
complex_expr
35
import pandas as pd import pytest from popmon import resources from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.filling import get_bin_specs from popmon.io import JsonReader from popmon.pipeline.report import df_stability_report, stability_report def test_df_stability_report_self()...
bin_specs["date:latitude"][0]["origin"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_report.py
test_df_stability_report_self
assert
complex_expr
32
import pandas as pd import pytest from popmon import resources from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.filling import get_bin_specs from popmon.io import JsonReader from popmon.pipeline.report import df_stability_report, stability_report def test_df_stability_report_self()...
bin_specs["date:eyeColor"][0]["binWidth"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_report.py
test_df_stability_report_self
assert
complex_expr
34
import pandas as pd import pytest from popmon import resources from popmon.base import Pipeline from popmon.config import Settings from popmon.hist.filling import get_bin_specs from popmon.io import JsonReader from popmon.pipeline.report import df_stability_report, stability_report def test_df_stability_report_self()...
bin_specs["date:latitude"][0]["binWidth"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_int
assert
numeric_literal
12
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_int(test_dataframe_pandas): reference, df = split_dataset(test_dataframe_pandas, split=3, time_axis="date") assert reference.shape[0] ==
3
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_condition
assert
numeric_literal
17
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_condition(test_dataframe_pandas): reference, df = split_dataset( test_dataframe_pandas, split=test_dataframe_pandas.date < da...
51
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_int
assert
numeric_literal
13
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_int(test_dataframe_pandas): reference, df = split_dataset(test_dataframe_pandas, split=3, time_axis="date") assert reference.shape[0] == 3 ...
997
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_float
assert
numeric_literal
12
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_float(test_dataframe_pandas): reference, df = split_dataset(test_dataframe_pandas, split=0.45, time_axis="date") assert reference.shape[0] ==
450
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_float
assert
numeric_literal
13
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_float(test_dataframe_pandas): reference, df = split_dataset(test_dataframe_pandas, split=0.45, time_axis="date") assert reference.shape[0] == 45...
550
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_float_round
assert
numeric_literal
12
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_float_round(test_dataframe_pandas): reference, df = split_dataset(test_dataframe_pandas, split=0.8888, time_axis="date") assert reference.shape...
888
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_float_round
assert
numeric_literal
13
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_float_round(test_dataframe_pandas): reference, df = split_dataset(test_dataframe_pandas, split=0.8888, time_axis="date") assert reference.shape[...
112
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_condition
assert
numeric_literal
18
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_condition(test_dataframe_pandas): reference, df = split_dataset( test_dataframe_pandas, split=test_dataframe_pandas.date < da...
949
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_int_underflow
pytest.raises
variable
10
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_int_underflow(test_dataframe_pandas): with pytest.raises(
ValueError)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/pipeline/test_split_dataset.py
test_split_dataset_pandas_int
assert
collection
14
from datetime import datetime, timedelta import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def test_split_dataset_pandas_int(test_dataframe_pandas): reference, df = split_dataset(test_dataframe_pandas, split=3, time_axis="date") assert reference.shape[0] == 3 a...
["date", "f1", "f2"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_spark.py
test_spark_make_histograms
assert
collection
84
from copy import deepcopy from pathlib import Path import pandas as pd import pytest from popmon.hist.filling import make_histograms from popmon.pipeline.metrics import df_stability_metrics def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" ...
(v1, v2)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_spark.py
test_spark_stability_metrics
assert
func_call
57
from copy import deepcopy from pathlib import Path import pandas as pd import pytest from popmon.hist.filling import make_histograms from popmon.pipeline.metrics import df_stability_metrics def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" ...
list(ds.keys())
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_int
assert
numeric_literal
37
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
3
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_condition
assert
numeric_literal
44
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
51
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_int
assert
numeric_literal
38
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
997
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_float
assert
numeric_literal
37
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
450
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_float
assert
numeric_literal
38
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
550
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_float_round
assert
numeric_literal
37
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
888
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_float_round
assert
numeric_literal
38
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
112
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_condition
assert
numeric_literal
45
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
949
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_int_underflow
pytest.raises
variable
35
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
ValueError)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/spark/test_split_dataset_spark.py
test_split_dataset_spark_int
assert
collection
39
from datetime import datetime, timedelta from pathlib import Path import pandas as pd import pytest from popmon.pipeline.dataset_splitter import split_dataset def spark_context(): if not spark_found: return None current_path = Path(__file__).parent scala = "2.12" if int(pyspark_version[0]) >= 3...
["date", "f1", "f2"]
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_mean_shapes
assert
numeric_literal
23
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
0
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_quantiles_shapes
assert
numeric_literal
27
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
1
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_probability_distribution_mean_covariance
assert_*
numeric_literal
65
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
1)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_mean_shapes
assert
collection
37
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
(3, 6)
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_std_shapes
assert_*
func_call
28
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
std(a))
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor
ing-bank/popmon
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
train
train
tests/popmon/stats/test_numpy.py
test_mean_shapes
assert_*
func_call
28
import itertools import numpy as np from scipy import linalg, stats from popmon.stats.numpy import ( mean, probability_distribution_mean_covariance, quantile, std, ) def get_data(): np.random.seed(5) a = np.random.randint(0, 10, size=(3, 4, 5, 6)) w = np.random.randint(0, 10, size=(3, 4, ...
mean(a))
d687d10255eb1c86f49a3dd93ef9fd853c4c4a6f
18
v2_extractor_at_anchor