e5c681cba6344d361ab50b4e5d0517d871d5e3ab,tests/integration_tests/flows/test_mssql.py,MSSQLTest,setUpClass,#Any#,54

Before Change


        if TEST_PREDICTOR_NAME in models:
            cls.mdb.delete_model(TEST_PREDICTOR_NAME)

        test_csv_path = get_test_csv(TEST_CSV["name"], TEST_CSV["url"])

        res = query("SELECT name FROM master.dbo.sysdatabases where name = "mindsdb_test"", fetch=True)
        if len(res) == 0:

After Change


        if TEST_PREDICTOR_NAME in models:
            cls.mdb.delete_model(TEST_PREDICTOR_NAME)

        test_csv_path = Path(DATASETS_PATH).joinpath("home_rentals").joinpath("data.csv")

        res = query("SELECT name FROM master.dbo.sysdatabases where name = "mindsdb_test"", fetch=True)
        if len(res) == 0:
            query("create database mindsdb_test")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mindsdb/mindsdb
Commit Name: e5c681cba6344d361ab50b4e5d0517d871d5e3ab
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mssql.py
Class Name: MSSQLTest
Method Name: setUpClass


Project Name: mindsdb/mindsdb
Commit Name: 80ab5f2eb06c8023c6ba4b62c054ff04369913f8
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mongo.py
Class Name: MongoTest
Method Name: setUpClass


Project Name: Scitator/catalyst
Commit Name: 4376ad780b3f598037c628c1392859c4b881e1e3
Time: 2018-09-18
Author: scitator@gmail.com
File Name: dl/scripts/train.py
Class Name:
Method Name: main