44f637a6fc9ab8d1e69b293e26425be0cdabc499,patches/sitecustomize.py,,init,#,9

Before Change


kernel_integrations_var = os.getenv("KAGGLE_KERNEL_INTEGRATIONS")

def init():
    bq_user_jwt = os.getenv("KAGGLE_USER_SECRETS_TOKEN")
    if kaggle_proxy_token or bq_user_jwt:
        from google.auth import credentials, environment_vars
        from google.cloud import bigquery
        from google.cloud.bigquery._http import Connection

After Change


kernel_integrations_var = os.getenv("KAGGLE_KERNEL_INTEGRATIONS")

def init():
    is_jwe_set = "KAGGLE_USER_SECRETS_TOKEN" in os.environ
    if kaggle_proxy_token or is_jwe_set:
        init_bigquery()
    if is_jwe_set:
        if get_integrations().has_gcs():
            init_gcs()


def init_bigquery():
    from google.auth import credentials, environment_vars
    from google.cloud import bigquery
    from google.cloud.bigquery._http import Connection
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Kaggle/docker-python
Commit Name: 44f637a6fc9ab8d1e69b293e26425be0cdabc499
Time: 2019-07-09
Author: ifigotin@google.com
File Name: patches/sitecustomize.py
Class Name:
Method Name: init


Project Name: regel/loudml
Commit Name: 0b823df0bf0c82cf1458b7f2dc3b24628e011795
Time: 2019-09-29
Author: sebastien.regel@gmail.com
File Name: loudml/setup.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: 9df22084c5753cd5b3480afddee054dcdd774438
Time: 2017-05-29
Author: dkamalakarreddy@gmail.com
File Name: nilearn/datasets/atlas.py
Class Name:
Method Name: fetch_atlas_harvard_oxford