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

from django.db import models, migrations
from filer.settings import FILER_IMAGE_MODEL


class Migration(migrations.Migration):

    dependencies = [
        ('filer', '0001_initial'),
        migrations.swappable_dependency(FILER_IMAGE_MODEL or 'filer.models.imagemodels.Image'),
    ]

    operations = []
    if not FILER_IMAGE_MODEL:
        operations.append(
            migrations.CreateModel(
                name='Image',
                fields=[
                    ('file_ptr', models.OneToOneField(serialize=False, auto_created=True, to='filer.File', primary_key=True, parent_link=True)),
                    ('_height', models.IntegerField(null=True, blank=True)),
                    ('_width', models.IntegerField(null=True, blank=True)),
                    ('date_taken', models.DateTimeField(verbose_name='date taken', null=True, editable=False, blank=True)),
                    ('default_alt_text', models.CharField(max_length=255, null=True, verbose_name='default alt text', blank=True)),
                    ('default_caption', models.CharField(max_length=255, null=True, verbose_name='default caption', blank=True)),
                    ('author', models.CharField(max_length=255, null=True, verbose_name='author', blank=True)),<commit_msg>Skip new migration if table already exists<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations, connection
from filer.settings import FILER_IMAGE_MODEL


class Migration(migrations.Migration):

    dependencies = [
        ('filer', '0001_initial'),
        migrations.swappable_dependency(FILER_IMAGE_MODEL or 'filer.models.imagemodels.Image'),
    ]

    operations = []
    if not FILER_IMAGE_MODEL and 'filer_image' not in connection.introspection.table_names():
        operations.append(
            migrations.CreateModel(
                name='Image',
                fields=[
                    ('file_ptr', models.OneToOneField(serialize=False, auto_created=True, to='filer.File', primary_key=True, parent_link=True)),
                    ('_height', models.IntegerField(null=True, blank=True)),
                    ('_width', models.IntegerField(null=True, blank=True)),
                    ('date_taken', models.DateTimeField(verbose_name='date taken', null=True, editable=False, blank=True)),
                    ('default_alt_text', models.CharField(max_length=255, null=True, verbose_name='default alt text', blank=True)),
                    ('default_caption', models.CharField(max_length=255, null=True, verbose_name='default caption', blank=True)),
                    ('author', models.CharField(max_length=255, null=True, verbose_name='author', blank=True)),
{'fraction_non_alphanumeric': 0.12441735389028326, 'fraction_numerical': 0.010039440659734672, 'mean_word_length': 3.1954887218045114, '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': '7470789', 'n_tokens_mistral': 806, 'n_tokens_neox': 764, 'n_words': 147}