<commit_before>from django import forms

class CreateListForm(forms.Form):
    name = forms.CharField(label="", max_length=30, widget=forms.TextInput(attrs={'placeholder': 'Name', 'class': 'form-control'}))
    public = forms.BooleanField(required=False)

    def __init__(self, *args, **kwargs):
        show_public = kwargs.pop('authenticated', False)

        super(CreateListForm, self).__init__(*args, **kwargs)
        if not show_public:
            self.fields['public'].widget = forms.HiddenInput()
            self.fields['public'].initial = True

class LoginForm(forms.Form):
    user = forms.CharField(label="", max_length=30, widget=forms.TextInput(attrs={'placeholder': 'Username', 'class': 'form-control'}))<commit_msg>format public checkbox<commit_after>from django import forms

class CreateListForm(forms.Form):
    name = forms.CharField(label="", max_length=30, widget=forms.TextInput(attrs={'placeholder': 'Name', 'class': 'form-control'}))
    public = forms.BooleanField(required=False, widget=forms.CheckboxInput(attrs={'class': 'checkbox'}))

    def __init__(self, *args, **kwargs):
        show_public = kwargs.pop('authenticated', False)

        super(CreateListForm, self).__init__(*args, **kwargs)
        if not show_public:
            self.fields['public'].widget = forms.HiddenInput()
            self.fields['public'].initial = True

class LoginForm(forms.Form):
    user = forms.CharField(label="", max_length=30, widget=forms.TextInput(attrs={'placeholder': 'Username', 'class': 'form-control'}))
{'fraction_non_alphanumeric': 0.16101694915254236, 'fraction_numerical': 0.005215123859191656, 'mean_word_length': 4.7706766917293235, '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': '771677', 'n_tokens_mistral': 450, 'n_tokens_neox': 445, 'n_words': 85}