<commit_before>from course_discovery.settings.production import *

DEBUG = True

# Docker does not support the syslog socket at /dev/log. Rely on the console.
LOGGING['handlers']['local'] = {
    'class': 'logging.NullHandler',
}


# Determine which requests should render Django Debug Toolbar
INTERNAL_IPS = ('127.0.0.1',)


HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
        'URL': 'http://edx.devstack.elasticsearch:9200/',
        'INDEX_NAME': 'catalog',
    },
}

SOCIAL_AUTH_REDIRECT_IS_HTTPS = False

#####################################################################
# Lastly, see if the developer has any local overrides.
if os.path.isfile(join(dirname(abspath(__file__)), 'private.py')):
    from .private import *  # pylint: disable=import-error<commit_msg>Setting a default partner for devstack<commit_after>from course_discovery.settings.production import *

DEBUG = True

# Docker does not support the syslog socket at /dev/log. Rely on the console.
LOGGING['handlers']['local'] = {
    'class': 'logging.NullHandler',
}


# Determine which requests should render Django Debug Toolbar
INTERNAL_IPS = ('127.0.0.1',)


HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
        'URL': 'http://edx.devstack.elasticsearch:9200/',
        'INDEX_NAME': 'catalog',
    },
}

SOCIAL_AUTH_REDIRECT_IS_HTTPS = False

DEFAULT_PARTNER_ID = 1

#####################################################################
# Lastly, see if the developer has any local overrides.
if os.path.isfile(join(dirname(abspath(__file__)), 'private.py')):
    from .private import *  # pylint: disable=import-error
{'fraction_non_alphanumeric': 0.1943342776203966, 'fraction_numerical': 0.01189801699716714, 'mean_word_length': 4.771241830065359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6185390', 'n_tokens_mistral': 556, 'n_tokens_neox': 528, 'n_words': 122}