idx
int64
2
7.85k
idx_lca
int64
0
223
offset
int64
165
54.4k
repo
stringclasses
54 values
commit_hash
stringclasses
100 values
target_file
stringclasses
118 values
line_type_lca
stringclasses
6 values
ground_truth
stringlengths
1
40
in_completions
bool
1 class
completion_type
stringclasses
6 values
non_dunder_count_intellij
int64
1
127
non_dunder_count_jedi
int64
1
128
start_with_
bool
1 class
first_occurrence
bool
2 classes
intellij_completions
listlengths
1
149
jedi_completions
listlengths
3
148
prefix
stringlengths
165
54.4k
intellij_completions_filtered
listlengths
1
123
prefix_truncated
stringlengths
165
1.92k
__index_level_0__
int64
1
5.53k
7,660
216
3,685
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_df
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
( self.ref_pd_df_by_series_max_rows, self.data.build(), ) class TestDataFrame(DataWithAssets): def test_add_data_frame_with_none(self) -> None: self.data.add_data_frame(None) self.assertEqual( {"data": {}}, self.data.build(), ) d...
5,394
7,668
216
4,160
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
97
101
false
false
[ "data", "ref_pd_series", "in_pd_df_by_series", "test_add_data_frame_with_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "ref_pd_series", "in_pd_df_by_series", "test_add_data_frame_with_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
self.data.build(), ) def test_add_data_frame_with_df(self) -> None: df = self.in_pd_df_by_series_with_duplicated_popularity self.data.add_data_frame(df) self.assertEqual( self.ref_pd_df_by_series_with_duplicated_popularity, self.data.build(), ...
5,402
7,669
216
4,165
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_data_frame
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
self.data.build(), ) def test_add_data_frame_with_df(self) -> None: df = self.in_pd_df_by_series_with_duplicated_popularity self.data.add_data_frame(df) self.assertEqual( self.ref_pd_df_by_series_with_duplicated_popularity, self.data.build(), ) ...
5,403
7,672
216
4,355
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
97
101
false
false
[ "data", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
self.assertEqual( self.ref_pd_df_by_series_with_duplicated_popularity, self.data.build(), ) def test_add_data_frame_with_df_contains_na(self) -> None: df = self.in_pd_df_by_series_with_nan self.data.add_data_frame(df) self.assertEqual( self.r...
5,406
7,673
216
4,360
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_data_frame
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
self.assertEqual( self.ref_pd_df_by_series_with_duplicated_popularity, self.data.build(), ) def test_add_data_frame_with_df_contains_na(self) -> None: df = self.in_pd_df_by_series_with_nan self.data.add_data_frame(df) self.assertEqual( self.ref_pd...
5,407
7,674
216
4,380
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
in_pd_series_dimension
true
statement
97
101
false
false
[ "data", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "test_add_data_frame_with_series_contains_na", "test_add_data_frame_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", ...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "test_add_data_frame_with_series_contains_na", "test_add_data_frame_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", ...
self.ref_pd_df_by_series_with_duplicated_popularity, self.data.build(), ) def test_add_data_frame_with_df_contains_na(self) -> None: df = self.in_pd_df_by_series_with_nan self.data.add_data_frame(df) self.assertEqual( self.ref_pd_df_by_series_with_n...
5,408
7,675
216
4,417
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
97
101
false
false
[ "data", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
th_duplicated_popularity, self.data.build(), ) def test_add_data_frame_with_df_contains_na(self) -> None: df = self.in_pd_df_by_series_with_nan self.data.add_data_frame(df) self.assertEqual( self.ref_pd_df_by_series_with_nan, self.data.build(), ...
5,409
7,676
216
4,422
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_data_frame
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
plicated_popularity, self.data.build(), ) def test_add_data_frame_with_df_contains_na(self) -> None: df = self.in_pd_df_by_series_with_nan self.data.add_data_frame(df) self.assertEqual( self.ref_pd_df_by_series_with_nan, self.data.build(), ...
5,410
7,677
216
4,442
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
in_pd_series_measure
true
statement
97
101
false
false
[ "data", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "in_pd_series_dimension", "test_add_data_frame_with_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_p...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "in_pd_series_dimension", "test_add_data_frame_with_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_p...
self.data.build(), ) def test_add_data_frame_with_df_contains_na(self) -> None: df = self.in_pd_df_by_series_with_nan self.data.add_data_frame(df) self.assertEqual( self.ref_pd_df_by_series_with_nan, self.data.build(), ) class TestDfWit...
5,411
7,681
216
4,644
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
97
101
false
false
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
assertEqual( self.ref_pd_df_by_series_with_nan, self.data.build(), ) class TestDfWithSeries(DataWithAssets): def test_add_df_with_empty_series(self) -> None: self.data.add_df(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ...
5,415
7,682
216
4,649
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_data_frame
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
tEqual( self.ref_pd_df_by_series_with_nan, self.data.build(), ) class TestDfWithSeries(DataWithAssets): def test_add_df_with_empty_series(self) -> None: self.data.add_df(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ...
5,416
7,683
216
4,669
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
in_pd_series_dimension_with_nan
true
statement
97
101
false
false
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", ...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", ...
self.ref_pd_df_by_series_with_nan, self.data.build(), ) class TestDfWithSeries(DataWithAssets): def test_add_df_with_empty_series(self) -> None: self.data.add_df(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ) def test_add_...
5,417
7,684
216
4,715
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
97
101
false
false
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "test_add_data_frame_with_empty_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_ser...
self.data.build(), ) class TestDfWithSeries(DataWithAssets): def test_add_df_with_empty_series(self) -> None: self.data.add_df(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ) def test_add_df_with_series(self) -> None: self.dat...
5,418
7,685
216
4,720
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_data_frame
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
.data.build(), ) class TestDfWithSeries(DataWithAssets): def test_add_df_with_empty_series(self) -> None: self.data.add_df(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ) def test_add_df_with_series(self) -> None: self.data.add...
5,419
7,686
216
4,740
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
in_pd_series_measure_with_nan
true
statement
97
101
false
false
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", ...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "test_add_data_frame_with_series", "ref_pd_series", "test_add_data_frame_with_empty_series", "in_pd_df_by_series", "test_add_data_frame_with_series_contains_na", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", ...
) class TestDfWithSeries(DataWithAssets): def test_add_df_with_empty_series(self) -> None: self.data.add_df(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ) def test_add_df_with_series(self) -> None: self.data.add_df(self.in_pd_serie...
5,420
7,690
216
4,980
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
96
100
false
false
[ "data", "assertEqual", "test_add_df_index_with_df", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_df_index_with_none", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "assertEqual", "test_add_df_index_with_df", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_df_index_with_none", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with...
test_add_df_with_series(self) -> None: self.data.add_df(self.in_pd_series_dimension) self.data.add_df(self.in_pd_series_measure) self.assertEqual( self.ref_pd_series, self.data.build(), ) def test_add_df_with_series_contains_na(self) -> None: self.dat...
5,424
7,691
216
4,985
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_df_index
true
function
28
30
false
true
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
add_df_with_series(self) -> None: self.data.add_df(self.in_pd_series_dimension) self.data.add_df(self.in_pd_series_measure) self.assertEqual( self.ref_pd_series, self.data.build(), ) def test_add_df_with_series_contains_na(self) -> None: self.data.add...
5,425
7,695
216
5,229
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
96
100
false
false
[ "data", "assertEqual", "test_add_df_index_with_none", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_df_index_with_df", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "assertEqual", "test_add_df_index_with_none", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_df_index_with_df", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with...
def test_add_df_with_series_contains_na(self) -> None: self.data.add_df(self.in_pd_series_dimension_with_nan) self.data.add_df(self.in_pd_series_measure_with_nan) self.assertEqual( self.ref_pd_series_with_nan, self.data.build(), ) def test_add_df_with_series_...
5,429
7,696
216
5,234
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_df_index
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
est_add_df_with_series_contains_na(self) -> None: self.data.add_df(self.in_pd_series_dimension_with_nan) self.data.add_df(self.in_pd_series_measure_with_nan) self.assertEqual( self.ref_pd_series_with_nan, self.data.build(), ) def test_add_df_with_series_and_w...
5,430
7,697
216
5,315
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
random
ref_pd_df_by_series_only_index
true
statement
96
100
false
true
[ "data", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "in_pd_df_by_series_with_index", "ref_pd_series_only_index", "test_add_df_index_with_df", "test_add_df_index_with_none", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_b...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "in_pd_df_by_series_with_index", "ref_pd_series_only_index", "test_add_df_index_with_df", "test_add_df_index_with_none", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_b...
n_pd_series_dimension_with_nan) self.data.add_df(self.in_pd_series_measure_with_nan) self.assertEqual( self.ref_pd_series_with_nan, self.data.build(), ) def test_add_df_with_series_and_with_include_index(self) -> None: self.data.add_df( self.in_pd...
5,431
7,700
216
5,504
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
96
100
false
false
[ "data", "assertEqual", "test_add_data_frame_index_with_df", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_data_frame_index_with_none", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_d...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "assertEqual", "test_add_data_frame_index_with_df", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_data_frame_index_with_none", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_d...
, ) def test_add_df_with_series_and_with_include_index(self) -> None: self.data.add_df( self.in_pd_series_dimension_with_index, include_index="DimensionIndex", ) self.data.add_df( self.in_pd_series_measure_with_index, include_index="Me...
5,434
7,701
216
5,509
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_data_frame_index
true
function
28
30
false
true
[ "add_data_frame", "add_df", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_data_frame", "add_df", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
) def test_add_df_with_series_and_with_include_index(self) -> None: self.data.add_df( self.in_pd_series_dimension_with_index, include_index="DimensionIndex", ) self.data.add_df( self.in_pd_series_measure_with_index, include_index="Measure...
5,435
7,705
216
5,762
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
96
100
false
false
[ "data", "assertEqual", "test_add_data_frame_index_with_none", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_data_frame_index_with_df", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_d...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "assertEqual", "test_add_data_frame_index_with_none", "in_pd_series_measure_with_index", "in_pd_series_dimension_with_index", "test_add_data_frame_index_with_df", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_d...
in_pd_series_measure_with_index, include_index="MeasureIndex", ) self.assertEqual( self.ref_pd_series_with_index, self.data.build(), ) class TestDataFrameWithSeries(DataWithAssets): def test_add_data_frame_with_empty_series(self) -> None: self.da...
5,439
7,706
216
5,767
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_data_frame_index
true
function
28
30
false
false
[ "add_data_frame", "add_df", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_data_frame", "add_df", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
_series_measure_with_index, include_index="MeasureIndex", ) self.assertEqual( self.ref_pd_series_with_index, self.data.build(), ) class TestDataFrameWithSeries(DataWithAssets): def test_add_data_frame_with_empty_series(self) -> None: self.data.ad...
5,440
7,710
216
6,035
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
95
99
false
false
[ "data", "in_pd_df_by_series", "ref_pd_series", "assertEqual", "in_pd_series_dimension", "test_add_df_index_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", "in_pd_series_dimension_with_index", "in_pd_ser...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "in_pd_df_by_series", "ref_pd_series", "assertEqual", "in_pd_series_dimension", "test_add_df_index_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", "in_pd_series_dimension_with_index", "in_pd_ser...
ith_empty_series(self) -> None: self.data.add_data_frame(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ) def test_add_data_frame_with_series(self) -> None: self.data.add_data_frame(self.in_pd_series_dimension) self.data.add_data_fram...
5,444
7,711
216
6,040
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
add_df_index
true
function
28
30
false
false
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
[ { "name": "add_data_frame", "type": "function" }, { "name": "add_data_frame_index", "type": "function" }, { "name": "add_df", "type": "function" }, { "name": "add_df_index", "type": "function" }, { "name": "add_dimension", "type": "function" }, { "name...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "add_df", "add_data_frame", "build", "add_data_frame_index", "add_df_index", "add_dimension", "add_measure", "add_np_array", "add_record", "add_records", "add_series", "add_series_list", "add_spark_df", "dump", "filter", "from_json", "set_filter", "clear", "copy", "fromkeys", ...
mpty_series(self) -> None: self.data.add_data_frame(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ) def test_add_data_frame_with_series(self) -> None: self.data.add_data_frame(self.in_pd_series_dimension) self.data.add_data_frame(sel...
5,445
7,712
216
6,071
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
random
in_pd_series_dimension_with_index
true
statement
95
99
false
false
[ "data", "ref_pd_series", "in_pd_series_dimension", "ref_pd_series_with_nan", "ref_pd_df_by_series_with_duplicated_popularity", "test_add_df_index_with_series", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "ref_pd_series", "in_pd_series_dimension", "ref_pd_series_with_nan", "ref_pd_df_by_series_with_duplicated_popularity", "test_add_df_index_with_series", "asset_dir", "in_pd_df_by_series", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series...
self.data.add_data_frame(pd.Series()) self.assertEqual( {"data": {}}, self.data.build(), ) def test_add_data_frame_with_series(self) -> None: self.data.add_data_frame(self.in_pd_series_dimension) self.data.add_data_frame(self.in_pd_series_measure) ...
5,446
7,717
216
6,376
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
95
99
false
false
[ "data", "in_pd_df_by_series", "ref_pd_series", "assertEqual", "in_pd_series_dimension", "test_add_df_index_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", "in_pd_series_dimension_with_index", "in_pd_ser...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "in_pd_df_by_series", "ref_pd_series", "assertEqual", "in_pd_series_dimension", "test_add_df_index_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", "in_pd_series_dimension_with_index", "in_pd_ser...
easure) self.assertEqual( self.ref_pd_series, self.data.build(), ) def test_add_data_frame_with_series_contains_na(self) -> None: self.data.add_data_frame(self.in_pd_series_dimension_with_nan) self.data.add_data_frame(self.in_pd_series_measure_with_nan) ...
5,451
7,719
216
6,528
vizzuhq__ipyvizzu
54b0334aa736a77f9430739c9375b16be145b3fd
tests/test_data/test_pandas.py
inproject
data
true
statement
95
99
false
false
[ "data", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "in_pd_series_dimension", "test_add_data_frame_index_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", "in_pd_series_dimension_with_index", "i...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring import pandas as pd from tests.test_data import DataWithAssets from tests.utils.import_error import RaiseImportError class TestDf(DataWithAssets): def test_add_df_if_pandas_not_installed(self) -> None: with Rai...
[ "data", "ref_pd_series", "in_pd_df_by_series", "assertEqual", "in_pd_series_dimension", "test_add_data_frame_index_with_series", "asset_dir", "in_pd_df_by_series_with_duplicated_popularity", "in_pd_df_by_series_with_index", "in_pd_df_by_series_with_nan", "in_pd_series_dimension_with_index", "i...
ains_na(self) -> None: self.data.add_data_frame(self.in_pd_series_dimension_with_nan) self.data.add_data_frame(self.in_pd_series_measure_with_nan) self.assertEqual( self.ref_pd_series_with_nan, self.data.build(), ) class TestDfIndex(DataWithAssets): def test...
5,452
7,733
219
13,763
mage-ai__mage-ai
9ed779ccaf3538efbe1f2f54dd68f61fb1c3af55
src/data_cleaner/tests/transformer_actions/test_row.py
common
execute
true
function
9
9
false
true
[ "action", "action_type", "hydrate_action", "axis", "join", "columns_by_type", "execute", "groupby", "transform", "__init__", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__n...
[ { "name": "action", "type": "statement" }, { "name": "action_type", "type": "property" }, { "name": "axis", "type": "property" }, { "name": "columns_by_type", "type": "statement" }, { "name": "execute", "type": "function" }, { "name": "groupby", "t...
from data_cleaner.tests.base_test import TestCase from data_cleaner.transformer_actions.base import BaseAction from data_cleaner.transformer_actions.row import ( drop_duplicates, # explode, filter_rows, sort_rows, ) from pandas.util.testing import assert_frame_equal import numpy as np import pandas as p...
[ "action", "action_type", "hydrate_action", "axis", "join", "columns_by_type", "execute", "groupby", "transform" ]
inal_df=df).reset_index(drop=True) df_new5 = filter_rows(df, action5, original_df=df).reset_index(drop=True) df_new['value'] = df_new['value'].astype(int) df_new['inventory'] = df_new['inventory'].astype(int) df_new2['brand'] = df_new2['brand'].astype(str) df_new2['inventory'] = ...
5,463
7,735
220
351
mage-ai__mage-ai
5d823db31cab8cb2e89873aec656b5a522769873
mage_ai/tests/data_cleaner/cleaning_rules/test_remove_collinear_columns.py
commited
setUp
true
function
75
74
false
true
[ "setUp", "assertEqual", "assertAlmostEqual", "fail", "failIf", "tearDown", "addClassCleanup", "addCleanup", "addTypeEqualityFunc", "assert_", "assertAlmostEquals", "assertCountEqual", "assertDictContainsSubset", "assertDictEqual", "assertEquals", "assertFalse", "assertGreater", "as...
[ { "name": "addClassCleanup", "type": "function" }, { "name": "addCleanup", "type": "function" }, { "name": "addTypeEqualityFunc", "type": "function" }, { "name": "assert_", "type": "function" }, { "name": "assertAlmostEqual", "type": "function" }, { "n...
from data_cleaner.cleaning_rules.remove_collinear_columns import RemoveCollinearColumns from tests.base_test import TestCase from pandas.util.testing import assert_frame_equal import numpy as np import pandas as pd class RemoveCollinearColumnsTests(TestCase): def setUp(self): self.rng = np.random.default_...
[ "setUp", "assertEqual", "assertAlmostEqual", "fail", "failIf", "tearDown", "addClassCleanup", "addCleanup", "addTypeEqualityFunc", "assert_", "assertAlmostEquals", "assertCountEqual", "assertDictContainsSubset", "assertDictEqual", "assertEquals", "assertFalse", "assertGreater", "as...
from data_cleaner.cleaning_rules.remove_collinear_columns import RemoveCollinearColumns from tests.base_test import TestCase from pandas.util.testing import assert_frame_equal import numpy as np import pandas as pd class RemoveCollinearColumnsTests(TestCase): def setUp(self): self.rng = np.random.default_...
5,464
7,738
220
2,473
mage-ai__mage-ai
5d823db31cab8cb2e89873aec656b5a522769873
mage_ai/tests/data_cleaner/cleaning_rules/test_remove_collinear_columns.py
inproject
evaluate
true
function
14
15
false
false
[ "numeric_columns", "evaluate", "df_columns", "column_types", "numeric_df", "df", "EPSILON", "filter_numeric_types", "get_variance_inflation_factor", "MIN_ENTRIES", "numeric_indices", "ROW_SAMPLE_SIZE", "statistics", "VIF_UB", "__init__", "__annotations__", "__class__", "__delattr__...
[ { "name": "column_types", "type": "statement" }, { "name": "df", "type": "statement" }, { "name": "df_columns", "type": "statement" }, { "name": "EPSILON", "type": "statement" }, { "name": "evaluate", "type": "function" }, { "name": "filter_numeric_typ...
from data_cleaner.cleaning_rules.remove_collinear_columns import RemoveCollinearColumns from tests.base_test import TestCase from pandas.util.testing import assert_frame_equal import numpy as np import pandas as pd class RemoveCollinearColumnsTests(TestCase): def setUp(self): self.rng = np.random.default_...
[ "numeric_columns", "evaluate", "df_columns", "column_types", "numeric_df", "df", "EPSILON", "filter_numeric_types", "get_variance_inflation_factor", "MIN_ENTRIES", "numeric_indices", "ROW_SAMPLE_SIZE", "statistics", "VIF_UB" ]
[1, 1100, '2021-10-01', '2021-01-01'], [2, 1150, '2021-09-01', '2021-08-01'], ], columns=[ 'group_id', 'order_id', 'group_churned_at', 'order_created_at', ]) column_types = { 'group_id': 'cate...
5,467
7,743
220
9,766
mage-ai__mage-ai
5d823db31cab8cb2e89873aec656b5a522769873
mage_ai/tests/data_cleaner/cleaning_rules/test_remove_collinear_columns.py
inproject
evaluate
true
function
14
15
false
false
[ "evaluate", "numeric_df", "numeric_columns", "get_variance_inflation_factor", "df", "column_types", "df_columns", "EPSILON", "filter_numeric_types", "MIN_ENTRIES", "numeric_indices", "ROW_SAMPLE_SIZE", "statistics", "VIF_UB", "__init__", "__annotations__", "__class__", "__delattr__...
[ { "name": "column_types", "type": "statement" }, { "name": "df", "type": "statement" }, { "name": "df_columns", "type": "statement" }, { "name": "EPSILON", "type": "statement" }, { "name": "evaluate", "type": "function" }, { "name": "filter_numeric_typ...
from data_cleaner.cleaning_rules.remove_collinear_columns import RemoveCollinearColumns from tests.base_test import TestCase from pandas.util.testing import assert_frame_equal import numpy as np import pandas as pd class RemoveCollinearColumnsTests(TestCase): def setUp(self): self.rng = np.random.default_...
[ "evaluate", "numeric_df", "numeric_columns", "get_variance_inflation_factor", "df", "column_types", "df_columns", "EPSILON", "filter_numeric_types", "MIN_ENTRIES", "numeric_indices", "ROW_SAMPLE_SIZE", "statistics", "VIF_UB" ]
, 10, 100, 30], [500, 10000, 20, 3000, 20], [200, np.nan, 50, None, 75], [250, 7500, 25, 8000, 20], [1000, 45003, 20, 90, 40], [1500, 75000, 30, 70, 25], [1500, 75000, np.nan, 70, 25], [None, 75000, 30, 70, np.nan], [1250...
5,472
7,752
220
17,318
mage-ai__mage-ai
5d823db31cab8cb2e89873aec656b5a522769873
mage_ai/tests/data_cleaner/cleaning_rules/test_remove_collinear_columns.py
inproject
numeric_df
true
statement
14
15
false
false
[ "column_types", "numeric_columns", "df", "VIF_UB", "statistics", "df_columns", "EPSILON", "evaluate", "filter_numeric_types", "get_variance_inflation_factor", "MIN_ENTRIES", "numeric_df", "numeric_indices", "ROW_SAMPLE_SIZE", "__init__", "__annotations__", "__class__", "__delattr__...
[ { "name": "column_types", "type": "statement" }, { "name": "df", "type": "statement" }, { "name": "df_columns", "type": "statement" }, { "name": "EPSILON", "type": "statement" }, { "name": "evaluate", "type": "function" }, { "name": "filter_numeric_typ...
from data_cleaner.cleaning_rules.remove_collinear_columns import RemoveCollinearColumns from tests.base_test import TestCase from pandas.util.testing import assert_frame_equal import numpy as np import pandas as pd class RemoveCollinearColumnsTests(TestCase): def setUp(self): self.rng = np.random.default_...
[ "column_types", "numeric_columns", "df", "VIF_UB", "statistics", "df_columns", "EPSILON", "evaluate", "filter_numeric_types", "get_variance_inflation_factor", "MIN_ENTRIES", "numeric_df", "numeric_indices", "ROW_SAMPLE_SIZE" ]
', outputs = [], ) ) ] self.assertEqual(result, expected_results) def test_vif_calcuation(self): df = pd.DataFrame([ [1000, 30000, 10, 100, 30], [500, 10000, 20, 3000, 20], [250, 7500, 25, 8000, 20], ...
5,481
7,753
221
817
mage-ai__mage-ai
5d174cafe82dab0bc46d82b5ac6dff808a60f5ac
mage_ai/server/routes.py
infile
data
true
statement
17
18
false
true
[ "metadata", "data", "to_dict", "write_files", "id", "dir", "folder_name", "insights", "objects", "path", "path_name", "pipeline", "read_json_file", "sample_data", "statistics", "suggestions", "write_json_file", "__init__", "__annotations__", "__class__", "__delattr__", "__d...
[ { "name": "data", "type": "statement" }, { "name": "dir", "type": "statement" }, { "name": "folder_name", "type": "function" }, { "name": "id", "type": "statement" }, { "name": "insights", "type": "statement" }, { "name": "metadata", "type": "state...
from data_cleaner.data_cleaner import analyze, clean as clean_data from data_cleaner.pipelines.base import BasePipeline from flask import render_template, request from numpyencoder import NumpyEncoder from server.data.models import FeatureSet, Pipeline from server import app import json import threading @app.route("/...
[ "metadata", "data", "to_dict", "write_files", "id", "dir", "folder_name", "insights", "objects", "path", "path_name", "pipeline", "read_json_file", "sample_data", "statistics", "suggestions", "write_json_file" ]
from data_cleaner.data_cleaner import analyze, clean as clean_data from data_cleaner.pipelines.base import BasePipeline from flask import render_template, request from numpyencoder import NumpyEncoder from server.data.models import FeatureSet, Pipeline from server import app import json import threading @app.route("/...
5,482
7,758
221
1,505
mage-ai__mage-ai
5d174cafe82dab0bc46d82b5ac6dff808a60f5ac
mage_ai/server/routes.py
infile
objects
true
function
15
15
false
true
[ "to_dict", "data", "metadata", "write_files", "pipeline", "folder_name", "insights", "objects", "path_name", "read_json_file", "sample_data", "statistics", "suggestions", "write_json_file", "mro", "__init__", "__annotations__", "__base__", "__bases__", "__basicsize__", "__cal...
[ { "name": "data", "type": "property" }, { "name": "folder_name", "type": "function" }, { "name": "insights", "type": "property" }, { "name": "metadata", "type": "property" }, { "name": "mro", "type": "function" }, { "name": "objects", "type": "func...
from data_cleaner.data_cleaner import analyze, clean as clean_data from data_cleaner.pipelines.base import BasePipeline from flask import render_template, request from numpyencoder import NumpyEncoder from server.data.models import FeatureSet, Pipeline from server import app import json import threading @app.route("/...
[ "to_dict", "data", "metadata", "write_files", "pipeline", "folder_name", "insights", "objects", "path_name", "read_json_file", "sample_data", "statistics", "suggestions", "write_json_file", "mro" ]
from data_cleaner.data_cleaner import analyze, clean as clean_data from data_cleaner.pipelines.base import BasePipeline from flask import render_template, request from numpyencoder import NumpyEncoder from server.data.models import FeatureSet, Pipeline from server import app import json import threading @app.route("/...
5,486
7,761
222
4,543
qiboteam__qibolab
097a3fc1a66f8aff1fce4978054707b1d7b2c596
examples/qili_single_qubit/diagnostics.py
common
platform
true
statement
6
6
false
true
[ "platform", "sequence", "name", "label", "unit", "__init__", "get", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__reduce__", "__reduce_ex__", "__repr...
[ { "name": "get", "type": "function" }, { "name": "label", "type": "statement" }, { "name": "name", "type": "statement" }, { "name": "platform", "type": "statement" }, { "name": "sequence", "type": "statement" }, { "name": "unit", "type": "statement...
import pathlib import numpy as np import matplotlib.pyplot as plt import yaml # TODO: Have a look in the documentation of ``MeasurementControl`` from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Settable from quantify_core.data.handling import set_datadir ...
[ "platform", "sequence", "name", "label", "unit", "get" ]
g, ax = plt.subplots(1, 1, figsize=(15, 15/2/1.61)) ax.plot(dataset['x0'].values, dataset['y0'].values,'-',color='C0') ax.plot(dataset['x0'].values, smooth_dataset,'-',color='C1') ax.title.set_text(label) ax.plot(dataset['x0'].values[smooth_dataset.argmax()], smooth_dataset[smooth_datase...
5,487
7,762
222
4,565
qiboteam__qibolab
097a3fc1a66f8aff1fce4978054707b1d7b2c596
examples/qili_single_qubit/diagnostics.py
common
sequence
true
statement
6
6
false
true
[ "platform", "name", "sequence", "label", "unit", "__init__", "get", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__reduce__", "__reduce_ex__", "__repr...
[ { "name": "get", "type": "function" }, { "name": "label", "type": "statement" }, { "name": "name", "type": "statement" }, { "name": "platform", "type": "statement" }, { "name": "sequence", "type": "statement" }, { "name": "unit", "type": "statement...
import pathlib import numpy as np import matplotlib.pyplot as plt import yaml # TODO: Have a look in the documentation of ``MeasurementControl`` from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Settable from quantify_core.data.handling import set_datadir ...
[ "platform", "name", "sequence", "label", "unit", "get" ]
, 1, figsize=(15, 15/2/1.61)) ax.plot(dataset['x0'].values, dataset['y0'].values,'-',color='C0') ax.plot(dataset['x0'].values, smooth_dataset,'-',color='C1') ax.title.set_text(label) ax.plot(dataset['x0'].values[smooth_dataset.argmax()], smooth_dataset[smooth_dataset.argmax()], 'o', colo...
5,488
7,807
223
1,687
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
add
true
function
8
8
false
true
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time", "__init__", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__...
[ { "name": "add", "type": "function" }, { "name": "add_measurement", "type": "function" }, { "name": "add_u3", "type": "function" }, { "name": "phase", "type": "statement" }, { "name": "pulses", "type": "statement" }, { "name": "qcm_pulses", "type":...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time" ]
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
5,491
7,811
223
3,549
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
lorentzian_fit
true
function
12
17
false
true
[ "t1_fit", "rabi_fit", "lorentzian_fit", "ramsey_fit", "curve_fit", "BaseAnalysis", "data_post", "exp", "rabi", "ramsey", "resonator_peak", "set_datadir" ]
[ { "name": "BaseAnalysis", "type": "module" }, { "name": "curve_fit", "type": "module" }, { "name": "data_post", "type": "function" }, { "name": "exp", "type": "function" }, { "name": "lmfit", "type": "module" }, { "name": "lorentzian_fit", "type": ...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "t1_fit", "rabi_fit", "lorentzian_fit", "ramsey_fit", "curve_fit", "BaseAnalysis", "data_post", "exp", "rabi", "ramsey", "resonator_peak", "set_datadir" ]
hape) sequence = PulseSequence() sequence.add(qc_pulse) sequence.add(ro_pulse) ds = self.load_settings() self.pl.tuids_max_num(ds['max_num_plots']) software_averages = ds['software_averages'] ds = ds['resonator_spectroscopy'] lowres_width = ds['lowres_wid...
5,495
7,813
223
3,931
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
random
mc
true
statement
11
11
false
false
[ "mc", "platform", "load_settings", "pl", "ins", "__init__", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__"...
[ { "name": "auto_calibrate_plaform", "type": "function" }, { "name": "callibrate_qubit_states", "type": "function" }, { "name": "ins", "type": "statement" }, { "name": "load_settings", "type": "function" }, { "name": "mc", "type": "statement" }, { "name...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "mc", "platform", "load_settings", "pl", "ins", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1" ]
idth = ds['highres_width'] highres_step = ds['highres_step'] precision_width = ds['precision_width'] precision_step = ds['precision_step'] #Fast Sweep scanrange = utils.variable_resolution_scanrange(lowres_width, lowres_step, highres_width, highres_step) mc.settables(pla...
5,497
7,818
223
6,259
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
lorentzian_fit
true
function
12
17
false
false
[ "t1_fit", "rabi_fit", "lorentzian_fit", "ramsey_fit", "curve_fit", "BaseAnalysis", "data_post", "exp", "rabi", "ramsey", "resonator_peak", "set_datadir" ]
[ { "name": "BaseAnalysis", "type": "module" }, { "name": "curve_fit", "type": "module" }, { "name": "data_post", "type": "function" }, { "name": "exp", "type": "function" }, { "name": "lmfit", "type": "module" }, { "name": "lorentzian_fit", "type": ...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "t1_fit", "rabi_fit", "lorentzian_fit", "ramsey_fit", "curve_fit", "BaseAnalysis", "data_post", "exp", "rabi", "ramsey", "resonator_peak", "set_datadir" ]
settings, shape = ro_pulse_shape) sequence = PulseSequence() sequence.add(qc_pulse) sequence.add(ro_pulse) ds = self.load_settings() self.pl.tuids_max_num(ds['max_num_plots']) software_averages = ds['software_averages'] ds = ds['qubit_spectroscopy'] fast_...
5,502
7,823
223
7,173
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
infile
load_settings
true
function
11
11
false
false
[ "platform", "mc", "pl", "load_settings", "ins", "__init__", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__"...
[ { "name": "auto_calibrate_plaform", "type": "function" }, { "name": "callibrate_qubit_states", "type": "function" }, { "name": "ins", "type": "statement" }, { "name": "load_settings", "type": "function" }, { "name": "mc", "type": "statement" }, { "name...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "platform", "mc", "pl", "load_settings", "ins", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1" ]
Spectroscopy Fast", soft_avg=1) platform.stop() # Precision Sweep platform.software_averages = 1 precision_sweep_scan_range = np.arange(precision_start, precision_end, precision_step) mc.settables(platform.LO_qcm.device.frequency) mc.setpoints(precision_sweep_sca...
5,507
7,825
223
8,038
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
rabi_fit
true
function
12
17
false
true
[ "t1_fit", "lorentzian_fit", "rabi", "rabi_fit", "ramsey_fit", "BaseAnalysis", "curve_fit", "data_post", "exp", "ramsey", "resonator_peak", "set_datadir" ]
[ { "name": "BaseAnalysis", "type": "module" }, { "name": "curve_fit", "type": "module" }, { "name": "data_post", "type": "function" }, { "name": "exp", "type": "function" }, { "name": "lmfit", "type": "module" }, { "name": "lorentzian_fit", "type": ...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "t1_fit", "lorentzian_fit", "rabi", "rabi_fit", "ramsey_fit", "BaseAnalysis", "curve_fit", "data_post", "exp", "ramsey", "resonator_peak", "set_datadir" ]
th_dataset, dataset, "Qubit_Spectroscopy", 1) print("Qubit freq ontained from MC results: ", qubit_freq) f0, BW, Q = fitting.lorentzian_fit("last", min, "Qubit_Spectroscopy") qubit_freq = (f0*1e9 - qc_pulse.frequency) print("Qubit freq ontained from fitting: ", qubit_freq) return...
5,509
7,828
223
9,446
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
add
true
function
8
8
false
false
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time", "__init__", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__...
[ { "name": "add", "type": "function" }, { "name": "add_measurement", "type": "function" }, { "name": "add_u3", "type": "function" }, { "name": "phase", "type": "statement" }, { "name": "pulses", "type": "statement" }, { "name": "qcm_pulses", "type":...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time" ]
le(QCPulseLengthParameter(ro_pulse, qc_pulse))) mc.setpoints(np.arange(pulse_duration_start, pulse_duration_end, pulse_duration_step)) mc.gettables(Gettable(ROController(platform, sequence))) platform.start() dataset = mc.run('Rabi Pulse Length', soft_avg = software_averages) pla...
5,512
7,832
223
10,331
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
t1_fit
true
function
12
17
false
true
[ "lorentzian_fit", "rabi_fit", "t1_fit", "ramsey_fit", "curve_fit", "BaseAnalysis", "data_post", "exp", "rabi", "ramsey", "resonator_peak", "set_datadir" ]
[ { "name": "BaseAnalysis", "type": "module" }, { "name": "curve_fit", "type": "module" }, { "name": "data_post", "type": "function" }, { "name": "exp", "type": "function" }, { "name": "lmfit", "type": "module" }, { "name": "lorentzian_fit", "type": ...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "lorentzian_fit", "rabi_fit", "t1_fit", "ramsey_fit", "curve_fit", "BaseAnalysis", "data_post", "exp", "rabi", "ramsey", "resonator_peak", "set_datadir" ]
qual to the QCM gain when performing a Rabi. print(f"\nrabi oscillation min voltage = {rabi_oscillations_pi_pulse_min_voltage}") print(f"\nT1 = {t1}") return dataset, pi_pulse_duration, pi_pulse_amplitude, pi_pulse_gain, rabi_oscillations_pi_pulse_min_voltage, t1 # T1: RX(pi) - wait t(rota...
5,516
7,834
223
11,252
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
add
true
function
8
8
false
false
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time", "__init__", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__...
[ { "name": "add", "type": "function" }, { "name": "add_measurement", "type": "function" }, { "name": "add_u3", "type": "function" }, { "name": "phase", "type": "statement" }, { "name": "pulses", "type": "statement" }, { "name": "qcm_pulses", "type":...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time" ]
e = ReadoutPulse(**ro_pulse_settings, shape = ro_pulse_shape) sequence = PulseSequence() sequence.add(qc_pi_pulse) sequence.add(ro_pulse) ds = self.load_settings() self.pl.tuids_max_num(ds['max_num_plots']) software_averages = ds['software_averages'] ds = ds['t1'...
5,518
7,835
223
11,391
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
add
true
function
8
8
false
false
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time", "__init__", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__...
[ { "name": "add", "type": "function" }, { "name": "add_measurement", "type": "function" }, { "name": "add_u3", "type": "function" }, { "name": "phase", "type": "statement" }, { "name": "pulses", "type": "statement" }, { "name": "qcm_pulses", "type":...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "add", "pulses", "phase", "qcm_pulses", "qrm_pulses", "add_measurement", "add_u3", "time" ]
sequence.add(ro_pulse) ds = self.load_settings() self.pl.tuids_max_num(ds['max_num_plots']) software_averages = ds['software_averages'] ds = ds['t1'] delay_before_readout_start = ds['delay_before_readout_start'] delay_before_readout_end = ds['delay_before_readout_end'] ...
5,519
7,837
223
12,736
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
infile
run_resonator_spectroscopy
true
function
11
11
false
true
[ "platform", "mc", "pl", "load_settings", "ins", "__init__", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__"...
[ { "name": "auto_calibrate_plaform", "type": "function" }, { "name": "callibrate_qubit_states", "type": "function" }, { "name": "ins", "type": "statement" }, { "name": "load_settings", "type": "function" }, { "name": "mc", "type": "statement" }, { "name...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "platform", "mc", "pl", "load_settings", "ins", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1" ]
duration = ps['pi_pulse_duration'] phase = 0 shape = eval(ps['pi_pulse_shape']) qc_pi_pulse = Pulse(start, duration, amplitude, frequency, phase, shape) ro_pulse_shape = eval(ps['readout_pulse'].popitem()[1]) ro_pulse_settings = ps['readout_pulse'] ro_pulse = ReadoutPuls...
5,521
7,838
223
13,689
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
infile
run_qubit_spectroscopy
true
function
11
11
false
true
[ "platform", "mc", "pl", "callibrate_qubit_states", "load_settings", "__init__", "auto_calibrate_plaform", "ins", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__"...
[ { "name": "auto_calibrate_plaform", "type": "function" }, { "name": "callibrate_qubit_states", "type": "function" }, { "name": "ins", "type": "statement" }, { "name": "load_settings", "type": "function" }, { "name": "mc", "type": "statement" }, { "name...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "platform", "mc", "pl", "callibrate_qubit_states", "load_settings", "auto_calibrate_plaform", "ins", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1" ]
sequence, nshots) #Compose complex point from i, q obtained from execution point = complex(qubit_state[2], qubit_state[3]) all_gnd_states.add(point) #Exectue niter single exc shots platform.LO_qcm.on() all_exc_states = [] for i in range(niter): ...
5,522
7,839
223
14,451
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
inproject
run_rabi_pulse_length
true
function
11
11
false
true
[ "platform", "mc", "pl", "load_settings", "ins", "__init__", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__"...
[ { "name": "auto_calibrate_plaform", "type": "function" }, { "name": "callibrate_qubit_states", "type": "function" }, { "name": "ins", "type": "statement" }, { "name": "load_settings", "type": "function" }, { "name": "mc", "type": "statement" }, { "name...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "platform", "mc", "pl", "load_settings", "ins", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1" ]
t platform runcard utils.backup_config_file(platform) #run and save cavity spectroscopy calibration resonator_freq, avg_min_voltage, max_ro_voltage, smooth_dataset, dataset = self.run_resonator_spectroscopy() print(utils.get_config_parameter("settings", "", "resonator_freq")) p...
5,523
7,840
223
15,369
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
infile
callibrate_qubit_states
true
function
11
11
false
true
[ "platform", "mc", "pl", "load_settings", "ins", "__init__", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__"...
[ { "name": "auto_calibrate_plaform", "type": "function" }, { "name": "callibrate_qubit_states", "type": "function" }, { "name": "ins", "type": "statement" }, { "name": "load_settings", "type": "function" }, { "name": "mc", "type": "statement" }, { "name...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "platform", "mc", "pl", "load_settings", "ins", "auto_calibrate_plaform", "callibrate_qubit_states", "run_qubit_spectroscopy", "run_rabi_pulse_length", "run_resonator_spectroscopy", "run_t1" ]
oltage)) # utils.save_config_parameter("LO_QRM_settings", "", "frequency", float(resonator_freq - 20_000_000)) #run and save qubit spectroscopy calibration qubit_freq, min_ro_voltage, smooth_dataset, dataset = self.run_qubit_spectroscopy() print(utils.get_config_parameter("settings", ""...
5,524
7,844
223
16,579
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
common
ro_pulse
true
statement
6
6
false
true
[ "ro_pulse", "qc_pulse", "name", "unit", "label", "__init__", "set", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__reduce__", "__reduce_ex__", "__repr...
[ { "name": "label", "type": "statement" }, { "name": "name", "type": "statement" }, { "name": "qc_pulse", "type": "statement" }, { "name": "ro_pulse", "type": "statement" }, { "name": "set", "type": "function" }, { "name": "unit", "type": "statement...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "ro_pulse", "qc_pulse", "name", "unit", "label", "set" ]
onfig_parameter("settings", "", "pi_pulse_gain")) print(utils.get_config_parameter("settings", "", "rabi_oscillations_pi_pulse_min_voltage")) # utils.save_config_parameter("settings", "", "pi_pulse_duration", int(pi_pulse_duration)) # utils.save_config_parameter("settings", "", "pi_pulse_amplitu...
5,526
7,848
223
17,001
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
common
ro_pulse
true
statement
7
7
false
false
[ "ro_pulse", "name", "unit", "label", "initial_value", "__init__", "base_duration", "set", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__reduce__", "_...
[ { "name": "base_duration", "type": "statement" }, { "name": "initial_value", "type": "statement" }, { "name": "label", "type": "statement" }, { "name": "name", "type": "statement" }, { "name": "ro_pulse", "type": "statement" }, { "name": "set", "ty...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "ro_pulse", "name", "unit", "label", "initial_value", "base_duration", "set" ]
, float(pi_pulse_gain)) # utils.save_config_parameter("settings", "", "rabi_oscillations_pi_pulse_min_voltage", float(rabi_oscillations_pi_pulse_min_voltage)) # #run calibration_qubit_states all_gnd_states, mean_gnd_states, all_exc_states, mean_exc_states = self.callibrate_qubit_states() ...
5,527
7,850
223
17,023
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
common
base_duration
true
statement
7
7
false
true
[ "ro_pulse", "base_duration", "name", "unit", "label", "__init__", "initial_value", "set", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__reduce__", "_...
[ { "name": "base_duration", "type": "statement" }, { "name": "initial_value", "type": "statement" }, { "name": "label", "type": "statement" }, { "name": "name", "type": "statement" }, { "name": "ro_pulse", "type": "statement" }, { "name": "set", "ty...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "ro_pulse", "base_duration", "name", "unit", "label", "initial_value", "set" ]
) # utils.save_config_parameter("settings", "", "rabi_oscillations_pi_pulse_min_voltage", float(rabi_oscillations_pi_pulse_min_voltage)) # #run calibration_qubit_states all_gnd_states, mean_gnd_states, all_exc_states, mean_exc_states = self.callibrate_qubit_states() # #TODO: save in run...
5,528
7,853
223
17,383
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
common
platform
true
statement
6
6
false
false
[ "platform", "sequence", "name", "unit", "label", "__init__", "get", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__reduce__", "__reduce_ex__", "__repr...
[ { "name": "get", "type": "function" }, { "name": "label", "type": "statement" }, { "name": "name", "type": "statement" }, { "name": "platform", "type": "statement" }, { "name": "sequence", "type": "statement" }, { "name": "unit", "type": "statement...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "platform", "sequence", "name", "unit", "label", "get" ]
print(all_gnd_states) print(mean_gnd_states) print(all_exc_states) print(mean_exc_states) # #TODO: Remove plot qubit states results when tested utils.plot_qubit_states(all_gnd_states, all_exc_states) #TODO: Remove 0 and 1 classification from auto calibration wh...
5,529
7,854
223
17,405
qiboteam__qibolab
e4b0e8e6dd612e696a161da9972f4bb9b6bf8cd0
src/qibolab/calibration/calibration.py
common
sequence
true
statement
6
6
false
true
[ "platform", "sequence", "name", "unit", "label", "__init__", "get", "__annotations__", "__class__", "__delattr__", "__dict__", "__dir__", "__eq__", "__format__", "__getattribute__", "__hash__", "__init_subclass__", "__ne__", "__new__", "__reduce__", "__reduce_ex__", "__repr...
[ { "name": "get", "type": "function" }, { "name": "label", "type": "statement" }, { "name": "name", "type": "statement" }, { "name": "platform", "type": "statement" }, { "name": "sequence", "type": "statement" }, { "name": "unit", "type": "statement...
import pathlib import numpy as np #import matplotlib.pyplot as plt import utils import yaml import fitting from qibolab import Platform # TODO: Have a look in the documentation of ``MeasurementControl`` #from quantify_core.measurement import MeasurementControl from quantify_core.measurement.control import Gettable, Se...
[ "platform", "sequence", "name", "unit", "label", "get" ]
_states) print(mean_gnd_states) print(all_exc_states) print(mean_exc_states) # #TODO: Remove plot qubit states results when tested utils.plot_qubit_states(all_gnd_states, all_exc_states) #TODO: Remove 0 and 1 classification from auto calibration when tested #Cla...
5,530