<commit_before>from django.db import models

class Gene(models.Model):
    """
    `Gene` model
    """
    # entrez id
    slug = models.SlugField(unique=True)

    # gene name upper
    gene_name_upper = models.CharField(max_length=30)

    # gene name display
    gene_name = models.CharField(max_length=30)

    # chrom
    chrom = models.CharField(max_length=20)

    # strand
    strand = models.CharField(max_length=1)

    # start
    start = models.IntegerField()

    # end
    end = models.IntegerField()


class GeneUserData(models.Model):
    """
    `GeneUserData` model
    """
    # hash
    upload_hash = models.CharField(max_length=6)

    # foreign key to gene
    gene = models.ForeignKey(to=Gene, related_name='gene_user_data')<commit_msg>Added unicode representation to our two models.<commit_after>from django.db import models


class Gene(models.Model):
    """
    `Gene` model
    """
    # entrez id
    slug = models.SlugField(unique=True)

    # gene name upper
    gene_name_upper = models.CharField(max_length=30)

    # gene name display
    gene_name = models.CharField(max_length=30)

    # chrom
    chrom = models.CharField(max_length=20)

    # strand
    strand = models.CharField(max_length=1)

    # start
    start = models.IntegerField()

    # end
    end = models.IntegerField()

    def __unicode__(self):
        return self.gene_name


class GeneUserData(models.Model):
    """
    `GeneUserData` model
    """
    # hash
    upload_hash = models.CharField(max_length=6)

    # foreign key to gene
    gene = models.ForeignKey(to=Gene, related_name='gene_user_data')

    def __unicode__(self):
        return self.upload_hash
{'fraction_non_alphanumeric': 0.10579796772265392, 'fraction_numerical': 0.009563658099222952, 'mean_word_length': 2.9952267303102627, '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': '4477816', 'n_tokens_mistral': 568, 'n_tokens_neox': 526, 'n_words': 109}