<commit_before>import datetime
from django.db import models
from django.utils import timezone
from django.conf import settings


class Profile(models.Model):
    user = models.OneToOneField(settings.AUTH_USER_MODEL)
    bio = models.TextField()
    website = models.URLField()

    def __str__(self):
        if self.user.name:
            return self.user.name + " (" + self.user.username + ")"
        else:
            return self.user.username

class Project(models.Model):
    STATE_CHOICES = (
        ('C','Concept'),
        ('O','Ongoing'),
        ('D','Done'),
        ('A','Abandoned')
    )
    title = models.CharField(max_length=140)
    description = models.TextField()
    last_update = models.DateField(timezone.now())<commit_msg>Fix small errors in models.<commit_after>import datetime
from django.db import models
from django.utils import timezone
from django.conf import settings


class Profile(models.Model):
    user = models.OneToOneField(settings.AUTH_USER_MODEL)
    bio = models.TextField()
    website = models.URLField()

    def __str__(self):
        if hasattr(self.user, 'name'):
            return self.user.name + " (" + self.user.username + ")"
        else:
            return self.user.username


class Project(models.Model):
    STATE_CHOICES = (
        ('C','Concept'),
        ('O','Ongoing'),
        ('D','Done'),
        ('A','Abandoned')
    )
    title = models.CharField(max_length=140)
    description = models.TextField()
    last_update = models.DateField(default=timezone.now())
{'fraction_non_alphanumeric': 0.13324624428478118, 'fraction_numerical': 0.003919007184846506, 'mean_word_length': 2.918158567774936, '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': '565193', 'n_tokens_mistral': 464, 'n_tokens_neox': 450, 'n_words': 94}