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

POINT_CHOICES = (
    (-1, -1),
    (0, 0),
    (1, 1),
    )

class Debate(models.Model):
  title = models.CharField(max_length = 200)
  summary = models.TextField() # not for the first entry!  just a summary, please
  pub_date = models.DateTimeField(auto_now_add = True)
  instigator = models.ForeignKey(User, related_name = "instigator")
  challenger = models.ForeignKey(User, related_name = "challenger")

class Entry(models.Model):
  debate = models.ForeignKey(Debate)
  text = models.TextField()
  author = models.ForeignKey(User)
  pub_date = models.DateTimeField(auto_now_add = True)

class Comment(models.Model):
  author = models.ForeignKey(User)
  text = models.TextField()
  parentEntry = models.ForeignKey(Entry)
  parentComment = models.ForeignKey('self')
  pub_date = models.DateTimeField(auto_now_add = True)
  parentPoints = models.SmallIntegerField(choices = POINT_CHOICES, default = 0)<commit_msg>comments don't have to have a parent comment.  they do have to have a parent debate entry.<commit_after>from django.db import models
from django.contrib.auth.models import User

POINT_CHOICES = (
    (-1, -1),
    (0, 0),
    (1, 1),
    )

class Debate(models.Model):
  title = models.CharField(max_length = 200)
  summary = models.TextField() # not for the first entry!  just a summary, please
  pub_date = models.DateTimeField(auto_now_add = True)
  instigator = models.ForeignKey(User, related_name = "instigator")
  challenger = models.ForeignKey(User, related_name = "challenger")

class Entry(models.Model):
  debate = models.ForeignKey(Debate)
  text = models.TextField()
  author = models.ForeignKey(User)
  pub_date = models.DateTimeField(auto_now_add = True)

class Comment(models.Model):
  author = models.ForeignKey(User)
  text = models.TextField()
  parentEntry = models.ForeignKey(Entry)
  parentComment = models.ForeignKey('self', null = True, blank = True)
  pub_date = models.DateTimeField(auto_now_add = True)
  parentPoints = models.SmallIntegerField(choices = POINT_CHOICES, default = 0)
{'fraction_non_alphanumeric': 0.1130558183538316, 'fraction_numerical': 0.00946073793755913, 'mean_word_length': 4.716216216216216, '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': '38555', 'n_tokens_mistral': 683, 'n_tokens_neox': 666, 'n_words': 161}