869e56edc7e3153b534f065e6a73d924ec28bec3,vision/automl/edge_container_predict/automl_vision_edge_container_predict_test.py,,edge_container_predict_server_port,#,60

Before Change


        env={"DOCKER_API_VERSION": "1.38"})

    // Get the sample saved model.
    if not os.path.exists(MODEL_PATH):
        os.mkdir(MODEL_PATH)
    subprocess.check_output(
        ["gsutil", "-m", "cp", SAMPLE_SAVED_MODEL, MODEL_PATH])

    // Start the CPU docker.

After Change


        ["docker", "pull", CPU_DOCKER_GCS_PATH],
        env={"DOCKER_API_VERSION": "1.38"})

    if os.environ.get("TRAMPOLINE_V2") == "true":
        // Use /tmp
        model_path = tempfile.TemporaryDirectory()
    else:
        // Use project directory with Trampoline V1.
        model_path = tempfile.TemporaryDirectory(dir=os.path.dirname(__file__))
    print("Using model_path: {}".format(model_path))
    // Get the sample saved model.
    subprocess.check_output(
        ["gsutil", "-m", "cp", SAMPLE_SAVED_MODEL, model_path.name])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 869e56edc7e3153b534f065e6a73d924ec28bec3
Time: 2020-05-26
Author: tmatsuo@google.com
File Name: vision/automl/edge_container_predict/automl_vision_edge_container_predict_test.py
Class Name:
Method Name: edge_container_predict_server_port


Project Name: danforthcenter/plantcv
Commit Name: 6a9c9bdc8a438460d9d8500e323eea510883d6c6
Time: 2019-10-21
Author: dschneiderch@users.noreply.github.com
File Name: plantcv/utils/sample_images.py
Class Name:
Method Name: sample_images


Project Name: inferno-pytorch/inferno
Commit Name: 7cdf791cdbc5881b95c8a32ded4f500e48cd7ade
Time: 2017-06-27
Author: nasim.rahaman@iwr.uni-heidelberg.de
File Name: inferno/trainers/basic.py
Class Name: Trainer
Method Name: save_every