<commit_before>from django.db import models
from django.contrib.auth.models import User
from django.forms import ModelForm

class Coder(models.Model):
	user = models.OneToOneField(User)
	overall_rank = models.IntegerField(default = 0)
	overall_score = models.DecimalField(max_digits = 6, decimal_places = 3)
	def __unicode__(self):
		return self.user.username

class Problem(models.Model):
	title = models.CharField(max_length = 200)
	statement = models.TextField()
	slug = models.SlugField()
	answer = models.TextField()
	arg_vars = models.CharField(max_length = 200, default = "") # of form "n1, n2, n3"
	arg_values = models.CharField(max_length = 200, default = "") # of form "3, 4, 5"
	def __unicode__(self):
		return self.title

class Entry(models.Model):
	coder = models.ForeignKey(Coder)
	problem = models.ForeignKey(Problem)
	text = models.TextField()
	score = models.IntegerField(default = 0)
	def __unicode__(self):
		return self.coder.user.username + ': ' + self.problem.title


<commit_msg>Update models.py<commit_after>from django.db import models
from django.contrib.auth.models import User
from django.forms import ModelForm

class Coder(models.Model): # represents a coder with a user account, a rank, and a composite score
	user = models.OneToOneField(User)
	overall_rank = models.IntegerField(default = 0)
	overall_score = models.DecimalField(max_digits = 6, decimal_places = 3)
	def __unicode__(self):
		return self.user.username

class Problem(models.Model): # represents a problem with a full title, a problem statement, a short URL slug, an answer, a set of variables, and a set of test input values
	title = models.CharField(max_length = 200)
	statement = models.TextField()
	slug = models.SlugField()
	answer = models.TextField()
	arg_vars = models.CharField(max_length = 200, default = "") # of form "n1, n2, n3"
	arg_values = models.CharField(max_length = 200, default = "") # of form "3, 4, 5"
	def __unicode__(self):
		return self.title

class Entry(models.Model): # represents a submission entry by a coder to a problem, contains the solution text and score for the problem
	coder = models.ForeignKey(Coder)
	problem = models.ForeignKey(Problem)
	text = models.TextField()
	score = models.IntegerField(default = 0)
	def __unicode__(self):
		return self.coder.user.username + ': ' + self.problem.title



{'fraction_non_alphanumeric': 0.10806174957118353, 'fraction_numerical': 0.016295025728987993, 'mean_word_length': 4.966751918158568, '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': '2433227', 'n_tokens_mistral': 779, 'n_tokens_neox': 724, 'n_words': 214}