<commit_before># Generated by Django 2.2.4 on 2019-09-26 12:58

from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('eventstore', '0004_create_publicregistration'),
    ]

    operations = [
        migrations.CreateModel(
            name='PrebirthRegistration',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('contact_id', models.UUIDField()),
                ('device_contact_id', models.UUIDField()),
                ('id_type', models.CharField(choices=[('sa_id', 'SA ID'), ('passport', 'Passport'), ('dob', 'Date of birth')], max_length=8)),
                ('id_number', models.CharField(blank=True, max_length=13)),
                ('passport_country', models.CharField(blank=True, max_length=2)),
                ('passport_number', models.CharField(blank=True, max_length=255)),
                ('date_of_birth', models.DateField(blank=True, null=True)),
                ('language', models.CharField(max_length=3)),
                ('edd', models.DateField()),
                ('facility_code', models.CharField(max_length=6)),
                ('source', models.CharField(max_length=255)),
                ('timestamp', models.DateTimeField(default=django.utils.timezone.now)),
                ('data', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict, null=True)),
                ('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]<commit_msg>Formatting fixes<commit_after># Generated by Django 2.2.4 on 2019-09-26 12:58

import uuid

import django.contrib.postgres.fields.jsonb
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("eventstore", "0004_create_publicregistration"),
    ]

    operations = [
        migrations.CreateModel(
            name="PrebirthRegistration",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("contact_id", models.UUIDField()),
                ("device_contact_id", models.UUIDField()),
                (
                    "id_type",
                    models.CharField(
                        choices=[
                            ("sa_id", "SA ID"),
                            ("passport", "Passport"),
                            ("dob", "Date of birth"),
                        ],
                        max_length=8,
                    ),
                ),
                ("id_number", models.CharField(blank=True, max_length=13)),
                ("passport_country", models.CharField(blank=True, max_length=2)),
                ("passport_number", models.CharField(blank=True, max_length=255)),
                ("date_of_birth", models.DateField(blank=True, null=True)),
                ("language", models.CharField(max_length=3)),
                ("edd", models.DateField()),
                ("facility_code", models.CharField(max_length=6)),
                ("source", models.CharField(max_length=255)),
                ("timestamp", models.DateTimeField(default=django.utils.timezone.now)),
                (
                    "data",
                    django.contrib.postgres.fields.jsonb.JSONField(
                        blank=True, default=dict, null=True
                    ),
                ),
                (
                    "created_by",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        )
    ]
{'fraction_non_alphanumeric': 0.12185159972770593, 'fraction_numerical': 0.014522350805536646, 'mean_word_length': 1.7395898073337477, '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': '4329868', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1131, 'n_words': 176}