<commit_before>from django.forms import Form, ChoiceField, CharField, ModelForm

from .models import DATABASE_COUNTRIES, DATABASE_TYPES, ExternalDatabase


class CountryFilterForm(Form):
    """Filter form for countries."""

    filter = CharField(label="Filter")
    country = ChoiceField(help_text="", choices=DATABASE_COUNTRIES,
                          required=False)<commit_msg>allow for queries without filter<commit_after>from django.forms import Form, ChoiceField, CharField, ModelForm

from .models import DATABASE_COUNTRIES, DATABASE_TYPES, ExternalDatabase


class CountryFilterForm(Form):
    """Filter form for countries."""

    filter = CharField(label="Filter", required=False)
    country = ChoiceField(help_text="", choices=DATABASE_COUNTRIES,
                          required=False)
{'fraction_non_alphanumeric': 0.09192546583850932, 'fraction_numerical': 0.0, 'mean_word_length': 4.445945945945946, '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': '7442182', 'n_tokens_mistral': 229, 'n_tokens_neox': 219, 'n_words': 54}