6ee10d9c36f26fa79321ddaae71f67c5b38fb146,dva/settings.py,,,#,16

Before Change


    BROKER_URL = "amqp://{}:{}@localhost//".format("guest","guest")
else:
    BROKER_URL = "amqp://{}:{}@rabbit//".format("dvauser","localpass")
    DATABASES = {
        "default": {
            "ENGINE": "django.db.backends.postgresql_psycopg2",
            "NAME": "postgres",
            "USER": "postgres",
            "PASSWORD": "postgres",
            "HOST": "db",
            "PORT": 5432,
        }
    }



// Password validation

After Change


    BROKER_URL = "amqp://{}:{}@localhost//".format("guest","guest")
elif "DOCKER_MODE" in os.environ:
    BROKER_URL = "amqp://{}:{}@{}//".format(os.environ.get("RABBIT_HOST","rabbit"),os.environ.get("RABBIT_USER","dvauser"),os.environ.get("RABBIT_PASS","localpass"))
    DATABASES = {
        "default": {
            "ENGINE": "django.db.backends.postgresql_psycopg2",
            "NAME": os.environ.get("DB_NAME","postgres"),
            "USER": os.environ.get("DB_USER","postgres"),
            "PASSWORD": os.environ.get("DB_PASS","postgres"),
            "HOST": os.environ.get("DB_HOST","db"),
            "PORT": 5432,
        }
    }



// Password validation
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 6ee10d9c36f26fa79321ddaae71f67c5b38fb146
Time: 2017-02-21
Author: akshayubhat@gmail.com
File Name: dva/settings.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: d87a82e8915f5bb3adc24b6f0f99ddece10be3ea
Time: 2021-02-10
Author: ameer@anyscale.com
File Name: python/ray/monitor.py
Class Name: Monitor
Method Name: __init__


Project Name: ray-project/ray
Commit Name: 7a6f8054d1fdf5a29907cad480e581cd5c864ea3
Time: 2021-02-09
Author: ameer@anyscale.com
File Name: python/ray/monitor.py
Class Name: Monitor
Method Name: __init__