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

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('mps_v2', '0027_add_committeeresolution'),
    ]

    operations = [
        # bug: keeps empty source, created_at, modified_at columns
        migrations.RunSQL("""
           INSERT IGNORE INTO mps_v2_committeeresolution (source_id, title, source)
           SELECT DISTINCT source_id, '', source FROM mps_v2_suggestion
        """),
    ]<commit_msg>Bugfix: created_at/modified_at should not be left NULL<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('mps_v2', '0027_add_committeeresolution'),
    ]

    operations = [
        migrations.RunSQL([
            "INSERT IGNORE INTO mps_v2_committeeresolution (source_id, title) SELECT DISTINCT source_id, '' FROM mps_v2_suggestion",
            "UPDATE mps_v2_committeeresolution SET created_at = utc_timestamp() WHERE created_at is NULL",
            "UPDATE mps_v2_committeeresolution SET modified_at = utc_timestamp() WHERE modified_at is NULL",
        ], [
            "DELETE FROM mps_v2_committeeresolution",
        ]),
    ]
{'fraction_non_alphanumeric': 0.09111791730474732, 'fraction_numerical': 0.01454823889739663, 'mean_word_length': 3.202572347266881, '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': '3140265', 'n_tokens_mistral': 415, 'n_tokens_neox': 379, 'n_words': 94}