<commit_before>from django.conf import settings

if settings.DEBUG:
    # In Debug mode we serve the media urls as public by default
    STRONGHOLD_PUBLIC_URLS = (r'^/static/.+$', r'^/media/.+$')
else:
    # make no such assumptions in production
    STRONGHOLD_PUBLIC_URLS = ()


STRONGHOLD_PUBLIC_URLS = getattr(settings,
                                 'STRONGHOLD_PUBLIC_URLS',
                                 STRONGHOLD_PUBLIC_URLS)<commit_msg>add login/logout urls to default made the default URLs comply with DRY<commit_after>from django.conf import settings
from django.core.urlresolvers import reverse

if settings.DEBUG:
    # In Debug mode we serve the media urls as public by default
    # We should also serve the login/logout pages as public
    STRONGHOLD_PUBLIC_URLS = (
        r'^%s.+$' % settings.STATIC_URL,
        r'^%s.+$' % settings.MEDIA_URL,
        r'^%s$' % reverse('login'),
        r'^%s$' % reverse('logout')
        )
else:
    # make no such assumptions in production
    STRONGHOLD_PUBLIC_URLS = ()


STRONGHOLD_PUBLIC_URLS = getattr(settings,
                                 'STRONGHOLD_PUBLIC_URLS',
                                 STRONGHOLD_PUBLIC_URLS)
{'fraction_non_alphanumeric': 0.0895397489539749, 'fraction_numerical': 0.0, 'mean_word_length': 2.4566473988439306, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7347619', 'n_tokens_mistral': 393, 'n_tokens_neox': 367, 'n_words': 95}