<commit_before>from django.contrib import admin
from django.contrib.auth import login as auth_login, authenticate
from django.db import models
from django.utils.translation import ugettext_lazy as _

from pennyblack.options import NewsletterReceiverMixin

from woodstock import settings
from woodstock.models.extendable import ExtendableMixin

import datetime

#-----------------------------------------------------------------------------
# Person
#-----------------------------------------------------------------------------
class Person(models.Model, NewsletterReceiverMixin, ExtendableMixin):
    salutation = models.ForeignKey('woodstock.Salutation')
    firstname = models.CharField(verbose_name=_('Firstname'), max_length=100)
    surname = models.CharField(verbose_name=_('Surname'), max_length=100)
    email = models.EmailField(verbose_name=_('E-Mail'), unique=settings.PERSON_EMAIL_UNIQUE)
    password = models.CharField(verbose_name=_('Password'),max_length=100)
    is_active = models.BooleanField(verbose_name=_('Active'), default=False)
    last_login = models.DateTimeField(_('last login'), default=datetime.datetime.now)
    language = models.CharField(max_length=5, choices=settings.LANGUAGES,
        default=settings.LANGUAGE_CODE, blank=True)
    
    # used for authentication
    is_staff = False
    is_superuser = False<commit_msg>allow None for last_login<commit_after>from django.contrib import admin
from django.contrib.auth import login as auth_login, authenticate
from django.db import models
from django.utils.translation import ugettext_lazy as _

from pennyblack.options import NewsletterReceiverMixin

from woodstock import settings
from woodstock.models.extendable import ExtendableMixin

import datetime

#-----------------------------------------------------------------------------
# Person
#-----------------------------------------------------------------------------
class Person(models.Model, NewsletterReceiverMixin, ExtendableMixin):
    salutation = models.ForeignKey('woodstock.Salutation')
    firstname = models.CharField(verbose_name=_('Firstname'), max_length=100)
    surname = models.CharField(verbose_name=_('Surname'), max_length=100)
    email = models.EmailField(verbose_name=_('E-Mail'), unique=settings.PERSON_EMAIL_UNIQUE)
    password = models.CharField(verbose_name=_('Password'),max_length=100)
    is_active = models.BooleanField(verbose_name=_('Active'), default=False)
    last_login = models.DateTimeField(_('last login'), null=True)
    language = models.CharField(max_length=5, choices=settings.LANGUAGES,
        default=settings.LANGUAGE_CODE, blank=True)
    
    # used for authentication
    is_staff = False
    is_superuser = False
{'fraction_non_alphanumeric': 0.19719350073855244, 'fraction_numerical': 0.007385524372230428, 'mean_word_length': 3.1549079754601226, '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': '4981374', 'n_tokens_mistral': 720, 'n_tokens_neox': 705, 'n_words': 144}