<commit_before># -*- coding: utf-8 -*-
# Django settings for pranger project.
from __future__ import print_function, division, absolute_import, unicode_literals

import os

from django.core.exceptions import ImproperlyConfigured

import dj_database_url
from unipath import Path


# Helper functions

def env(name, default=None):
    return os.environ.get(name, default)

def require_env(name):
    value = env(name)
    if not value:
        raise ImproperlyConfigured('Missing {} env variable'.format(name))
    return value

true_values = ['1', 'true', 'y', 'yes', 1, True]


# Main configuration

DEBUG = require_env('DJANGO_DEBUG')
TEMPLATE_DEBUG = DEBUG
SHOW_DEBUG_TOOLBAR = DEBUG

ADMINS = (<commit_msg>Adjusted debug variable reading<commit_after># -*- coding: utf-8 -*-
# Django settings for pranger project.
from __future__ import print_function, division, absolute_import, unicode_literals

import os

from django.core.exceptions import ImproperlyConfigured

import dj_database_url
from unipath import Path


# Helper functions

def env(name, default=None):
    return os.environ.get(name, default)

def require_env(name):
    value = env(name)
    if not value:
        raise ImproperlyConfigured('Missing {} env variable'.format(name))
    return value

true_values = ['1', 'true', 'y', 'yes', 1, True]


# Main configuration

DEBUG = require_env('DJANGO_DEBUG').lower() in true_values
TEMPLATE_DEBUG = DEBUG
SHOW_DEBUG_TOOLBAR = DEBUG

ADMINS = (
{'fraction_non_alphanumeric': 0.10075394105551748, 'fraction_numerical': 0.00411240575736806, 'mean_word_length': 4.770750988142293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6856897', 'n_tokens_mistral': 469, 'n_tokens_neox': 453, 'n_words': 133}