6c60876cddfbb07a704bb2bd9d86bf04c7019662,loudml/tests/test_app.py,AppTests,setUp,#AppTests#,92

Before Change



        self.source.commit()

        self.dirpath = tempfile.mkdtemp()
        configyml = os.path.join(self.dirpath, "config.yml")
        cfg = open(configyml, "w")
        cfg.write(CONFIG.format(ADDR, self.db, self.dirpath))
        cfg.close()

        g_app_init(configyml)

    def tearDown(self):

After Change


        self._jwt = None

    def setUp(self):
        if "LOUDML_ADDR" in os.environ:
            self.loudml_addr = os.environ["LOUDML_ADDR"]
        else:
            self.loudml_addr = "localhost:8077"

        self.bucket_interval = 20 * 60

        t0 = int(datetime.datetime.now().timestamp())
        t0 -= t0 % self.bucket_interval
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: regel/loudml
Commit Name: 6c60876cddfbb07a704bb2bd9d86bf04c7019662
Time: 2019-09-19
Author: sebastien.regel@gmail.com
File Name: loudml/tests/test_app.py
Class Name: AppTests
Method Name: setUp


Project Name: commonsense/conceptnet5
Commit Name: db4b9f4d50af9e83733fc301c32e85cbe6d9c812
Time: 2014-02-25
Author: rob@luminoso.com
File Name: conceptnet5/builders/json_to_solr.py
Class Name:
Method Name: convert_to_solr


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 757ec7a9c823273004e2e9a265d3e3cd22c908b3
Time: 2019-04-30
Author: eriklindernoren@live.se
File Name: models.py
Class Name: Darknet
Method Name: load_darknet_weights