<commit_before># Django settings for humbug project.
import os
import platform
import logging
import time

from zephyr.openid import openid_failure_handler

SERVER_GENERATION = int(time.time())

DEPLOYED = (('humbughq.com' in platform.node())
            or os.path.exists('/etc/humbug-server'))
STAGING_DEPLOYED = (platform.node() == 'staging.humbughq.com')

DEBUG = not DEPLOYED
TEMPLATE_DEBUG = DEBUG
TEST_SUITE = False

if DEBUG:
    INTERNAL_IPS = ('127.0.0.1',)
if DEPLOYED:
    # The IP addresses are for app.humbughq.com and staging.humbughq.com
    ALLOWED_HOSTS = ['localhost', '.humbughq.com', '172.16.58.3', '172.16.58.3']
else:
    ALLOWED_HOSTS = ['localhost']

ADMINS = (
    ('Humbug Error Reports', '<EMAIL>'),
)

MANAGERS = ADMINS

DATABASES = {"default": {
    'ENGINE': 'django.db.backends.postgresql_psycopg2',
    'NAME': 'humbug',
    'USER': 'humbug',
    'PASSWORD': '', # Authentication done via certificates
    'HOST': 'postgres.humbughq.com',
    'SCHEMA': 'humbug',
    'OPTIONS': {
        'sslmode': 'verify-full',
        },
    },
}<commit_msg>Update prod IP address in ALLOWED_HOSTS.<commit_after># Django settings for humbug project.
import os
import platform
import logging
import time

from zephyr.openid import openid_failure_handler

SERVER_GENERATION = int(time.time())

DEPLOYED = (('humbughq.com' in platform.node())
            or os.path.exists('/etc/humbug-server'))
STAGING_DEPLOYED = (platform.node() == 'staging.humbughq.com')

DEBUG = not DEPLOYED
TEMPLATE_DEBUG = DEBUG
TEST_SUITE = False

if DEBUG:
    INTERNAL_IPS = ('127.0.0.1',)
if DEPLOYED:
    # The IP addresses are for app.humbughq.com and staging.humbughq.com
    ALLOWED_HOSTS = ['localhost', '.humbughq.com', '172.16.17.32', '172.16.58.3']
else:
    ALLOWED_HOSTS = ['localhost']

ADMINS = (
    ('Humbug Error Reports', '<EMAIL>'),
)

MANAGERS = ADMINS

DATABASES = {"default": {
    'ENGINE': 'django.db.backends.postgresql_psycopg2',
    'NAME': 'humbug',
    'USER': 'humbug',
    'PASSWORD': '', # Authentication done via certificates
    'HOST': 'postgres.humbughq.com',
    'SCHEMA': 'humbug',
    'OPTIONS': {
        'sslmode': 'verify-full',
        },
    },
}
{'fraction_non_alphanumeric': 0.15521978021978022, 'fraction_numerical': 0.02152014652014652, 'mean_word_length': 3.6989247311827955, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4581296', 'n_tokens_mistral': 864, 'n_tokens_neox': 823, 'n_words': 175}