<commit_before># -*- coding: utf-8 -*-

from baseframe import __
import baseframe.forms as forms

__all__ = ['LabelForm', 'LabelOptionForm']


class LabelForm(forms.Form):
    title = forms.StringField(__("Label"),
        validators=[forms.validators.DataRequired(__(u"This can’t be empty")), forms.validators.Length(max=250)])
    icon_emoji = forms.StringField(__("Icon"))
    required = forms.BooleanField(__("Make this label mandatory in proposal forms"), default=False,
        description=__("If checked, proposers must select one of the options"))
    restricted = forms.BooleanField(__("Restrict use of this label to editors"), default=False,
        description=__("If checked, only editors and reviewers can apply this label on proposals"))


class LabelOptionForm(forms.Form):
    title = forms.StringField(__("Option"),
        validators=[forms.validators.DataRequired(__(u"This can’t be empty")), forms.validators.Length(max=250)])
    icon_emoji = forms.StringField(__("Icon"))<commit_msg>Remove label "icon" title in form (for now)<commit_after># -*- coding: utf-8 -*-

from baseframe import __
import baseframe.forms as forms

__all__ = ['LabelForm', 'LabelOptionForm']


class LabelForm(forms.Form):
    title = forms.StringField(__("Label"),
        validators=[forms.validators.DataRequired(__(u"This can’t be empty")), forms.validators.Length(max=250)])
    icon_emoji = forms.StringField("")
    required = forms.BooleanField(__("Make this label mandatory in proposal forms"), default=False,
        description=__("If checked, proposers must select one of the options"))
    restricted = forms.BooleanField(__("Restrict use of this label to editors"), default=False,
        description=__("If checked, only editors and reviewers can apply this label on proposals"))


class LabelOptionForm(forms.Form):
    title = forms.StringField(__("Option"),
        validators=[forms.validators.DataRequired(__(u"This can’t be empty")), forms.validators.Length(max=250)])
    icon_emoji = forms.StringField("")
{'fraction_non_alphanumeric': 0.13142292490118576, 'fraction_numerical': 0.00691699604743083, 'mean_word_length': 4.921052631578948, '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': '2058719', 'n_tokens_mistral': 578, 'n_tokens_neox': 558, 'n_words': 154}