<commit_before># -*- coding: utf-8 -*-
"""Heroku specific settings. These are used to deploy opencomparison to
Heroku's platform.
"""


from postgresify import postgresify

from settings.base import *


########## DATABASES
DATABASES = postgresify()


########## CACHE
CACHE_TIMEOUT = 60 * 60 * 24


########## WSGI SERVER
INSTALLED_APPS += ['gunicorn']


LAUNCHPAD_ACTIVE = False

# Analytics ID
URCHIN_ID = ""

# Email Settings
DEFAULT_FROM_EMAIL = \
        'Django Packages <<EMAIL>>'
EMAIL_SUBJECT_PREFIX = '[Django Packages] '


RESTRICT_PACKAGE_EDITORS = False
RESTRICT_GRID_EDITORS = False

ROOT_URLCONF = "app.urls"

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

SECRET_KEY = os.environ['SECRET_KEY']

GITHUB_API_SECRET = os.environ['GITHUB_API_SECRET']
GITHUB_APP_ID = os.environ['GITHUB_APP_ID']
SITE_TITLE = os.environ['SITE_TITLE']
FRAMEWORK_TITLE = os.environ['FRAMEWORK_TITLE']

PIWIK_CODE = """
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://manage.cartwheelweb.com/piwik/" : "http://manage.cartwheelweb.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://manage.cartwheelweb.com/piwik/piwik.php?idsite=4" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
"""<commit_msg>Making Heroku pull our email settings from the environment.<commit_after># -*- coding: utf-8 -*-
"""Heroku specific settings. These are used to deploy opencomparison to
Heroku's platform.
"""


from os import environ

from postgresify import postgresify

from settings.base import *


########## DATABASES
DATABASES = postgresify()


########## CACHE
CACHE_TIMEOUT = 60 * 60 * 24


########## WSGI SERVER
INSTALLED_APPS += ['gunicorn']


LAUNCHPAD_ACTIVE = False

# Analytics ID
URCHIN_ID = ""

# Email Settings
DEFAULT_FROM_EMAIL = environ.get('DEFAULT_FROM_EMAIL',
        'Django Packages <<EMAIL>>')
EMAIL_SUBJECT_PREFIX = environ.get('EMAIL_SUBJECT_PREFIX', '[Django Packages] ')


RESTRICT_PACKAGE_EDITORS = False
RESTRICT_GRID_EDITORS = False

ROOT_URLCONF = "app.urls"

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

SECRET_KEY = os.environ['SECRET_KEY']

GITHUB_API_SECRET = os.environ['GITHUB_API_SECRET']
GITHUB_APP_ID = os.environ['GITHUB_APP_ID']
SITE_TITLE = os.environ['SITE_TITLE']
FRAMEWORK_TITLE = os.environ['FRAMEWORK_TITLE']

PIWIK_CODE = """
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://manage.cartwheelweb.com/piwik/" : "http://manage.cartwheelweb.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://manage.cartwheelweb.com/piwik/piwik.php?idsite=4" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
"""
{'fraction_non_alphanumeric': 0.17173524150268335, 'fraction_numerical': 0.008348240906380441, 'mean_word_length': 5.696606786427146, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '2836788', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1204, 'n_words': 218}