<commit_before>from __future__ import absolute_import
from django import forms
from registration.forms import RegistrationFormUniqueEmail
from .models import Profile

class RegistrationForm(RegistrationFormUniqueEmail):
    def __init__(self, *args, **kwargs):
        super(RegistrationForm, self).__init__(*args, **kwargs)
        del self.fields["tos"]

class ProfileForm(forms.ModelForm):
    """
    A form for editing user profiles.

    Assumes that the Profile instance passed in has an associated User
    object. The view (see views.py) takes care of tha
    """
    class Meta(object):
        model = Profile
        fields = ['name']
    email = forms.EmailField(required=False)<commit_msg>Removed some dead code.<commit_after>from __future__ import absolute_import

from django import forms

from .models import Profile

class ProfileForm(forms.ModelForm):
    """
    A form for editing user profiles.

    Assumes that the Profile instance passed in has an associated User
    object. The view (see views.py) takes care of tha
    """
    class Meta(object):
        model = Profile
        fields = ['name']
    email = forms.EmailField(required=False)
{'fraction_non_alphanumeric': 0.08041060735671514, 'fraction_numerical': 0.0, 'mean_word_length': 3.606299212598425, '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': '7011429', 'n_tokens_mistral': 305, 'n_tokens_neox': 300, 'n_words': 113}