<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Models for storing general filer and filing data derived from raw CAL-ACCESS data.
"""
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from calaccess_processed.managers import ProcessedDataManager


@python_2_unicode_compatible
class FilerIDValue(models.Model):
    """
    Every unique filer_id in the CAL-ACCESS database.

    Includes the table and column in which the unique value was observed
    """
    table_name = models.CharField(
        verbose_name="table_name",
        max_length=30,
        null=False,
        blank=False,
        help_text="Name of the database table with the column where the "
                  "filer_id value was observed.",
    )
    column_name = models.CharField(
        verbose_name="column_name",
        max_length=20,
        null=False,
        blank=False,
        help_text="Name of the database column where the filer_id value was "
                  "observed.",
    )
    value = models.CharField(
        verbose_name="filer_id value",
        max_length=15,
        null=False,
        blank=False,
        help_text="Unique value in the given database table and column.",
    )
    occur_count = models.IntegerField(
        verbose_name="occurence count",
        null=False,
        help_text="Count of occurences of the filer_id value in the given "<commit_msg>Add indexes<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Models for storing general filer and filing data derived from raw CAL-ACCESS data.
"""
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from calaccess_processed.managers import ProcessedDataManager


@python_2_unicode_compatible
class FilerIDValue(models.Model):
    """
    Every unique filer_id in the CAL-ACCESS database.

    Includes the table and column in which the unique value was observed
    """
    table_name = models.CharField(
        verbose_name="table_name",
        max_length=30,
        db_index=True,
        null=False,
        blank=False,
        help_text="Name of the database table with the column where the "
                  "filer_id value was observed.",
    )
    column_name = models.CharField(
        verbose_name="column_name",
        max_length=20,
        null=False,
        blank=False,
        db_index=True,
        help_text="Name of the database column where the filer_id value was "
                  "observed.",
    )
    value = models.CharField(
        verbose_name="filer_id value",
        max_length=15,
        null=False,
        blank=False,
        db_index=True,
        help_text="Unique value in the given database table and column.",
    )
    occur_count = models.IntegerField(
        verbose_name="occurence count",
        null=False,
        db_index=True,
        help_text="Count of occurences of the filer_id value in the given "
{'fraction_non_alphanumeric': 0.07865168539325842, 'fraction_numerical': 0.005948446794448116, 'mean_word_length': 2.7004889975550124, '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': '2120458', 'n_tokens_mistral': 872, 'n_tokens_neox': 834, 'n_words': 251}