<commit_before>"""Migrate dojo specific fields."""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


def migrate_dojo_fields(apps, schema_editor):
    """Migrate dojo specific fields."""
    from events.models import Event
    for event in Event.objects.all():
        event.title = event.heading
        x = ""
        if event._data.get('description'):
            x = event._data['description']
        if event.challenge_text:
            x += event.challenge_text + "\n\n"
        if event.solution_text:
            x += event.solution_text
        event._data['description'] = x
        event.save()


class Migration(migrations.Migration):

    """Remove dojo specific fields."""

    dependencies = [
        ('events', '0025_auto_20150528_1959'),
    ]<commit_msg>heading is a method<commit_after>"""Migrate dojo specific fields."""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


def migrate_dojo_fields(apps, schema_editor):
    """Migrate dojo specific fields."""
    from events.models import Event
    for event in Event.objects.all():
        event.title = event.heading()
        x = ""
        if event._data.get('description'):
            x = event._data['description']
        if event.challenge_text:
            x += event.challenge_text + "\n\n"
        if event.solution_text:
            x += event.solution_text
        event._data['description'] = x
        event.save()


class Migration(migrations.Migration):

    """Remove dojo specific fields."""

    dependencies = [
        ('events', '0025_auto_20150528_1959'),
    ]
{'fraction_non_alphanumeric': 0.12440191387559808, 'fraction_numerical': 0.02033492822966507, 'mean_word_length': 2.6369565217391306, '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': '7049168', 'n_tokens_mistral': 509, 'n_tokens_neox': 465, 'n_words': 119}