<commit_before>from django.db import models

class Domain(models.Model):
    id = models.IntegerField(primary_key=True)
    name = models.CharField(unique=True, max_length=255)
    master = models.CharField(max_length=128)
    last_check = models.IntegerField()
    type = models.CharField(max_length=6)
    notified_serial = models.IntegerField()
    account = models.CharField(max_length=40)
    def __unicode__(self):
        return self.name
    class Meta:
        db_table = u'domains'

class Record(models.Model):                                                                                                                                 
    id = models.IntegerField(primary_key=True)                                                                                                               
    domain = models.ForeignKey(Domains)                                                                                                                      
    name = models.CharField(max_length=255)                                                                                                                  
    type = models.CharField(max_length=6)
    content = models.CharField(max_length=255)
    ttl = models.IntegerField()
    prio = models.IntegerField()
    change_date = models.IntegerField()
    def __unicode__(self):
        return self.name
    class Meta:
        db_table = u'records'

class Supermaster(models.Model):
    ip = models.CharField(max_length=25)
    nameserver = models.CharField(max_length=255)
    account = models.CharField(max_length=40)
    class Meta:
        db_table = u'supermasters'
<commit_msg>Fix ForeignKey typo<commit_after># -*- coding: utf-8 -*-
from django.db import models

class Domain(models.Model):
    id = models.IntegerField(primary_key=True)
    name = models.CharField(unique=True, max_length=255)
    master = models.CharField(max_length=128)
    last_check = models.IntegerField()
    type = models.CharField(max_length=6)
    notified_serial = models.IntegerField()
    account = models.CharField(max_length=40)
    def __unicode__(self):
        return self.name
    class Meta:
        db_table = u'domains'

class Record(models.Model):
    id = models.IntegerField(primary_key=True)
    domain = models.ForeignKey(Domain)
    name = models.CharField(max_length=255)
    type = models.CharField(max_length=6)
    content = models.CharField(max_length=255)
    ttl = models.IntegerField()
    prio = models.IntegerField()
    change_date = models.IntegerField()
    def __unicode__(self):
        return self.name
    class Meta:
        db_table = u'records'

class Supermaster(models.Model):
    ip = models.CharField(max_length=25)
    nameserver = models.CharField(max_length=255)
    account = models.CharField(max_length=40)
    class Meta:
        db_table = u'supermasters'
{'fraction_non_alphanumeric': 0.08858543417366947, 'fraction_numerical': 0.016456582633053222, 'mean_word_length': 1.9212678936605316, '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': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6295570', 'n_tokens_mistral': 790, 'n_tokens_neox': 753, 'n_words': 139}