<commit_before>import os
from os import environ as env
from django.conf import global_settings
import dj_database_url
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

SENTRY_DSN = env.get("SENTRY_DSN", None)
if SENTRY_DSN is not None:
    sentry_sdk.init(
        dsn=SENTRY_DSN,
        integrations=[DjangoIntegration()],
        traces_sample_rate = 1.0,
    )


DEBUG = env.get('DJANGO_DEBUG', 'true') == 'true'
PROJECT_ROOT = os.path.dirname(os.path.realpath(__name__))
DATA_PATH = os.path.join(PROJECT_ROOT, "data")

ADMINS = (
    ('<NAME>', '<EMAIL>'),
)

MANAGERS = ADMINS

DATABASES = {
    # load from DATABASE_URL env var, or default to this
    'default': dj_database_url.config(default='sqlite:///mpr.db')
}

# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = [
    'code4sa-mpr.herokuapp.com',
    'mpr.code4sa.org',
    'mpr.openup.org.za',
    'localhost',
    '127.0.0.1',
    'medicineprices.org.za'
]

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.<commit_msg>Increasing maximum sentry error message length<commit_after>import os
from os import environ as env
from django.conf import global_settings
import dj_database_url
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
import sentry_sdk.utils

SENTRY_DSN = env.get("SENTRY_DSN", None)
if SENTRY_DSN is not None:
    sentry_sdk.init(
        dsn=SENTRY_DSN,
        integrations=[DjangoIntegration()],
        traces_sample_rate = 1.0,
    )

    sentry_sdk.utils.MAX_STRING_LENGTH = 8192


DEBUG = env.get('DJANGO_DEBUG', 'true') == 'true'
PROJECT_ROOT = os.path.dirname(os.path.realpath(__name__))
DATA_PATH = os.path.join(PROJECT_ROOT, "data")

ADMINS = (
    ('<NAME>', '<EMAIL>'),
)

MANAGERS = ADMINS

DATABASES = {
    # load from DATABASE_URL env var, or default to this
    'default': dj_database_url.config(default='sqlite:///mpr.db')
}

# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = [
    'code4sa-mpr.herokuapp.com',
    'mpr.code4sa.org',
    'mpr.openup.org.za',
    'localhost',
    '127.0.0.1',
    'medicineprices.org.za'
]

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
{'fraction_non_alphanumeric': 0.11924528301886793, 'fraction_numerical': 0.010566037735849057, 'mean_word_length': 4.0495238095238095, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2830180', 'n_tokens_mistral': 973, 'n_tokens_neox': 949, 'n_words': 216}