<commit_before>from notesserver.settings.logger import build_logging_config

from .common import *

DEBUG = True
LOG_SETTINGS_DEBUG = True
LOG_SETTINGS_DEV_ENV = True

ALLOWED_HOSTS = ['*']

# These values are derived from provision-ida-user.sh in the edx/devstack repo.
CLIENT_ID = 'edx_notes_api-backend-service-key'
CLIENT_SECRET = 'edx_notes_api-backend-service-secret'

ELASTICSEARCH_INDEX_NAMES = {'notesapi.v1.search_indexes.documents.note': 'notes_index'}
ELASTICSEARCH_DSL['default']['hosts'] = 'edx.devstack.elasticsearch:9200'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': os.environ.get('DB_NAME', 'notes'),
        'USER': os.environ.get('DB_USER', 'notes001'),
        'PASSWORD': os.environ.get('DB_PASSWORD', 'password'),
        'HOST': os.environ.get('DB_HOST', 'edx.devstack.mysql'),
        'PORT': os.environ.get('DB_PORT', 3306),
        'CONN_MAX_AGE': 60,
    }
}

JWT_AUTH = {}

LOGGING = build_logging_config()<commit_msg>Points the settings to use ES7.<commit_after>from notesserver.settings.logger import build_logging_config

from .common import *

DEBUG = True
LOG_SETTINGS_DEBUG = True
LOG_SETTINGS_DEV_ENV = True

ALLOWED_HOSTS = ['*']

# These values are derived from provision-ida-user.sh in the edx/devstack repo.
CLIENT_ID = 'edx_notes_api-backend-service-key'
CLIENT_SECRET = 'edx_notes_api-backend-service-secret'

ELASTICSEARCH_INDEX_NAMES = {'notesapi.v1.search_indexes.documents.note': 'notes_index'}
ELASTICSEARCH_DSL['default']['hosts'] = 'edx.devstack.elasticsearch7:9200'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': os.environ.get('DB_NAME', 'notes'),
        'USER': os.environ.get('DB_USER', 'notes001'),
        'PASSWORD': os.environ.get('DB_PASSWORD', 'password'),
        'HOST': os.environ.get('DB_HOST', 'edx.devstack.mysql'),
        'PORT': os.environ.get('DB_PORT', 3306),
        'CONN_MAX_AGE': 60,
    }
}

JWT_AUTH = {}

LOGGING = build_logging_config()
{'fraction_non_alphanumeric': 0.1516658378915962, 'fraction_numerical': 0.014917951268025857, 'mean_word_length': 4.423180592991914, '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': '797190', 'n_tokens_mistral': 746, 'n_tokens_neox': 743, 'n_words': 118}