<commit_before>"""Common settings and globals."""

from os.path import abspath, basename, dirname, join, normpath, exists
from sys import path
import environ

########## PATH CONFIGURATION
# Absolute filesystem path to the Django project directory:
DJANGO_ROOT = dirname(dirname(abspath(__file__)))

# Absolute filesystem path to the top-level project folder:
SITE_ROOT = DJANGO_ROOT

# Site name:
SITE_NAME = basename(DJANGO_ROOT)

# Add our project to our pythonpath, this way we don't need to type our project
# name in our dotted import paths:
path.append(DJANGO_ROOT)
########## END PATH CONFIGURATION

p = lambda x: normpath(join(SITE_ROOT, x))

root = environ.Path(normpath(join(SITE_ROOT, '../')))
env = environ.Env(DEBUG=(bool, False),) # set default values and casting
environ.Env.read_env(normpath(join(SITE_ROOT, "../.env"))) # reading .env file

########## DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = env('DEBUG')

########## END DEBUG CONFIGURATION


########## MANAGER CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#admins
ADMINS = (
    ('<NAME>', '<EMAIL>'),
)

# See: https://docs.djangoproject.com/en/dev/ref/settings/#managers
MANAGERS = ADMINS
########## END MANAGER CONFIGURATION


########## DATABASE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {
   'default': env.db()
}
########## END DATABASE CONFIGURATION
<commit_msg>cleanup<commit_after>"""Common settings and globals."""

from os.path import abspath, basename, dirname, join, normpath, exists
from sys import path
import environ

########## PATH CONFIGURATION
# Absolute filesystem path to the Django project directory:
DJANGO_ROOT = dirname(dirname(abspath(__file__)))

# Absolute filesystem path to the top-level project folder:
SITE_ROOT = DJANGO_ROOT

# Site name:
SITE_NAME = basename(DJANGO_ROOT)

# Add our project to our pythonpath, this way we don't need to type our project
# name in our dotted import paths:
path.append(DJANGO_ROOT)
########## END PATH CONFIGURATION

p = lambda x: normpath(join(SITE_ROOT, x))

root = environ.Path(normpath(join(SITE_ROOT, '../')))
env = environ.Env(DEBUG=(bool, False),) # set default values and casting
environ.Env.read_env(normpath(join(SITE_ROOT, "../.env"))) # reading .env file

########## DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = env('DEBUG')
########## END DEBUG CONFIGURATION

PUBLIC_KEY = env('PUBLIC_KEY', default='thisisthepublickey')


########## MANAGER CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#admins
ADMINS = (
    ('<NAME>', '<EMAIL>'),
)

# See: https://docs.djangoproject.com/en/dev/ref/settings/#managers
MANAGERS = ADMINS
########## END MANAGER CONFIGURATION


########## DATABASE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {
   'default': env.db()
}
########## END DATABASE CONFIGURATION

{'fraction_non_alphanumeric': 0.17117117117117117, 'fraction_numerical': 0.0, 'mean_word_length': 5.419700214132762, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '1848747', 'n_tokens_mistral': 1034, 'n_tokens_neox': 989, 'n_words': 249}