<commit_before>from django.db import models


class Image(models.Model):
    title = models.CharField(max_length=100, db_index=True)
    file = models.ImageField('Image', upload_to='assets/image',
            height_field='image_height', width_field='image_width')
    image_height = models.PositiveIntegerField(editable=False)
    image_width = models.PositiveIntegerField(editable=False)

    def __unicode__(self):
        return self.title

    def get_absolute_url(self):
        return self.file.url


class File(models.Model):
    title = models.CharField(max_length=100, db_index=True)
    file = models.FileField(upload_to='assets/file')

    def __unicode__(self):
        return self.title

    def get_absolute_url(self):
        return self.file.url<commit_msg>Order images/files by title<commit_after>from django.db import models


class Image(models.Model):
    title = models.CharField(max_length=100, db_index=True)
    file = models.ImageField('Image', upload_to='assets/image',
            height_field='image_height', width_field='image_width')
    image_height = models.PositiveIntegerField(editable=False)
    image_width = models.PositiveIntegerField(editable=False)

    class Meta:
        ordering = ('title',)

    def __unicode__(self):
        return self.title

    def get_absolute_url(self):
        return self.file.url


class File(models.Model):
    title = models.CharField(max_length=100, db_index=True)
    file = models.FileField(upload_to='assets/file')

    class Meta:
        ordering = ('title',)

    def __unicode__(self):
        return self.title

    def get_absolute_url(self):
        return self.file.url
{'fraction_non_alphanumeric': 0.1068840579710145, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 3.7207977207977208, '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': '6420086', 'n_tokens_mistral': 518, 'n_tokens_neox': 487, 'n_words': 92}