<commit_before># -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.conf import settings



trans_app_label = _('Opps')

settings.INSTALLED_APPS += ('opps.article',
        'opps.image',
        'opps.channel',
        'opps.source',
        'django.contrib.redirects',
        'django_thumbor',
        'redactor',
        'tagging',)

settings.MIDDLEWARE_CLASSES += (
        'django.contrib.redirects.middleware.RedirectFallbackMiddleware',)

# redactor
settings.REDACTOR_OPTIONS = {'lang': 'en'}
settings.REDACTOR_UPLOAD = 'uploads/'

# thumbor
settings.THUMBOR_SERVER = 'http://localhost:8888'
settings.THUMBOR_MEDIA_URL = 'http://localhost:8000/media'<commit_msg>change declaration variable in settings, opps core auto declaration<commit_after># -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.conf import settings



trans_app_label = _('Opps')

settings.INSTALLED_APPS += ('opps.article',
        'opps.image',
        'opps.channel',
        'opps.source',
        'django.contrib.redirects',
        'django_thumbor',
        'redactor',
        'tagging',)

settings.MIDDLEWARE_CLASSES += (
        'django.contrib.redirects.middleware.RedirectFallbackMiddleware',)

# redactor
getattr(settings, 'REDACTOR_OPTIONS', {'lang': 'en'})
getattr(settings, 'REDACTOR_UPLOAD', 'uploads/')

# thumbor
getattr(settings, 'THUMBOR_SERVER', 'http://localhost:8888')
getattr(settings, 'THUMBOR_MEDIA_URL', 'http://localhost:8000/media')
getattr(settings, 'THUMBOR_SECURITY_KEY', '')
{'fraction_non_alphanumeric': 0.14423076923076922, 'fraction_numerical': 0.011538461538461539, 'mean_word_length': 4.101307189542483, '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': '7422253', 'n_tokens_mistral': 542, 'n_tokens_neox': 525, 'n_words': 85}