<commit_before>from django.db import models
from django.contrib.auth.models import User

class Invitation(models.Model):
    hash = models.CharField(max_length=255, unique=True)
    email = models.EmailField(null=True, blank=True)
    inviter = models.ForeignKey(User, null=True, blank=True, related_name='invitations')
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)

    class Meta:
        app_label = 'viter'

    def __unicode__(self):
        return self.hash

class InvitationUsage(models.Model):
    invitation = models.ForeignKey('Invitation', null=False, blank=False, related_name='usages')
    user = models.ForeignKey(User, null=True, blank=True, related_name='invitations_used')
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)

    class Meta:
        app_label = 'viter'

    def __unicode__(self):
        return unicode(invitation)+u":"+unicode(user)<commit_msg>Fixing an error on models __unicode__ representation<commit_after>from django.db import models
from django.contrib.auth.models import User

class Invitation(models.Model):
    hash = models.CharField(max_length=255, unique=True)
    email = models.EmailField(null=True, blank=True)
    inviter = models.ForeignKey(User, null=True, blank=True, related_name='invitations')
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)

    class Meta:
        app_label = 'viter'

    def __unicode__(self):
        return self.hash

class InvitationUsage(models.Model):
    invitation = models.ForeignKey('Invitation', null=False, blank=False, related_name='usages')
    user = models.ForeignKey(User, null=True, blank=True, related_name='invitations_used')
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)

    class Meta:
        app_label = 'viter'

    def __unicode__(self):
        return unicode(self.invitation)+u":"+unicode(self.user.email)
{'fraction_non_alphanumeric': 0.11034820990681707, 'fraction_numerical': 0.0029426189308484553, 'mean_word_length': 4.730337078651686, 'pattern_counts': {'":': 2, '<': 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': '968216', 'n_tokens_mistral': 627, 'n_tokens_neox': 606, 'n_words': 119}