f5487e3b76129b97f29365058d169c72cb37e3cf,sos/sos_step.py,,execute_task,#Any#Any#Any#,69

Before Change


        if global_def:
            SoS_exec(global_def, global_sigil)
        // step process
        if signature is None:
            env.sos_dict.set("__step_sig__", None)
        else:
            env.sos_dict.set("__step_sig__", os.path.basename(signature.proc_info).split(".")[0])
        SoS_exec(task, sigil)
        os.chdir(orig_dir)
    except Exception as e:
        return {"succ": 1, "exception": e, "path": os.environ["PATH"]}

After Change


    (from SoS env.sos_dict). This function should be self-contained in that
    it can be handled by a task manager, be executed locally in a separate
    process or remotely on a different machine."""
    with open(task_file, "rb") as task:
        params = pickle.load(task)

    task, global_def, global_sigil, sos_dict, sigil = params.data
    if verbosity is not None:
        env.verbosity = verbosity
    if sigmode is not None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: f5487e3b76129b97f29365058d169c72cb37e3cf
Time: 2017-02-14
Author: ben.bog@gmail.com
File Name: sos/sos_step.py
Class Name:
Method Name: execute_task


Project Name: mlflow/mlflow
Commit Name: 1b3b9965c20e4d0fd6541182705b7fb2b4b669bc
Time: 2018-11-12
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/spark.py
Class Name:
Method Name: save_model


Project Name: mlflow/mlflow
Commit Name: c67c1826c2776b97d3f2b4a38cd864329d15f480
Time: 2018-11-10
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/sklearn.py
Class Name:
Method Name: save_model