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

# Create your models here.
class Platform(models.Model):
    name = models.CharField(max_length=50, help_text='Set the platform name',
                                unique=True, blank=False, null=False, db_index=True)
    user = models.ForeignKey(User)

    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ('name',)

class Application(models.Model):
    name = models.CharField(max_length=150, help_text='Set the application name',
                                unique=True, blank=False, null=False, db_index=True)
    short_description = models.TextField(help_text='Set the short description',
                                blank=False, null=False)
    summary = models.TextField(help_text='Set the summary', blank=False,
                                null=False)
    slug = models.SlugField(max_length=150)
    platform = models.ManyToManyField('Platform')
    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ('name',)

class Flavour(models.Model):
    name = models.CharField(max_length=150, help_text='Set the flavour name',
                                unique=True, blank=False, null=False, db_index=True)
    slug = models.SlugField(max_length=150)
    application = models.ForeignKey('Application')
    platform = models.ForeignKey('Platform')

    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ('name',)

class Release(models.Model):
    version = models.CharField(max_length=50, help_text='Set the release version',
                                blank=False, null=False, db_index=True)

    def __unicode__(self):
        return self.version

    class Meta:
        ordering = ('version',)<commit_msg>adding user in models<commit_after>from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Platform(models.Model):
    name = models.CharField(max_length=50, help_text='Set the platform name',
                                unique=True, blank=False, null=False, db_index=True)
    user = models.ForeignKey(User)

    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ('name',)

class Application(models.Model):
    name = models.CharField(max_length=150, help_text='Set the application name',
                                unique=True, blank=False, null=False, db_index=True)
    short_description = models.TextField(help_text='Set the short description',
                                blank=False, null=False)
    summary = models.TextField(help_text='Set the summary', blank=False,
                                null=False)
    slug = models.SlugField(max_length=150)
    platform = models.ManyToManyField('Platform')
    user = models.ForeignKey(User)

    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ('name',)

class Flavour(models.Model):
    name = models.CharField(max_length=150, help_text='Set the flavour name',
                                unique=True, blank=False, null=False, db_index=True)
    slug = models.SlugField(max_length=150)
    application = models.ForeignKey('Application')
    platform = models.ForeignKey('Platform')
    user = models.ForeignKey(User)

    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ('name',)

class Release(models.Model):
    version = models.CharField(max_length=50, help_text='Set the release version',
                                blank=False, null=False, db_index=True)

    def __unicode__(self):
        return self.version

    class Meta:
        ordering = ('version',)
{'fraction_non_alphanumeric': 0.10362416107382551, 'fraction_numerical': 0.008590604026845637, 'mean_word_length': 2.620991253644315, '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': '3998052', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1004, 'n_words': 238}