<commit_before>from django.db import models


class BatchRecord(models.Model):
    batch_id = models.UUIDField(unique=True, db_index=True)

    start_datetime = models.DateTimeField()
    end_datetime = models.DateTimeField()

    created_on = models.DateTimeField(auto_now_add=True)


class CommitRecord(models.Model):
    '''
    A CommitRecord records meta data about a certain warehouse table's
    batch.
    '''
    batch_record = models.ForeignKey('BatchRecord', on_delete=models.PROTECT)

    slug = models.CharField(max_length=100)
    error = models.TextField()
    success = models.NullBooleanField()
    verified = models.NullBooleanField()

    created_on = models.DateTimeField(auto_now_add=True)<commit_msg>make batch_id a primary key<commit_after>from django.db import models


class BatchRecord(models.Model):
    batch_id = models.UUIDField(unique=True, db_index=True, primary_key=True)

    start_datetime = models.DateTimeField()
    end_datetime = models.DateTimeField()

    created_on = models.DateTimeField(auto_now_add=True)


class CommitRecord(models.Model):
    '''
    A CommitRecord records meta data about a certain warehouse table's
    batch.
    '''
    batch_record = models.ForeignKey('BatchRecord', on_delete=models.PROTECT)

    slug = models.CharField(max_length=100)
    error = models.TextField()
    success = models.NullBooleanField()
    verified = models.NullBooleanField()

    created_on = models.DateTimeField(auto_now_add=True)
{'fraction_non_alphanumeric': 0.0975609756097561, 'fraction_numerical': 0.0040650406504065045, 'mean_word_length': 4.5111940298507465, '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': '4098898', 'n_tokens_mistral': 447, 'n_tokens_neox': 429, 'n_words': 86}