6d8249df42242dc2ec8c5298f5e00aac118005f7,server/start_container.py,,,#,5

Before Change


    subprocess.check_call(["./copy_defaults.py",])
    subprocess.check_call(["./init_fs.py",])
    block_on_manager = False
    if container_type.strip() == "worker":
        time.sleep(30)  // To avoid race condition where worker starts before migration is finished
        subprocess.check_call(["./launch_from_env.py","1"])
    subprocess.check_call(["./launch_from_env.py","0"])

After Change


    subprocess.check_call(["./copy_defaults.py",])
    subprocess.check_call(["./init_fs.py",])
    block_on_manager = False
    if "LAUNCH_SERVER" in os.environ or "LAUNCH_SERVER_NGINX" in os.environ:
        server_launch = True
    else:
        server_launch = False
    if server_launch:
        subprocess.check_call(["./launch_from_env.py","0"])
    else:
        time.sleep(30)  // To avoid race condition where worker starts before migration is finished
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 6d8249df42242dc2ec8c5298f5e00aac118005f7
Time: 2017-12-26
Author: akshayubhat@gmail.com
File Name: server/start_container.py
Class Name:
Method Name:


Project Name: NervanaSystems/nlp-architect
Commit Name: 82d819ee591297fc5943a77315ddfd22f2d320a5
Time: 2018-05-10
Author: peter.izsak@intel.com
File Name: nlp_architect/utils/text.py
Class Name: SpacyInstance
Method Name: __init__


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 90c7356471023c1bbeaabbcfff37eba11940bbe4
Time: 2018-08-13
Author: akshayubhat@gmail.com
File Name: server/init_fs.py
Class Name:
Method Name: init_models


Project Name: wkentaro/labelme
Commit Name: 6117ec6153cd9e11192e98ca2dfbd1888574cff6
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: validate