<commit_before>from happyforms import forms

from models import Report, ReportComment, ReportEvent, ReportLink

ReportEventFormset = forms.models.inlineformset_factory(Report, ReportEvent,
                                                        extra=1)
ReportLinkFormset = forms.models.inlineformset_factory(Report, ReportLink,
                                                       extra=1)


class ReportForm(forms.ModelForm):
    """Form of a report."""
    past_items = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'past_items',
                                     'class': 'flat',
                                     'placeholder': ('Summary or list of Rep '
                                                     'activities you were '
                                                     'involved in this past '
                                                     'month'),
                                     'cols': '',
                                     'rows': ''}))
    future_items = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'future_items',
                                     'class': 'flat',
                                     'placeholder': ('What Rep activity/ies '
                                                     'do you plan to be '
                                                     'involved in next '
                                                     'month?'),
                                     'cols': '',
                                     'rows': ''}))

    recruits_comments = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'recruits_comments',
                                     'class': 'flat',
                                     'placeholder': ('Where you successful '
                                                     'in recruiting new '
                                                     'Mozillians? If so, for '
                                                     'which project or '
                                                     'community?'),
                                     'cols': '',
                                     'rows': ''}))
    flags = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'flags',
                                     'class': 'flat',<commit_msg>[fix bug 856560] Fix typo.<commit_after>from happyforms import forms

from models import Report, ReportComment, ReportEvent, ReportLink

ReportEventFormset = forms.models.inlineformset_factory(Report, ReportEvent,
                                                        extra=1)
ReportLinkFormset = forms.models.inlineformset_factory(Report, ReportLink,
                                                       extra=1)


class ReportForm(forms.ModelForm):
    """Form of a report."""
    past_items = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'past_items',
                                     'class': 'flat',
                                     'placeholder': ('Summary or list of Rep '
                                                     'activities you were '
                                                     'involved in this past '
                                                     'month'),
                                     'cols': '',
                                     'rows': ''}))
    future_items = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'future_items',
                                     'class': 'flat',
                                     'placeholder': ('What Rep activity/ies '
                                                     'do you plan to be '
                                                     'involved in next '
                                                     'month?'),
                                     'cols': '',
                                     'rows': ''}))

    recruits_comments = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'recruits_comments',
                                     'class': 'flat',
                                     'placeholder': ('Were you successful '
                                                     'in recruiting new '
                                                     'Mozillians? If so, for '
                                                     'which project or '
                                                     'community?'),
                                     'cols': '',
                                     'rows': ''}))
    flags = forms.CharField(
        required=False,
        widget=forms.Textarea(attrs={'id': 'flags',
                                     'class': 'flat',
{'fraction_non_alphanumeric': 0.08836920529801325, 'fraction_numerical': 0.0020695364238410598, 'mean_word_length': 0.7886750555144337, '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': 74, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7620762', 'n_tokens_mistral': 905, 'n_tokens_neox': 874, 'n_words': 205}