a0d7b41274350f55250859e13fce5718156f93cc,tests/test_worker.py,,get_new_worker,#,107

Before Change


    dataset_conf.train_path = os.path.join(
        os.path.join(os.path.join(PROJECT_ROOT, "data"), "test"), "pollution_1.csv")

    db = Database(**sql_conf.to_dict())
    atm = ATM(sql_conf=sql_conf)

    datarun = atm.enter_data(dataset_conf, run_conf)
    // datarun = db.get_datarun(run_id.id)

After Change


    dataset_conf = DatasetConfig(kwargs)
    dataset_conf.train_path = POLLUTION_PATH

    db = Database(dialect="sqlite", database=DB_PATH)
    atm = ATM(dialect="sqlite", database=DB_PATH)

    dataset = atm.add_dataset(**dataset_conf.to_dict())
    run_conf.dataset_id = dataset.id
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: HDI-Project/ATM
Commit Name: a0d7b41274350f55250859e13fce5718156f93cc
Time: 2019-05-28
Author: carles@pythiac.com
File Name: tests/test_worker.py
Class Name:
Method Name: get_new_worker


Project Name: pymc-devs/pymc3
Commit Name: 2c44b5e4c409710375e6b5b57732a9ca31461763
Time: 2008-11-11
Author: david.huard@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name:
Method Name: load


Project Name: estnltk/estnltk
Commit Name: 34c1933b4b0eee88307d5d35354df4893463b512
Time: 2015-09-07
Author: tpetmanson@gmail.com
File Name: estnltk/database/importer.py
Class Name:
Method Name: