5467700dea531cdc442082794c0780c37f483e0e,tests/test_dataset.py,,test_properties,#,74
Before Change
d = Dataset(X_train, y_train)
with pytest.raises(NameError):
d.X_test
with pytest.raises(NameError):
d.y_test
def test_hashing():
assert Dataset(X_train, y_train, X_test, y_test).hash == "0cb7e710b7319bb71e7328e4b422b374"
assert Dataset(X_train, y_train, X_test).hash == "c9b316f827981b3d0b53f8ab139234ea"
assert Dataset(pd.DataFrame(X_train), pd.DataFrame(y_train),
After Change
d = Dataset(X_train, y_train)
assert d.X_test is None
assert d.y_test is None
def test_hashing():
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 6
Instances
Project Name: rushter/heamy
Commit Name: 5467700dea531cdc442082794c0780c37f483e0e
Time: 2016-05-15
Author: me@rushter.com
File Name: tests/test_dataset.py
Class Name:
Method Name: test_properties
Project Name: probcomp/bayeslite
Commit Name: c0fa4b2ff59b6048ac20e33b7940c677ea723f97
Time: 2015-01-02
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_bql.py
Class Name:
Method Name: test_select_bql
Project Name: Featuretools/featuretools
Commit Name: 3b84b663234956420fcf0c41a2c85d5880f0ecdb
Time: 2019-06-17
Author: chrisstadler@gmail.com
File Name: featuretools/tests/entityset_tests/test_timedelta.py
Class Name:
Method Name: test_delta_with_observations
Project Name: descarteslabs/descarteslabs-python
Commit Name: 233a089604121931a7f9e8b3861ca4b691cc555d
Time: 2020-01-17
Author: stephen@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_product.py
Class Name: TestProduct
Method Name: test_image_uploads
Project Name: bethgelab/foolbox
Commit Name: 2a5689aef78856fdeb8762b5981eaa517702031f
Time: 2017-06-08
Author: git@jonasrauber.de
File Name: foolbox/tests/test_attacks.py
Class Name:
Method Name: test_base_init
Project Name: pandas-dev/pandas
Commit Name: f2ff676169c6f2aca04eebe22e5d31501f8a2a6b
Time: 2021-02-10
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/datetimelike.py
Class Name: DatetimeLike
Method Name: test_where_cast_str
Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: b037591ca387624db8c70e146272f25f9db8bd0a
Time: 2020-06-08
Author: g.lemaitre58@gmail.com
File Name: imblearn/utils/estimator_checks.py
Class Name:
Method Name: check_target_type
Project Name: rushter/heamy
Commit Name: 5467700dea531cdc442082794c0780c37f483e0e
Time: 2016-05-15
Author: me@rushter.com
File Name: tests/test_dataset.py
Class Name:
Method Name: test_properties