<commit_before>from django.contrib.auth.models import User
from django.contrib.comments.models import Comment
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from django.utils.functional import cached_property

from competitions.models import Competition, Season
from problems.models import UserSolution
from events.models import EventUserRegistration


# User-related models
class UserProfile(models.Model):
    '''
    Represents an user profile. This contains non-auth information stored
    for the particular user.

    Any user can have both UserProfile and OrganizerProfile set.
    '''

    user = models.OneToOneField('auth.User',
                                verbose_name=_('user'))

    # personal info
    date_of_birth = models.DateField(blank=True,
                                     null=True,
                                     verbose_name=_('date of birth'))

    sex = models.CharField(max_length=1,
                           blank=True,
                           null=True,
                           choices=(('M', _('male')), ('F', _('female'))),
                           verbose_name=_('sex'))

    # address information
    phone_number = models.CharField(max_length=30,<commit_msg>profiles: Remove redundant import<commit_after>from django.contrib.auth.models import User
from django.contrib.comments.models import Comment
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from django.utils.functional import cached_property

from competitions.models import Competition, Season
from events.models import EventUserRegistration


# User-related models
class UserProfile(models.Model):
    '''
    Represents an user profile. This contains non-auth information stored
    for the particular user.

    Any user can have both UserProfile and OrganizerProfile set.
    '''

    user = models.OneToOneField('auth.User',
                                verbose_name=_('user'))

    # personal info
    date_of_birth = models.DateField(blank=True,
                                     null=True,
                                     verbose_name=_('date of birth'))

    sex = models.CharField(max_length=1,
                           blank=True,
                           null=True,
                           choices=(('M', _('male')), ('F', _('female'))),
                           verbose_name=_('sex'))

    # address information
    phone_number = models.CharField(max_length=30,
{'fraction_non_alphanumeric': 0.08210922787193974, 'fraction_numerical': 0.0022598870056497176, 'mean_word_length': 2.3577749683944376, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3261284', 'n_tokens_mistral': 675, 'n_tokens_neox': 641, 'n_words': 182}