<commit_before>from django.db import models

from taggit.managers import TaggableManager


class Test(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    html = models.TextField()

    tags = TaggableManager()

    def get_absolute_url(self):
        return '/test/detail/%s' % self.pk


class Run(models.Model):
    title = models.CharField(max_length=255)
    version = models.CharField(max_length=255)
    tests = models.ManyToManyField(Test, through='TestInstance')


class TestInstance(models.Model):
    test = models.ForeignKey(Test)<commit_msg>Implemented #19 (order runs by create date)<commit_after>from django.db import models

from taggit.managers import TaggableManager


class Test(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField()
    html = models.TextField()

    tags = TaggableManager()

    def get_absolute_url(self):
        return '/test/detail/%s' % self.pk


class Run(models.Model):
    title = models.CharField(max_length=255)
    version = models.CharField(max_length=255)
    tests = models.ManyToManyField(Test, through='TestInstance')
    created_on = models.DateTimeField(auto_now_add=True)

    class Meta:
        ordering = ('-created_on', ) 


class TestInstance(models.Model):
    test = models.ForeignKey(Test)
{'fraction_non_alphanumeric': 0.11011904761904762, 'fraction_numerical': 0.01488095238095238, 'mean_word_length': 4.133587786259542, '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': '777448', 'n_tokens_mistral': 429, 'n_tokens_neox': 401, 'n_words': 83}