<commit_before>""" Profile form. """

from django import forms
from django.contrib.auth.models import User


class ProfileForm(forms.Form):

    """ Form for editing profile. """

    first_name = forms.CharField()
    last_name = forms.CharField()
    bio = forms.CharField(widget=forms.Textarea(), required=False)
    show_facebook_urls = forms.BooleanField(label="Show Facebook Profiles",
                                            required=False)
    show_github_urls = forms.BooleanField(label="Show Github Profiles",
                                          required=False)
    show_linkedin_urls = forms.BooleanField(label="Show LinkedIn Profiles")
    show_twitter_urls = forms.BooleanField(label="Show Twitter Profiles")
    show_google_urls = forms.BooleanField(label="Show Google Profiles")
    show_stackexchange_urls = forms.BooleanField(
        label="Show StackExchange Profiles")


class ProfilePhotoForm(forms.Form):

    """ Form for uploading a new profile photo. """

    photo = forms.ImageField()

<commit_msg>Removed required on showing social profiles<commit_after>""" Profile form. """

from django import forms
from django.contrib.auth.models import User


class ProfileForm(forms.Form):

    """ Form for editing profile. """

    first_name = forms.CharField()
    last_name = forms.CharField()
    bio = forms.CharField(widget=forms.Textarea(), required=False)
    show_facebook_urls = forms.BooleanField(label="Show Facebook Profiles",
                                            required=False)
    show_github_urls = forms.BooleanField(label="Show Github Profiles",
                                          required=False)
    show_linkedin_urls = forms.BooleanField(label="Show LinkedIn Profiles",
                                            required=False)
    show_twitter_urls = forms.BooleanField(label="Show Twitter Profiles",
                                           required=False)
    show_google_urls = forms.BooleanField(label="Show Google Profiles",
                                          required=False)
    show_stackexchange_urls = forms.BooleanField(
        label="Show StackExchange Profiles", required=False)


class ProfilePhotoForm(forms.Form):

    """ Form for uploading a new profile photo. """

    photo = forms.ImageField()


{'fraction_non_alphanumeric': 0.09332751853467074, 'fraction_numerical': 0.0, 'mean_word_length': 2.6125984251968504, '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': '7612022', 'n_tokens_mistral': 572, 'n_tokens_neox': 564, 'n_words': 133}