<commit_before>"""
Django settings for when tests are run.
"""
import os

DEBUG = True

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

SECRET_KEY = 'fake-key'

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'chatterbot.ext.django_chatterbot',
    'tests_django',
]

CHATTERBOT = {
    'name': 'Test Django ChatterBot',
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': [
        'chatterbot.corpus.english.greetings'
    ],
    'initialize': False
}

ROOT_URLCONF = 'chatterbot.ext.django_chatterbot.urls'

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',<commit_msg>Specify logic adapters in test settings<commit_after>"""
Django settings for when tests are run.
"""
import os

DEBUG = True

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

SECRET_KEY = 'fake-key'

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'chatterbot.ext.django_chatterbot',
    'tests_django',
]

CHATTERBOT = {
    'name': 'Test Django ChatterBot',
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': [
        'chatterbot.corpus.english.greetings'
    ],
    'logic_adapters': [
        {
            'import_path': 'chatterbot.logic.BestMatch',
        },
        {
            'import_path': 'chatterbot.logic.MathematicalEvaluation',
        }
    ],
    'initialize': False
}

ROOT_URLCONF = 'chatterbot.ext.django_chatterbot.urls'

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
{'fraction_non_alphanumeric': 0.13280839895013125, 'fraction_numerical': 0.0, 'mean_word_length': 3.8253164556962025, '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': '6789652', 'n_tokens_mistral': 662, 'n_tokens_neox': 656, 'n_words': 87}