<commit_before>from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
#import datetime
# Create your models here.
class ComputerGroup(models.Model):
    name = models.CharField(max_length=200)
    prefix = models.CharField(max_length=200, verbose_name="Computer Name Prefix",blank=True,null=True)
    domain = models.CharField(max_length=200, verbose_name="Computer Domain",blank=True,null=True)
    def __unicode__(self):
        if self.name:
            return self.name
        else:
            return self.id

class Computer(models.Model):
    computergroup = models.ForeignKey(ComputerGroup)
    name = models.CharField(max_length=200, verbose_name="Computer Name")
    serial = models.CharField(max_length=200, verbose_name="Serial Number", unique=True)
    last_checkin = models.DateTimeField(blank=True,null=True)<commit_msg>Added some ordering to the computer model<commit_after>from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
#import datetime
# Create your models here.
class ComputerGroup(models.Model):
    name = models.CharField(max_length=200)
    prefix = models.CharField(max_length=200, verbose_name="Computer Name Prefix",blank=True,null=True)
    domain = models.CharField(max_length=200, verbose_name="Computer Domain",blank=True,null=True)
    def __unicode__(self):
        if self.name:
            return self.name
        else:
            return self.id

class Computer(models.Model):
    computergroup = models.ForeignKey(ComputerGroup)
    name = models.CharField(max_length=200, verbose_name="Computer Name")
    serial = models.CharField(max_length=200, verbose_name="Serial Number", unique=True)
    last_checkin = models.DateTimeField(blank=True,null=True)
    def __unicode__(self):
        return self.name
    class Meta:
        ordering = ['name']
{'fraction_non_alphanumeric': 0.0997920997920998, 'fraction_numerical': 0.015592515592515593, 'mean_word_length': 4.484330484330484, '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': '3047616', 'n_tokens_mistral': 588, 'n_tokens_neox': 545, 'n_words': 123}