<commit_before># -*- coding: utf-8 -*-
from aldryn_client import forms


OBJECT_TYPES = (
    ('Article', 'Article'),
    ('Website', 'Website'),
)


class Form(forms.BaseForm):

    META_SITE_PROTOCOL = forms.CharField('META_SITE_PROTOCOL', required=True)
    META_SITE_TYPE = forms.SelectField('META_SITE_TYPE', choices=OBJECT_TYPES)
    META_SITE_NAME = forms.CharField('META_SITE_NAME', required=False)
    META_IMAGE_URL = forms.CharField('META_IMAGE_URL', required=False)
    META_USE_OG_PROPERTIES = forms.CheckboxField('META_USE_OG_PROPERTIES', required=False)
    META_USE_TWITTER_PROPERTIES = forms.CheckboxField('META_USE_TWITTER_PROPERTIES', required=False)
    META_USE_GOOGLEPLUS_PROPERTIES = forms.CheckboxField('META_USE_GOOGLEPLUS_PROPERTIES', required=False)
<commit_msg>Change META_SITE_PROTOCOL a choice<commit_after># -*- coding: utf-8 -*-
from aldryn_client import forms


OBJECT_TYPES = (
    ('Article', 'Article'),
    ('Website', 'Website'),
)

PROTOCOLS = (
    ('http', 'http'),
    ('https', 'https'),
)


class Form(forms.BaseForm):

    META_SITE_PROTOCOL = forms.SelectField('META_SITE_PROTOCOL', choices=PROTOCOLS)
    META_SITE_TYPE = forms.SelectField('META_SITE_TYPE', choices=OBJECT_TYPES)
    META_SITE_NAME = forms.CharField('META_SITE_NAME', required=False)
    META_IMAGE_URL = forms.CharField('META_IMAGE_URL', required=False)
    META_USE_OG_PROPERTIES = forms.CheckboxField('META_USE_OG_PROPERTIES', required=False)
    META_USE_TWITTER_PROPERTIES = forms.CheckboxField('META_USE_TWITTER_PROPERTIES', required=False)
    META_USE_GOOGLEPLUS_PROPERTIES = forms.CheckboxField('META_USE_GOOGLEPLUS_PROPERTIES', required=False)

{'fraction_non_alphanumeric': 0.12050359712230216, 'fraction_numerical': 0.001199040767386091, 'mean_word_length': 6.484304932735426, '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': '605692', 'n_tokens_mistral': 647, 'n_tokens_neox': 616, 'n_words': 78}