3b84c35aaf6f585222e54e77696ecab639b14692,dlp/risk.py,,k_map_estimate_analysis,#,529

Before Change


            raise

    // Register the callback and wait on the event.
    subscription.open(callback)
    finished = job_done.wait(timeout=timeout)
    if not finished:
        print("No event received before the timeout. Please verify that the "
              "subscription provided is subscribed to the topic provided.")

After Change


    // Call API to start risk analysis job
    operation = dlp.create_dlp_job(parent, risk_job=risk_job)

    try:
        subscription.result(timeout=timeout)
    except TimeoutError:
        print("No event received before the timeout. Please verify that the "
              "subscription provided is subscribed to the topic provided.")
        subscription.close()
// [END dlp_k_map]


if __name__ == "__main__":
    parser = argparse.ArgumentParser(description=__doc__)
    subparsers = parser.add_subparsers(
        dest="content", help="Select how to submit content to the API.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 3b84c35aaf6f585222e54e77696ecab639b14692
Time: 2019-02-04
Author: github@engelke.com
File Name: dlp/risk.py
Class Name:
Method Name: k_map_estimate_analysis


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 3b84c35aaf6f585222e54e77696ecab639b14692
Time: 2019-02-04
Author: github@engelke.com
File Name: dlp/risk.py
Class Name:
Method Name: l_diversity_analysis


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 3b84c35aaf6f585222e54e77696ecab639b14692
Time: 2019-02-04
Author: github@engelke.com
File Name: dlp/risk.py
Class Name:
Method Name: k_anonymity_analysis


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 3b84c35aaf6f585222e54e77696ecab639b14692
Time: 2019-02-04
Author: github@engelke.com
File Name: dlp/risk.py
Class Name:
Method Name: categorical_risk_analysis


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 3b84c35aaf6f585222e54e77696ecab639b14692
Time: 2019-02-04
Author: github@engelke.com
File Name: dlp/risk.py
Class Name:
Method Name: numerical_risk_analysis