<commit_before>from django.db import models

class Status(models.Model):
   # Status of the contest.
   name = models.CharField('Status', max_length = 100)

   class Meta:
      verbose_name_plural = "Statuses"

   def __unicode__(self):
      return self.name

class Contest(models.Model):
   title = models.CharField('Contest Title', max_length = 200)
   starts = models.DateTimeField('Start Date', auto_now = True, auto_now_add = True)
   ends = models.DateTimeField('End Date', auto_now = True, auto_now_add = True)
   status = models.ForeignKey(Status)
   summary = models.TextField('Contest Details')

   def __unicode__(self):
      return self.title
<commit_msg>Changed the contest start/end to default to now and a week from now.<commit_after>from datetime import datetime, timedelta
from django.db import models

class Status(models.Model):
   # Status of the contest.
   name = models.CharField('Status', max_length = 100)

   class Meta:
      verbose_name_plural = "Statuses"

   def __unicode__(self):
      return self.name

class Contest(models.Model):
   title = models.CharField('Contest Title', max_length = 200)
   starts = models.DateTimeField('Start Date', default = datetime.now)
   ends = models.DateTimeField('End Date', default = lambda: datetime.now() + timedelta(days=7))
   status = models.ForeignKey(Status)
   summary = models.TextField('Contest Details')

   def __unicode__(self):
      return self.title

{'fraction_non_alphanumeric': 0.10570236439499305, 'fraction_numerical': 0.009040333796940195, 'mean_word_length': 4.120996441281139, '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': '184204', 'n_tokens_mistral': 441, 'n_tokens_neox': 414, 'n_words': 119}