<commit_before>import os

def _getbool(variable_name):
    return os.getenv(variable_name) in ['True', 'true', '1', 'yes']

DEBUG = _getbool('DEBUG')
if DEBUG:
    SQLALCHEMY_ECHO = True

SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')

REQUIRE_SSL = _getbool('REQUIRE_SSL')
LOG_LEVEL = (os.getenv('LOG_LEVEL') or 'debug').lower()
REDIS_LOG_LEVEL = (os.getenv('REDIS_LOG_LEVEL') or LOG_LEVEL).lower()
# apparently this is useful in sqlalchemy
SERVICE_NAME = os.getenv('SERVICE_NAME') or 'Pepper'

SECRET_KEY = os.getenv('SECRET_KEY')
RESUME_HASH_SALT = os.getenv('RESUME_HASH_SALT')
SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY')
MLH_APPLICATION_ID = os.getenv('MLH_APPLICATION_ID')
MLH_SECRET = os.getenv('MLH_SECRET')
BASE_URL = os.getenv('BASE_URL')
GENERAL_INFO_EMAIL = os.getenv('GENERAL_INFO_EMAIL')
SLACK_TOKEN = os.getenv('SLACK_TOKEN')
MAILGUN_PUB_KEY = os.getenv('MAILGUN_PUB_KEY')
S3_BUCKET_NAME = os.getenv('S3_BUCKET_NAME')
AWS_ACCESS_KEY = os.getenv('AWS_ACCESS_KEY')
AWS_SECRET_KEY = os.getenv('AWS_SECRET_KEY')
REGISTRATION_OPENED = _getbool('REGISTRATION_OPENED')
REGISTRATION_CLOSED = _getbool('REGISTRATION_CLOSED')
CHECK_IN_ENABLED = _getbool('CHECK_IN_ENABLED')
LETS_ENCRYPT_PATH = os.getenv('LETS_ENCRYPT_PATH')
LETS_ENCRYPT_PATH_CHALLENGE = os.getenv('LETS_ENCRYPT_PATH_CHALLENGE')
CDN_URL = os.getenv('CDN_URL')
CHECK_IN_SECRET = os.getenv('CHECK_IN_SECRET')
FIREBASE_KEY = os.getenv('FIREBASE_KEY')
RESUMES_LINK = os.getenv('RESUMES_LINK')
REDIS_URL = os.getenv('REDIS_URL')
RECOVER_SALT = os.getenv('RECOVER_SALT')
MAX_BATCH_EMAILS = int(os.getenv('MAX_BATCH_EMAILS', '500'))
SENT_ACCEPTANCES = _getbool('SENT_ACCEPTANCES')
KEEN_MAX_RETRIES = int(os.getenv('KEEN_MAX_RETRIES', '3'))


# Event Specifc Config
# HACKATHON_NAME = os.getenv('HACKATHON_NAME')
HACKATHON_NAME = "HackTX"
EVENT_NAME = "HackTX 2018"
EVENT_YEAR = "2018"
EVENT_START = "October 28"
EVENT_COMPLETE_DURATION = "October 28-29, 2018"
MEDICAL_AUTHORIZATION_END = "October 31, 2018"
EVENT_VENUE = ""
EVENT_LOCATION = "Austin, TX"
EVENT_FACEBOOK_GROUP = "https://www.facebook.com/groups/1111939315556082/"

# static assets in pepper/static<commit_msg>added innovation api key variable<commit_after>import os

def _getbool(variable_name):
    return os.getenv(variable_name) in ['True', 'true', '1', 'yes']

DEBUG = _getbool('DEBUG')
if DEBUG:
    SQLALCHEMY_ECHO = True

SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')

REQUIRE_SSL = _getbool('REQUIRE_SSL')
LOG_LEVEL = (os.getenv('LOG_LEVEL') or 'debug').lower()
REDIS_LOG_LEVEL = (os.getenv('REDIS_LOG_LEVEL') or LOG_LEVEL).lower()
# apparently this is useful in sqlalchemy
SERVICE_NAME = os.getenv('SERVICE_NAME') or 'Pepper'

SECRET_KEY = os.getenv('SECRET_KEY')
RESUME_HASH_SALT = os.getenv('RESUME_HASH_SALT')
SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY')
MLH_APPLICATION_ID = os.getenv('MLH_APPLICATION_ID')
MLH_SECRET = os.getenv('MLH_SECRET')
BASE_URL = os.getenv('BASE_URL')
GENERAL_INFO_EMAIL = os.getenv('GENERAL_INFO_EMAIL')
SLACK_TOKEN = os.getenv('SLACK_TOKEN')
MAILGUN_PUB_KEY = os.getenv('MAILGUN_PUB_KEY')
S3_BUCKET_NAME = os.getenv('S3_BUCKET_NAME')
AWS_ACCESS_KEY = os.getenv('AWS_ACCESS_KEY')
AWS_SECRET_KEY = os.getenv('AWS_SECRET_KEY')
REGISTRATION_OPENED = _getbool('REGISTRATION_OPENED')
REGISTRATION_CLOSED = _getbool('REGISTRATION_CLOSED')
CHECK_IN_ENABLED = _getbool('CHECK_IN_ENABLED')
LETS_ENCRYPT_PATH = os.getenv('LETS_ENCRYPT_PATH')
LETS_ENCRYPT_PATH_CHALLENGE = os.getenv('LETS_ENCRYPT_PATH_CHALLENGE')
CDN_URL = os.getenv('CDN_URL')
CHECK_IN_SECRET = os.getenv('CHECK_IN_SECRET')
FIREBASE_KEY = os.getenv('FIREBASE_KEY')
RESUMES_LINK = os.getenv('RESUMES_LINK')
REDIS_URL = os.getenv('REDIS_URL')
RECOVER_SALT = os.getenv('RECOVER_SALT')
MAX_BATCH_EMAILS = int(os.getenv('MAX_BATCH_EMAILS', '500'))
SENT_ACCEPTANCES = _getbool('SENT_ACCEPTANCES')
KEEN_MAX_RETRIES = int(os.getenv('KEEN_MAX_RETRIES', '3'))
INNOVATION_PORTAL_KEY = os.getenv('INNOVATION_PORTAL_KEY')


# Event Specifc Config
# HACKATHON_NAME = os.getenv('HACKATHON_NAME')
HACKATHON_NAME = "HackTX"
EVENT_NAME = "HackTX 2018"
EVENT_YEAR = "2018"
EVENT_START = "October 28"
EVENT_COMPLETE_DURATION = "October 28-29, 2018"
MEDICAL_AUTHORIZATION_END = "October 31, 2018"
EVENT_VENUE = ""
EVENT_LOCATION = "Austin, TX"
EVENT_FACEBOOK_GROUP = "https://www.facebook.com/groups/1111939315556082/"

# static assets in pepper/static
{'fraction_non_alphanumeric': 0.13114005026273703, 'fraction_numerical': 0.021475896732922092, 'mean_word_length': 8.415053763440861, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3468738', 'n_tokens_mistral': 1965, 'n_tokens_neox': 1868, 'n_words': 257}