<commit_before>import warnings
from toolkit.settings_common import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'toolkit',
        'USER': 'toolkit',
        # Substitute password for your local test database here:
        'PASSWORD': '<PASSWORD>',
        'HOST': '',  # Set to empty string for localhost.
        'PORT': '',  # Set to empty string for default.
        'CONN_MAX_AGE': 10,  # Allow DB connections to persist for 10 seconds
    }
}

# Different to the key used in production!
SECRET_KEY = <KEY>

LOGGING['handlers']['file']['filename'] = 'django_test.log'

# Enable logging of *everything* to the console:
LOGGING['root'] = {
    'handlers': ['console'],
    'level': 'DEBUG',
}

# Override setting in settings_common
VENUE['email_unsubcribe_host'] = "localhost:8000"

# Enable Debug mode, add in Django toolbar:
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = True

ALLOWED_HOSTS = ('127.0.0.1',)

# Django toolbar things:
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS': False, }

MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')<commit_msg>Add set mysql mode to strict trans tables<commit_after>import warnings
from toolkit.settings_common import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'toolkit',
        'USER': 'toolkit',
        # Substitute password for your local test database here:
        'PASSWORD': '<PASSWORD>',
        'HOST': '',  # Set to empty string for localhost.
        'PORT': '',  # Set to empty string for default.
        'CONN_MAX_AGE': 10,  # Allow DB connections to persist for 10 seconds
        'OPTIONS': {
            'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
        },
    }
}

# Different to the key used in production!
SECRET_KEY = <KEY>

LOGGING['handlers']['file']['filename'] = 'django_test.log'

# Enable logging of *everything* to the console:
LOGGING['root'] = {
    'handlers': ['console'],
    'level': 'DEBUG',
}

# Override setting in settings_common
VENUE['email_unsubcribe_host'] = "localhost:8000"

# Enable Debug mode, add in Django toolbar:
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = True

ALLOWED_HOSTS = ('127.0.0.1',)

# Django toolbar things:
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS': False, }

MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')
{'fraction_non_alphanumeric': 0.1444353518821604, 'fraction_numerical': 0.01718494271685761, 'mean_word_length': 3.7941176470588234, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1981170', 'n_tokens_mistral': 831, 'n_tokens_neox': 792, 'n_words': 206}