b2a18826659751d9f1f5f7c9b63c9fb9fe8ecfdc,luminoth/tools/cloud/gcloud.py,,train,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,143

Before Change



    // We"re only warning instead of forcing it with click.Choice because the
    // list of regions is subject to change in the future.
    if region not in RECOGNIZED_REGIONS:
        tf.logging.warn(""{}" is not a recognized region. Was your region "
                        "recently added to the GCP?".format(region))

    project_id = get_project_id(service_account_json)
    if project_id is None:
        raise ValueError(
            "Missing "project_id" in service_account_json "{}"".format(

After Change


    regionrequest = cloudcompute.regions().get(
        region=region, project=project_id
    )
    try:
        regionrequest.execute()
    except HttpError as err:
        tf.logging.error("Couldn"t find region.")
        tf.logging.error(err)

    training_inputs = {
        "scaleTier": scale_tier,
        "packageUris": [
            "gs://{}/{}".format(bucket_name, package_path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: b2a18826659751d9f1f5f7c9b63c9fb9fe8ecfdc
Time: 2017-10-05
Author: iangtayler@gmail.com
File Name: luminoth/tools/cloud/gcloud.py
Class Name:
Method Name: train


Project Name: NifTK/NiftyNet
Commit Name: 648f547d0feee6ecd20955f82db1e9d7e312d090
Time: 2017-08-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name: ImageReader
Method Name: initialise_reader


Project Name: uber/ludwig
Commit Name: eb91f3cc51551f7aea71c653b0dcf9b86b2c224a
Time: 2019-08-26
Author: smiryala@uber.com
File Name: ludwig/features/vector_feature.py
Class Name: VectorBaseFeature
Method Name: add_feature_data


Project Name: ray-project/ray
Commit Name: 2cb9cfb2b6b1d2b5a14b543310761d64b76b8508
Time: 2020-04-12
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/http_proxy.py
Class Name: HTTPProxy
Method Name: __call__