aae176a1b1f0afdbe500ed0af17bb1b8cc67328c,run/django/mysite/settings.py,,,#,30

Before Change


                "UTF-8"
            )

    with open(env_file, "w") as f:
        f.write(payload)

env = environ.Env()
env.read_env(env_file)
// [END cloudrun_django_secretconfig]

After Change


    // Create local settings if running with CI, for unit testing
    if os.getenv("TRAMPOLINE_CI", None):
        placeholder = f"SECRET_KEY=a\nGS_BUCKET_NAME=none\nDATABASE_URL=sqlite://{os.path.join(BASE_DIR, "db.sqlite3")}"
        env.read_env(io.StringIO(placeholder))
    else:
        // [START cloudrun_django_secretconfig]
        import google.auth
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: aae176a1b1f0afdbe500ed0af17bb1b8cc67328c
Time: 2021-02-11
Author: glasnt@google.com
File Name: run/django/mysite/settings.py
Class Name:
Method Name:


Project Name: ijmarshall/robotreviewer
Commit Name: d3a72b14a595a5b629d80f0b788b1af4b43b9e1e
Time: 2016-08-05
Author: mail@ijmarshall.com
File Name: robotreviewer/textprocessing/pdfreader.py
Class Name: PdfReader
Method Name: run_grobid


Project Name: ijmarshall/robotreviewer
Commit Name: 841bcc7c54e78387b6c0302fd1d29cbcb7db4828
Time: 2016-08-05
Author: mail@ijmarshall.com
File Name: robotreviewer/textprocessing/pdfreader.py
Class Name: PdfReader
Method Name: run_grobid