<commit_before>from .base import *
import os

MINIMUM_SAMPLE_SIZE = 3

INSTALLED_APPS += ('storages',)

SECRET_KEY = os.environ['SECRET_KEY']

DEBUG = False

ALLOWED_HOSTS = ['fixit.americanarchive.org', 'fixit.wgbh-mla.org']

LOG_DIRECTORY = '/home/wgbh/logs'

PUA_CACHE_DIRECTORY = '/home/wgbh/pua_cache/'

GA_CODE = os.environ['GA_CODE']

AWS_HEADERS = {
    'Expires': 'Thu, 31 Dec 2099 20:00:00 GMT',
    'Cache-Control': 'max-age=94608000',
}
AWS_STORAGE_BUCKET_NAME = os.environ['S3_BUCKET_NAME']
AWS_ACCESS_KEY_ID = os.environ['AWS_ACCESS_KEY_ID']
AWS_SECRET_ACCESS_KEY = os.environ['AWS_SECRET_ACCESS_KEY']

AWS_S3_CUSTOM_DOMAIN = 's3.amazonaws.com/{}'.format(
    AWS_STORAGE_BUCKET_NAME
)

STATIC_URL = 'https://s3.amazonaws.com/{}/'.format(AWS_S3_CUSTOM_DOMAIN)
STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = (
    'rest_framework.renderers.JSONRenderer',
)

NEWRELIC_CONFIG_PATH = os.environ['NEWRELIC_CONFIG_PATH']
NEWRELIC_ENV = os.environ['NEWRELIC_ENV']
<commit_msg>Add ADMINS setting for prod<commit_after>from .base import *
import os

MINIMUM_SAMPLE_SIZE = 3

INSTALLED_APPS += ('storages',)

SECRET_KEY = os.environ['SECRET_KEY']

DEBUG = False

ADMINS = [(os.environ['ADMIN_NAME'], os.environ['ADMIN_EMAIL'])]

ALLOWED_HOSTS = ['fixit.americanarchive.org', 'fixit.wgbh-mla.org']

LOG_DIRECTORY = '/home/wgbh/logs'

PUA_CACHE_DIRECTORY = '/home/wgbh/pua_cache/'

GA_CODE = os.environ['GA_CODE']

AWS_HEADERS = {
    'Expires': 'Thu, 31 Dec 2099 20:00:00 GMT',
    'Cache-Control': 'max-age=94608000',
}
AWS_STORAGE_BUCKET_NAME = os.environ['S3_BUCKET_NAME']
AWS_ACCESS_KEY_ID = os.environ['AWS_ACCESS_KEY_ID']
AWS_SECRET_ACCESS_KEY = os.environ['AWS_SECRET_ACCESS_KEY']

AWS_S3_CUSTOM_DOMAIN = 's3.amazonaws.com/{}'.format(
    AWS_STORAGE_BUCKET_NAME
)

STATIC_URL = 'https://s3.amazonaws.com/{}/'.format(AWS_S3_CUSTOM_DOMAIN)
STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = (
    'rest_framework.renderers.JSONRenderer',
)

NEWRELIC_CONFIG_PATH = os.environ['NEWRELIC_CONFIG_PATH']
NEWRELIC_ENV = os.environ['NEWRELIC_ENV']

{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.025806451612903226, 'mean_word_length': 6.33445945945946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '5254284', 'n_tokens_mistral': 973, 'n_tokens_neox': 953, 'n_words': 109}