f09bc87a441887d53b66f5292ecfd1a9836a3839,mltsp/run_in_docker_container.py,,build_model_in_docker_container,#Any#Any#Any#,174

Before Change


        // copy model object produced in Docker container to host
        path = "/tmp/%s_%s.pkl" % (featureset_key, model_type)
        docker_copy(client, cont_id, path, target=cfg.MODELS_FOLDER)
        print(os.path.join(cfg.MODELS_FOLDER,
                           "%s_%s.pkl" % (featureset_key, model_type)),
              "copied to host machine.")
        print("Process complete.")
    except:
        raise
    finally:

After Change


        Human-readable success message.

    
    copied_data_dir = tempfile.mkdtemp()
    args_dict = locals()

    tmp_files = []
    args_dict["path_map"] = {copied_data_dir, "/home/copied_data_files"}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: f09bc87a441887d53b66f5292ecfd1a9836a3839
Time: 2015-04-15
Author: a.crellinquick@gmail.com
File Name: mltsp/run_in_docker_container.py
Class Name:
Method Name: build_model_in_docker_container


Project Name: deepchem/deepchem
Commit Name: f5cfcea4e49aeb418b5b066dadd960c2015e04de
Time: 2016-11-01
Author: bharath.ramsundar@gmail.com
File Name: deepchem/datasets/tests/test_load.py
Class Name: TestLoad
Method Name: test_multiload


Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main