<commit_before>from django import forms


class CampaignGeneralForm(forms.Form):

    TYPE_CHOICES = (
        ('', 'Select campaign type'),
        ('B', 'Bulk Message'),
        ('C', 'Conversation'),
    )

    name = forms.CharField(label="Campaign name", max_length=100)
    type = forms.ChoiceField(label="Which kind of campaign would you like?",
                             widget=forms.Select(), choices=TYPE_CHOICES)


class CampaignConfigurationForm(forms.Form):

    COUNTRY_CHOICES = (
        ('*', 'All Countries'),
        ('.ke', 'Kenya'),
        ('.za', 'South Africa'),
    )

    CHANNEL_CHOICES = (
        ('ussd', 'USSD'),
        ('gtalk', 'Google Talk'),
    )

    # more than likely a many to many field, or something similair in the riak
    # world. Whom I kidding, this is probably just a modelform?
    countries = forms.MultipleChoiceField(label="Destinations",
                                          widget=forms.Select(),
                                          choices=COUNTRY_CHOICES)

    channels = forms.MultipleChoiceField(label="Channels",
                                         widget=forms.Select(),
                                         choices=CHANNEL_CHOICES)

    keyword = forms.CharField(label="Keyword", max_length=100)
<commit_msg>more sensisble defaults for channels<commit_after>from django import forms


class CampaignGeneralForm(forms.Form):

    TYPE_CHOICES = (
        ('', 'Select campaign type'),
        ('B', 'Bulk Message'),
        ('C', 'Conversation'),
    )

    name = forms.CharField(label="Campaign name", max_length=100)
    type = forms.ChoiceField(label="Which kind of campaign would you like?",
                             widget=forms.Select(), choices=TYPE_CHOICES)


class CampaignConfigurationForm(forms.Form):

    COUNTRY_CHOICES = (
        ('*', 'All Countries'),
        ('.za', 'South Africa'),
    )

    CHANNEL_CHOICES = (
        ('ussd', 'USSD'),
        ('sms', 'SMS longcode'),
    )

    # more than likely a many to many field, or something similair in the riak
    # world. Whom I kidding, this is probably just a modelform?
    countries = forms.MultipleChoiceField(label="Destinations",
                                          widget=forms.Select(),
                                          choices=COUNTRY_CHOICES)

    channels = forms.MultipleChoiceField(label="Channels",
                                         widget=forms.Select(),
                                         choices=CHANNEL_CHOICES)

    keyword = forms.CharField(label="Keyword", max_length=100)

{'fraction_non_alphanumeric': 0.1158017041053447, 'fraction_numerical': 0.004647560030983733, 'mean_word_length': 2.0034883720930234, '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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3179445', 'n_tokens_mistral': 698, 'n_tokens_neox': 645, 'n_words': 162}