<commit_before># Third-Party
from django_filters import rest_framework as filters

# Local
from .models import (
    Award,
    Catalog,
    Contestant,
    Convention,
    Performer,
    Person,
    Session,
    Submission,
    Venue,
)


class AwardFilter(filters.FilterSet):
    class Meta:
        model = Award
        fields = {
            'nomen': [
                'icontains',
            ],
        }


class CatalogFilter(filters.FilterSet):
    class Meta:
        model = Catalog
        fields = {
            'title': [
                'icontains',
            ],
        }


class ContestantFilter(filters.FilterSet):
    class Meta:
        model = Contestant
        fields = {
            'nomen': [
                'icontains',
            ],
        }


class ConventionFilter(filters.FilterSet):
    class Meta:
        model = Convention
        fields = {
            'status': [
                'exact',
            ],
            'year': [
                'exact',
            ],
            'kind': [
                'exact',
            ],
            'assignments__person__user': [
                'exact',
            ],
        }


class PerformerFilter(filters.FilterSet):
    class Meta:
        model = Performer
        fields = {
            'nomen': [
                'icontains',
            ],
        }


class PersonFilter(filters.FilterSet):
    class Meta:
        model = Person<commit_msg>Registration manager WIP<commit_after># Third-Party
from django_filters import rest_framework as filters

# Local
from .models import (
    Award,
    Catalog,
    Contestant,
    Convention,
    Performer,
    Person,
    Session,
    Submission,
    Venue,
)


class AwardFilter(filters.FilterSet):
    class Meta:
        model = Award
        fields = {
            'nomen': [
                'icontains',
            ],
        }


class CatalogFilter(filters.FilterSet):
    class Meta:
        model = Catalog
        fields = {
            'title': [
                'icontains',
            ],
        }


class ContestantFilter(filters.FilterSet):
    class Meta:
        model = Contestant
        fields = {
            'nomen': [
                'icontains',
            ],
        }


class ConventionFilter(filters.FilterSet):
    class Meta:
        model = Convention
        fields = {
            'status': [
                'exact',
            ],
            'year': [
                'exact',
            ],
            'kind': [
                'exact',
            ],
            'assignments__person__user': [
                'exact',
            ],
        }


class PerformerFilter(filters.FilterSet):
    class Meta:
        model = Performer
        fields = {
            'nomen': [
                'icontains',
            ],
            'entity__memberships__person__user': [
                'exact',
            ],
        }


class PersonFilter(filters.FilterSet):
    class Meta:
        model = Person
{'fraction_non_alphanumeric': 0.09791386271870794, 'fraction_numerical': 0.0, 'mean_word_length': 1.2203136669156087, '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': '7520606', 'n_tokens_mistral': 824, 'n_tokens_neox': 780, 'n_words': 159}