<commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-023-05 14:40
from __future__ import unicode_literals

from django.db import migrations, models
from arches.app.models.system_settings import settings
from arches.app.search.search_engine_factory import SearchEngineFactory
from arches.app.search.mappings import prepare_resource_relations_index, delete_resource_relations_index


class Migration(migrations.Migration):

    dependencies = [
        ('models', '4662_workflow_plugin'),
    ]

    def forwards_func(apps, schema_editor):
        se = SearchEngineFactory().create()
        prefix = settings.ELASTICSEARCH_PREFIX<commit_msg>fix migration error, re #4695<commit_after># -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-023-05 14:40
from __future__ import unicode_literals

from django.db import migrations, models
from arches.app.models.system_settings import settings
from arches.app.search.search_engine_factory import SearchEngineFactory
from arches.app.search.mappings import prepare_resource_relations_index, delete_resource_relations_index


class Migration(migrations.Migration):

    dependencies = [
        ('models', '4679_resource_editor_permissions'),
    ]

    def forwards_func(apps, schema_editor):
        se = SearchEngineFactory().create()
        prefix = settings.ELASTICSEARCH_PREFIX
{'fraction_non_alphanumeric': 0.0855457227138643, 'fraction_numerical': 0.03687315634218289, 'mean_word_length': 4.824034334763948, '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': '2496493', 'n_tokens_mistral': 426, 'n_tokens_neox': 373, 'n_words': 91}