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


class Discussion(models.Model):
    name = models.CharField(max_length=255)
    slug = models.SlugField()

    def __unicode__(self):
        return self.name


class Post(models.Model):
    discussion = models.ForeignKey(Discussion)
    name = models.CharField(max_length=255)
    slug = models.SlugField()
    posts_file = models.FileField(upload_to='uploads/posts',
                                  blank=True, null=True)

    def __unicode__(self):
        return self.name


class Comment(models.Model):
    post = models.ForeignKey(Post)
    user = models.ForeignKey(User)<commit_msg>Link posts and discussions to a user<commit_after>from django.contrib.auth.models import User
from django.db import models


class Discussion(models.Model):
    user = models.ForeignKey(User)
    name = models.CharField(max_length=255)
    slug = models.SlugField()

    def __unicode__(self):
        return self.name


class Post(models.Model):
    discussion = models.ForeignKey(Discussion)
    user = models.ForeignKey(User)
    name = models.CharField(max_length=255)
    slug = models.SlugField()
    posts_file = models.FileField(upload_to='uploads/posts',
                                  blank=True, null=True)

    def __unicode__(self):
        return self.name


class Comment(models.Model):
    post = models.ForeignKey(Post)
    user = models.ForeignKey(User)
{'fraction_non_alphanumeric': 0.10034364261168385, 'fraction_numerical': 0.008247422680412371, 'mean_word_length': 3.171919770773639, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1416614', 'n_tokens_mistral': 449, 'n_tokens_neox': 417, 'n_words': 89}