<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations
from django.contrib.contenttypes.models import ContentType


def forwards(apps, schema_editor):

    OldNote = apps.get_model('notes', 'Note')
    NewNote = apps.get_model('notes', 'NewNote')

    for old_note in OldNote.objects.all():
        note = NewNote(pk=old_note.pk,
                       tenant=old_note.tenant,
                       content=old_note.content,
                       author=old_note.author,
                       type=old_note.type,
                       content_type=old_note.content_type,
                       object_id=old_note.object_id,
                       is_pinned=old_note.is_pinned,
                       deleted=old_note.deleted,
                       is_deleted=old_note.is_deleted,
                       created=old_note.sort_by_date,
                       modified=old_note.modified
                       )
        note.save()
        note.update_modified = False
        note.created = old_note.sort_by_date
        note.modified = old_note.modified
        note.save()
<commit_msg>LILY-1708: Trigger migrations to see that the cron job and deploy command work properly.<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations
from django.contrib.contenttypes.models import ContentType

# Trigger migrations for Travis testing.


def forwards(apps, schema_editor):

    OldNote = apps.get_model('notes', 'Note')
    NewNote = apps.get_model('notes', 'NewNote')

    for old_note in OldNote.objects.all():
        note = NewNote(pk=old_note.pk,
                       tenant=old_note.tenant,
                       content=old_note.content,
                       author=old_note.author,
                       type=old_note.type,
                       content_type=old_note.content_type,
                       object_id=old_note.object_id,
                       is_pinned=old_note.is_pinned,
                       deleted=old_note.deleted,
                       is_deleted=old_note.is_deleted,
                       created=old_note.sort_by_date,
                       modified=old_note.modified
                       )
        note.save()
        note.update_modified = False
        note.created = old_note.sort_by_date
        note.modified = old_note.modified
        note.save()

{'fraction_non_alphanumeric': 0.08081226688769166, 'fraction_numerical': 0.0024865312888520514, 'mean_word_length': 1.724604966139955, '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': '4228757', 'n_tokens_mistral': 673, 'n_tokens_neox': 649, 'n_words': 116}