<commit_before>from django.db import models
from ..users.models import User
from django.core.validators import MinValueValidator, MaxValueValidator

# Create your models here.

class Answer(models.Model):
	score = models.IntegerField(validators = [MinValueValidator(0), MaxValueValidator(10)], null=True)
	answered_by = models.ForeignKey(User, limit_choices_to= {'type':'student'}, related_name = 'answered_by')
	answered_for = models.ForeignKey(User, limit_choices_to= {'type':'student'}, related_name = 'answered_for')

class Question(models.Model):
	question_text = models.TextField()
	answers = models.ForeignKey(Answer, null= True)

	def __unicode__(self):
		return self.question_text<commit_msg>Fixed Answer and Question<commit_after>from django.db import models
from ..users.models import User
from django.core.validators import MinValueValidator, MaxValueValidator

# Create your models here.

class Answer(models.Model):
	score = models.IntegerField(validators = [MinValueValidator(0), MaxValueValidator(10)], null=True)
	answered_by = models.ForeignKey(User, limit_choices_to= {'type':'student'}, related_name = 'answered_by', null = True, blank = True)
	answered_for = models.ForeignKey(User, limit_choices_to= {'type':'student'}, related_name = 'answered_for', null = True, blank = True)

class Question(models.Model):
	question_text = models.TextField()
	answers = models.ForeignKey(Answer, null= True, blank = True)

	def __unicode__(self):
		return self.question_text
{'fraction_non_alphanumeric': 0.11740890688259109, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 7.0162162162162165, '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': '5091977', 'n_tokens_mistral': 464, 'n_tokens_neox': 429, 'n_words': 108}