677c4d593b4f55923222bbcd88a26785c99f8140,server/init_fs.py,,,#,75

Before Change


            except:
                pass
    if ExternalServer.objects.count() == 0:
        for e in json.loads(file("../configs/custom_defaults/external.json").read()):
            de, _ = ExternalServer.objects.get_or_create(name=e["name"], url=e["url"])
            de.pull()
    init_models()

After Change


            except:
                pass
    if ExternalServer.objects.count() == 0 and "INIT_MODELS" in os.environ:
        for e in json.loads(base64.decodestring(os.environ["INIT_MODELS"]))["external"]:
            de, _ = ExternalServer.objects.get_or_create(name=e["name"], url=e["url"])
            de.pull()
    init_models()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 677c4d593b4f55923222bbcd88a26785c99f8140
Time: 2018-09-16
Author: akshayubhat@gmail.com
File Name: server/init_fs.py
Class Name:
Method Name:


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: a5660329907136fbacc4729a6f9cafed871f06b3
Time: 2018-03-31
Author: akshayubhat@gmail.com
File Name: server/init_fs.py
Class Name:
Method Name:


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 677c4d593b4f55923222bbcd88a26785c99f8140
Time: 2018-09-16
Author: akshayubhat@gmail.com
File Name: server/dvaui/views.py
Class Name:
Method Name: import_s3


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 677c4d593b4f55923222bbcd88a26785c99f8140
Time: 2018-09-16
Author: akshayubhat@gmail.com
File Name: server/dvaui/views.py
Class Name:
Method Name: yt