<commit_before>"""
codebox.conf
~~~~~~~~~~~

:copyright: (c) 2011 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""

import os, os.path
import urlparse

class Config(object):
    DEBUG = False
    TESTING = False
    LOG_LEVEL = os.environ.get('LOG_LEVEL', 'DEBUG')
    SECRET_KEY = os.environ.get('SECRET_KEY', <KEY>')
    REDIS_DB = 0
    JANRAIN_API_KEY = os.environ.get('JANRAIN_API_KEY')
    DOMAIN_BLACKLIST = ['gmail.com', 'hotmail.com', 'live.com', 'msn.com', 'yahoo.com', 'googlemail.com', 'facebookmail.com']
    MAIL_SERVER = 'smtp.sendgrid.net'
    MAIL_PORT = 25
    MAIL_HOST_USER = os.environ.get('SENDGRID_USERNAME')
    MAIL_HOST_PASSWORD = <PASSWORD>('SENDGRID_PASSWORD')
    MAIL_USE_TLS = True
    MAIL_DOMAIN = os.environ.get('SENDGRID_DOMAIN', 'codebox.cc')
    DEFAULT_MAIL_SENDER = '<EMAIL>'

if os.environ.has_key('REDISTOGO_URL'):<commit_msg>Flask-Mail docs are out of date, use correct conf vars<commit_after>"""
codebox.conf
~~~~~~~~~~~

:copyright: (c) 2011 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""

import os, os.path
import urlparse

class Config(object):
    DEBUG = False
    TESTING = False
    LOG_LEVEL = os.environ.get('LOG_LEVEL', 'DEBUG')
    SECRET_KEY = os.environ.get('SECRET_KEY', '\x89\x1d\xec\x8eJ\xda=C`\xf3<X\x81\xff\x1e\r{+\x1b\xe1\xd1@ku')
    REDIS_DB = 0
    JANRAIN_API_KEY = os.environ.get('JANRAIN_API_KEY')
    DOMAIN_BLACKLIST = ['gmail.com', 'hotmail.com', 'live.com', 'msn.com', 'yahoo.com', 'googlemail.com', 'facebookmail.com']
    MAIL_SERVER = 'smtp.sendgrid.net'
    MAIL_PORT = 25
    MAIL_USERNAME = os.environ.get('SENDGRID_USERNAME')
    MAIL_PASSWORD = os.environ.get('SENDGRID_PASSWORD')
    MAIL_USE_TLS = True
    MAIL_DOMAIN = os.environ.get('SENDGRID_DOMAIN', 'codebox.cc')
    DEFAULT_MAIL_SENDER = '<EMAIL>'

if os.environ.has_key('REDISTOGO_URL'):
{'fraction_non_alphanumeric': 0.16098081023454158, 'fraction_numerical': 0.015458422174840085, 'mean_word_length': 4.332386363636363, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '3254466', 'n_tokens_mistral': 772, 'n_tokens_neox': 759, 'n_words': 130}