5b5fb4c657f0cdf4fe404aa9daaf99aca83d01cf,mltsp/tests/test_flask_app.py,FlaskAppTestCase,test_upload_features_form,#FlaskAppTestCase#,2012

Before Change


            while "currently running" in fa.check_job_status(res_dict["PID"]):
                time.sleep(1)
            new_key = res_dict["featureset_key"]
            npt.assert_equal(res_dict["featureset_name"], "abc123")
            npt.assert_equal(res_dict["zipfile_name"], "None")
            featureset = xr.open_dataset(pjoin(config["paths"]["features_folder"],
                                                 "%s_featureset.nc" % new_key))
            assert(all(c in ["class1", "class2", "class3"] for

After Change


                                      "test_features_with_targets.csv"),
                                     "featuresetname": "abc123",
                                     "featureset_projname_select": "abc123"})
            new_key = list(rdb.table("features").filter({"name":
                          "abc123"}).pluck("id").run(conn))[0]["id"]
            featureset = xr.open_dataset(pjoin(config["paths"]["features_folder"],
                                                 "%s_featureset.nc" % new_key))
            assert(all(c in ["class1", "class2", "class3"] for
                       c in featureset.target.values.astype("U")))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cesium-ml/cesium
Commit Name: 5b5fb4c657f0cdf4fe404aa9daaf99aca83d01cf
Time: 2016-02-24
Author: brettnaul@gmail.com
File Name: mltsp/tests/test_flask_app.py
Class Name: FlaskAppTestCase
Method Name: test_upload_features_form


Project Name: mbernico/snape
Commit Name: 0ba97895bc1504c9a1a304f5a851d45198f4826b
Time: 2017-02-27
Author: sara.collins.fm61@gmail.com
File Name: snape/test/test_make_dataset.py
Class Name: TestMakeDataset
Method Name: test_star_schema


Project Name: nltk/nltk
Commit Name: 81319ebba56b7f5a38f1770824463536fe6fc800
Time: 2017-09-25
Author: liling.tan@rakuten.com
File Name: nltk/test/unit/test_rte_classify.py
Class Name: RTEClassifierTest
Method Name: test_rte_feature_extraction