5ab334c6f5dabdaefab5955fe819a6e1d6b012bb,dlp/redact.py,,,#,154

Before Change


        "replace_string",
        help="The string to use to replace protected data; for instance, "
             ""***" or "REDACTED".")
    parser_string.add_argument(
        "--info_types", action="append",
        help="Strings representing info types to look for. A full list of "
             "info categories and types is available from the API. Examples "
             "include "US_MALE_NAME", "US_FEMALE_NAME", "EMAIL_ADDRESS", "
             ""CANADA_SOCIAL_INSURANCE_NUMBER", "JAPAN_PASSPORT". If omitted, "
             "the API will use a limited default set. Specify this flag "
             "multiple times to specify multiple info types.")
    parser_string.add_argument(
        "--min_likelihood",
        choices=["LIKELIHOOD_UNSPECIFIED", "VERY_UNLIKELY", "UNLIKELY",
                 "POSSIBLE", "LIKELY", "VERY_LIKELY"],

After Change




if __name__ == "__main__":
    default_project = os.environ.get("GCLOUD_PROJECT")

    parser = argparse.ArgumentParser(description=__doc__)

    parser.add_argument(
        "filename", help="The path to the file to inspect.")
    parser.add_argument(
        "output_filename",
        help="The path to which the redacted image will be written.")
    parser.add_argument(
        "--project",
        help="The Google Cloud project id to use as a parent resource.",
        default=default_project)
    parser.add_argument(
        "--info_types", action="append",
        help="Strings representing info types to look for. A full list of "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 5ab334c6f5dabdaefab5955fe819a6e1d6b012bb
Time: 2018-03-19
Author: andrew.gorcester@gmail.com
File Name: dlp/redact.py
Class Name:
Method Name:


Project Name: yahoo/TensorFlowOnSpark
Commit Name: 981e4266d4ea816b08a762193bd52f40cd1a3242
Time: 2019-08-07
Author: leewyang@verizonmedia.com
File Name: examples/mnist/mnist_data_setup.py
Class Name:
Method Name:


Project Name: polyaxon/polyaxon
Commit Name: b20fc24180a7591d6e1850ebb0fc2812205bdfdf
Time: 2020-06-22
Author: mouradmourafiq@gmail.com
File Name: examples/in_cluster/kubeflow/tfjob/run.py
Class Name:
Method Name: