<commit_before>'''
localsettings.py (excluded by .gitignore):

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': '',
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
    }
}
'''

import os

try:
    from localsettings import *
except ImportError:
    pass


## non-Django settings:

REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379

TYRANT_HOST = '127.0.0.1'
TYRANT_PORT = 7000

EXCEPTION_JABBER = None

def parentOf(path):
    return '/'.join(path.rstrip('/').split('/')[:-1])

ROOT = parentOf(parentOf(os.path.abspath(__file__)))

MAIN_APP = os.environ['APP']

if 'APPS' not in locals():
    APPS = []
APPS += [MAIN_APP]
<commit_msg>add this repo's parent to sys.path<commit_after>'''
localsettings.py (excluded by .gitignore):

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': '',
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
    }
}
'''

import os

try:
    from localsettings import *
except ImportError:
    pass


# Add this repo's parent to sys.path
sys.path.append()

## non-Django settings:

REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379

TYRANT_HOST = '127.0.0.1'
TYRANT_PORT = 7000

EXCEPTION_JABBER = None

def parentOf(path, n=1):
    return '/'.join(path.rstrip('/').split('/')[:-n])

ROOT = parentOf(os.path.abspath(__file__), n=2)

# Add this repo's parent to sys.path
sys.path.append(ROOT)

MAIN_APP = os.environ['APP']

if 'APPS' not in locals():
    APPS = []
APPS += [MAIN_APP]

{'fraction_non_alphanumeric': 0.18266048974189278, 'fraction_numerical': 0.028457974851091992, 'mean_word_length': 3.0536193029490617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '3334819', 'n_tokens_mistral': 611, 'n_tokens_neox': 587, 'n_words': 121}