<commit_before>from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _

from teacher.models import Teacher

class LessonCategory(models.Model):
	name = models.CharField(max_length=60, null=False, blank=False)
	created_at = models.DateTimeField(auto_now_add=True)

	class Meta:
		verbose_name = _('Lesson Category')
		verbose_name_plural = _('Lesson Categories')

	def __unicode__(self):
		return u"Lesson Category:" % self.name


class Lesson(models.Model):
	category = models.ForeignKey(LessonCategory)
	name = models.CharField(null=True, blank=False, max_length=64)
	teacher = models.ForeignKey(Teacher)
	status = models.BooleanField(blank=False)
	info = models.TextField(null=True, blank=True)
	create_at = models.DateTimeField(auto_now_add=True)
	students = models.ManyToManyField(User)

	class Meta:
		verbose_name = _('Lesson')
		verbose_name_plural = _('Lessons')

	def __unicode__(self):
		return u"Lesson: " % self.name
<commit_msg>experiment的建模<commit_after>from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _

from teacher.models import Teacher

class LessonCategory(models.Model):
	name = models.CharField(max_length=60, null=False, blank=False)
	created_at = models.DateTimeField(auto_now_add=True)

	class Meta:
		verbose_name = _('Lesson Category')
		verbose_name_plural = _('Lesson Categories')

	def __unicode__(self):
		return u"Lesson Category:" % self.name


class Lesson(models.Model):
	category = models.ForeignKey(LessonCategory)
	name = models.CharField(null=True, blank=False, max_length=64)
	teacher = models.ForeignKey(Teacher)
	status = models.BooleanField(blank=False)
	info = models.TextField(null=True, blank=True)
	create_at = models.DateTimeField(auto_now_add=True)
	students = models.ManyToManyField(User)

	class Meta:
		verbose_name = _('Lesson')
		verbose_name_plural = _('Lessons')

	def __unicode__(self):
		return u"Lesson: " % self.name


class Experiment(models.Model):
	name = models.CharField(null = False, blank = False, max_length = 128)
	create_at = models.DateTimeField(auto_now_add = True)
	subject = models.CharField(null = False, blank = False, max_length = 128)
	content = models.TextField(null = False, blank = True)
	lesson = models.ForeignKey(Lesson)
	status = models.BooleanField(blank = False)
	deadline = models.DateTimeField(blank = True, null = True)

	class Meta:
		verbose_name = _('Experiment')
		verbose_name_plural = _('Lessons')

	def __unicode__(self):
		return u"Experiment: " % self.name
	

{'fraction_non_alphanumeric': 0.10923725565350709, 'fraction_numerical': 0.005366040628593331, 'mean_word_length': 5.923076923076923, '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': '3583525', 'n_tokens_mistral': 898, 'n_tokens_neox': 847, 'n_words': 183}