<commit_before># -*- coding: utf-8 -*-
""" Defines models for this sample project.
"""
from django.db import models


class Booth(models.Model):
    name = models.CharField(max_length=1024)
    color = models.CharField(max_length=1024)

    def __str__(self):
        return self.name


class Poll(models.Model):
    question = models.CharField(max_length=1024)
    # booths = models.ManyToManyField(Booth, blank=True)

    def __str__(self):
        return self.question


class Choice(models.Model):
    # poll = models.ForeignKey(Poll, related_name='+')
    poll = models.ForeignKey(Poll)
    text = models.CharField(max_length=1024)

    def __str__(self):
        return self.text<commit_msg>Models are exactly like the polls app.<commit_after># -*- coding: utf-8 -*-
""" Defines models for this sample project.
"""
from django.db import models


class Poll(models.Model):
    question = models.CharField(max_length=1024)
    pub_date = models.DateTimeField('date published')

    def __str__(self):
        return self.question


class Choice(models.Model):
    poll = models.ForeignKey(Poll)
    choice_text = models.CharField(max_length=1024)
    votes = models.IntegerField()

    def __str__(self):
        return self.text
{'fraction_non_alphanumeric': 0.11841038118410381, 'fraction_numerical': 0.021086780210867802, 'mean_word_length': 3.5703703703703704, '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': '1840942', 'n_tokens_mistral': 400, 'n_tokens_neox': 370, 'n_words': 88}