a58d06de6c7eded0105b893841be7e600de50b60,storage/transfer_service/aws_request.py,,,#,73

Before Change


        transfer_job)).execute()
    logging.info("Returned transferJob: %s", json.dumps(result, indent=4))

if __name__ == "__main__":
    main()
// [END all]

After Change


    logging.info("Returned transferJob: %s", json.dumps(result, indent=4))
// [END main]

if __name__ == "__main__":
    parser = argparse.ArgumentParser(
        description="Create a one-off transfer from Amazon S3 to Google Cloud "
        "Storage.")
    parser.add_argument("description", help="Transfer description.")
    parser.add_argument("project_id", help="Your Google Cloud project ID.")
    parser.add_argument("date", help="Date YYYY/MM/DD.")
    parser.add_argument("time", help="Time (24hr) HH:MM.")
    parser.add_argument("source_bucket", help="Source bucket name.")
    parser.add_argument("access_key", help="Your AWS access key id.")
    parser.add_argument("secret_access_key", help="Your AWS secret access "
                        "key.")
    parser.add_argument("sink_bucket", help="Sink bucket name.")

    args = parser.parse_args()
    date = datetime.datetime.strptime(args.date, "%Y/%m/%d")
    time = datetime.datetime.strptime(args.time, "%H:%M")

    main(
        args.description,
        args.project_id,
        date.year,
        date.month,
        date.day,
        time.hour,
        time.minute,
        args.source_bucket,
        args.access_key,
        args.secret_access_key,
        args.sink_bucket)

// [END all]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 35

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a58d06de6c7eded0105b893841be7e600de50b60
Time: 2015-09-18
Author: sfan@google.com
File Name: storage/transfer_service/aws_request.py
Class Name:
Method Name:


Project Name: kentsommer/pytorch-value-iteration-networks
Commit Name: 2205fce8ac9f1d9f01f81996f7deef9a7b197a8d
Time: 2020-10-01
Author: 16188477+shuishida@users.noreply.github.com
File Name: dataset/make_training_data.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a58d06de6c7eded0105b893841be7e600de50b60
Time: 2015-09-18
Author: sfan@google.com
File Name: storage/transfer_service/nearline_request.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a58d06de6c7eded0105b893841be7e600de50b60
Time: 2015-09-18
Author: sfan@google.com
File Name: storage/transfer_service/aws_request.py
Class Name:
Method Name: