<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals

from tempfile import mkdtemp


def gettext(s): return s

HELPER_SETTINGS = dict(
    ROOT_URLCONF='tests.test_utils.urls',
    INSTALLED_APPS=[
        'filer',
        'parler',
        'meta',
        'meta_mixin',
        'easy_thumbnails',
        'django.contrib.sitemaps',
        'djangocms_text_ckeditor',
        'cmsplugin_filer_image',
        'taggit',
        'taggit_autosuggest',
        'aldryn_apphooks_config',
        'tests.test_utils',
        'aldryn_search',
    ],
    LANGUAGE_CODE='en',
    LANGUAGES=(
        ('en', gettext('English')),
        ('fr', gettext('French')),
        ('it', gettext('Italiano')),
    ),
    CMS_LANGUAGES={
        1: [
            {
                'code': 'en',
                'name': gettext('English'),
                'public': True,
            },
            {
                'code': 'it',
                'name': gettext('Italiano'),
                'public': True,
            },
            {
                'code': 'fr',
                'name': gettext('French'),
                'public': True,
            },
        ],
        2: [
            {
                'code': 'en',
                'name': gettext('English'),
                'public': True,
            },
        ],
        'default': {
            'hide_untranslated': False,
        },
    },
    PARLER_LANGUAGES={
        1: (
            {'code': 'en'},
            {'code': 'it'},
            {'code': 'fr'},
        ),
        2: (
            {'code': 'en'},
        ),
        'default': {
            'fallbacks': ['en'],
            'hide_untranslated': False,
        }
    },
    MIGRATION_MODULES={
        'cmsplugin_filer_image': 'cmsplugin_filer_image.migrations_django',
    },
    CMS_TEMPLATES=(
        ('blog.html', 'Blog template'),
    ),
    META_SITE_PROTOCOL='http',
    META_SITE_DOMAIN='example.com',
    META_USE_OG_PROPERTIES=True,
    META_USE_TWITTER_PROPERTIES=True,
    META_USE_GOOGLEPLUS_PROPERTIES=True,
    THUMBNAIL_PROCESSORS=(
        'easy_thumbnails.processors.colorspace',
        'easy_thumbnails.processors.autocrop',
        'filer.thumbnail_processors.scale_and_crop_with_subject_location',
        'easy_thumbnails.processors.filters',
    ),
    FILE_UPLOAD_TEMP_DIR=mkdtemp(),
    SITE_ID=1,
    HAYSTACK_CONNECTIONS={
        "default": {}
    }
)

try:
    import admin_enhancer  # pragma: no cover # NOQA
    HELPER_SETTINGS['INSTALLED_APPS'].append('admin_enhancer')
except ImportError:
    pass
<commit_msg>Check migration module for cmsplugin_filer_image<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals

from tempfile import mkdtemp


def gettext(s): return s

HELPER_SETTINGS = dict(
    ROOT_URLCONF='tests.test_utils.urls',
    INSTALLED_APPS=[
        'filer',
        'parler',
        'meta',
        'meta_mixin',
        'easy_thumbnails',
        'django.contrib.sitemaps',
        'djangocms_text_ckeditor',
        'cmsplugin_filer_image',
        'taggit',
        'taggit_autosuggest',
        'aldryn_apphooks_config',
        'tests.test_utils',
        'aldryn_search',
    ],
    LANGUAGE_CODE='en',
    LANGUAGES=(
        ('en', gettext('English')),
        ('fr', gettext('French')),
        ('it', gettext('Italiano')),
    ),
    CMS_LANGUAGES={
        1: [
            {
                'code': 'en',
                'name': gettext('English'),
                'public': True,
            },
            {
                'code': 'it',
                'name': gettext('Italiano'),
                'public': True,
            },
            {
                'code': 'fr',
                'name': gettext('French'),
                'public': True,
            },
        ],
        2: [
            {
                'code': 'en',
                'name': gettext('English'),
                'public': True,
            },
        ],
        'default': {
            'hide_untranslated': False,
        },
    },
    PARLER_LANGUAGES={
        1: (
            {'code': 'en'},
            {'code': 'it'},
            {'code': 'fr'},
        ),
        2: (
            {'code': 'en'},
        ),
        'default': {
            'fallbacks': ['en'],
            'hide_untranslated': False,
        }
    },
    MIGRATION_MODULES={},
    CMS_TEMPLATES=(
        ('blog.html', 'Blog template'),
    ),
    META_SITE_PROTOCOL='http',
    META_SITE_DOMAIN='example.com',
    META_USE_OG_PROPERTIES=True,
    META_USE_TWITTER_PROPERTIES=True,
    META_USE_GOOGLEPLUS_PROPERTIES=True,
    THUMBNAIL_PROCESSORS=(
        'easy_thumbnails.processors.colorspace',
        'easy_thumbnails.processors.autocrop',
        'filer.thumbnail_processors.scale_and_crop_with_subject_location',
        'easy_thumbnails.processors.filters',
    ),
    FILE_UPLOAD_TEMP_DIR=mkdtemp(),
    SITE_ID=1,
    HAYSTACK_CONNECTIONS={
        "default": {}
    }
)

try:
    import cmsplugin_filer_image.migrations_django  # pragma: no cover # NOQA
    HELPER_SETTINGS[
        'MIGRATION_MODULES'
    ]['cmsplugin_filer_image'] = 'cmsplugin_filer_image.migrations_django'

except ImportError:
    pass

try:
    import admin_enhancer  # pragma: no cover # NOQA
    HELPER_SETTINGS['INSTALLED_APPS'].append('admin_enhancer')
except ImportError:
    pass

{'fraction_non_alphanumeric': 0.13859392164042475, 'fraction_numerical': 0.0021969974368363236, 'mean_word_length': 1.817431665807117, 'pattern_counts': {'":': 2, '<': 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': '4173506', 'n_tokens_mistral': 1858, 'n_tokens_neox': 1785, 'n_words': 258}