f61021c32fd99aac59fed6ccd321da75e789cdfa,server/website/website/views.py,,alt_get_info,#Any#Any#,1258

Before Change


    // Backdoor method for getting basic info
    if name in ("website", "logs"):
        tmpdir = os.path.realpath(".info")
        shutil.rmtree(tmpdir, ignore_errors=True)
        os.makedirs(tmpdir, exist_ok=True)

        if name == "website":
            filepath = os.path.join(tmpdir, "website_dump.json.gz")

After Change


def alt_get_info(request, name):  // pylint: disable=unused-argument
    // Backdoor method for getting basic info
    if name in ("website", "logs"):
        tmpdir = os.path.realpath(".info_{}".format(int(time.time())))
        os.makedirs(tmpdir, exist_ok=False)

        try:
            if name == "website":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cmu-db/ottertune
Commit Name: f61021c32fd99aac59fed6ccd321da75e789cdfa
Time: 2020-03-05
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/views.py
Class Name:
Method Name: alt_get_info


Project Name: okfn-brasil/serenata-de-amor
Commit Name: c4be1d6929eee29717435a07efa11e7e6c2a733a
Time: 2017-05-09
Author: renanfonseca@gmail.com
File Name: src/fetch_tse_data.py
Class Name:
Method Name:


Project Name: studioml/studio
Commit Name: 34df73c2d2d2a305efd438d7dcd9a01b3ed176f0
Time: 2017-09-08
Author: jason.liang@sentient.ai
File Name: studio/tartifact_store.py
Class Name: TartifactStore
Method Name: put_artifact