f74b73a950062ddb210b97d7689a674bccdbaab0,tests/test_datasets/test_dataset_functions.py,TestOpenMLDataset,test_publish_fetch_ignore_attribute,#TestOpenMLDataset#,1092

Before Change


        )

        // publish dataset
        upload_did = dataset.publish()
        TestBase._mark_entity_for_removal("data", upload_did)
        TestBase.logger.info("collected from {}: {}".format(__file__.split("/")[-1],
                                                            upload_did))
        // test if publish was successful

After Change


        )

        // publish dataset
        dataset.publish()
        TestBase._mark_entity_for_removal("data", dataset.id)
        TestBase.logger.info("collected from {}: {}".format(__file__.split("/")[-1],
                                                            dataset.id))
        // test if publish was successful
        self.assertIsInstance(dataset.id, int)

        downloaded_dataset = None
        // fetching from server
        // loop till timeout or fetch not successful
        max_waiting_time_seconds = 400
        // time.time() works in seconds
        start_time = time.time()
        while time.time() - start_time < max_waiting_time_seconds:
            try:
                downloaded_dataset = openml.datasets.get_dataset(dataset.id)
                break
            except Exception as e:
                // returned code 273: Dataset not processed yet
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: openml/openml-python
Commit Name: f74b73a950062ddb210b97d7689a674bccdbaab0
Time: 2019-10-18
Author: p.gijsbers@tue.nl
File Name: tests/test_datasets/test_dataset_functions.py
Class Name: TestOpenMLDataset
Method Name: test_publish_fetch_ignore_attribute


Project Name: openml/openml-python
Commit Name: f74b73a950062ddb210b97d7689a674bccdbaab0
Time: 2019-10-18
Author: p.gijsbers@tue.nl
File Name: tests/test_datasets/test_dataset_functions.py
Class Name: TestOpenMLDataset
Method Name: test_create_dataset_row_id_attribute_inference


Project Name: openml/openml-python
Commit Name: f74b73a950062ddb210b97d7689a674bccdbaab0
Time: 2019-10-18
Author: p.gijsbers@tue.nl
File Name: tests/test_datasets/test_dataset_functions.py
Class Name: TestOpenMLDataset
Method Name: test_create_dataset_pandas


Project Name: openml/openml-python
Commit Name: f74b73a950062ddb210b97d7689a674bccdbaab0
Time: 2019-10-18
Author: p.gijsbers@tue.nl
File Name: tests/test_datasets/test_dataset_functions.py
Class Name: TestOpenMLDataset
Method Name: test_publish_fetch_ignore_attribute