<commit_before>
from django.db import models
from mptt.models import MPTTModel, TreeForeignKey

from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User, Group

class Comment(MPTTModel):

    created = models.DateTimeField(auto_now_add = True)
    updated = models.DateTimeField(auto_now = True)

    commenttext = models.CharField(max_length=4096, unique=True)
    parent = TreeForeignKey('self', null=True, blank=True, related_name='children')
    commenter = models.ForeignKey(User, related_name='commenter',default=User)

   ## This stuff is the content type, id, and ForeignKey of the object we are commenting on.
    content_type = models.ForeignKey(ContentType)
    object_id = models.PositiveIntegerField()
    subject = generic.GenericForeignKey('content_type', 'object_id')<commit_msg> CharField cannot have a "max_length" greater than 255 when using "unique=True".<commit_after>
from django.db import models
from mptt.models import MPTTModel, TreeForeignKey

from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User, Group

class Comment(MPTTModel):

    created = models.DateTimeField(auto_now_add = True)
    updated = models.DateTimeField(auto_now = True)

    commenttext = models.CharField(max_length=4096)
    parent = TreeForeignKey('self', null=True, blank=True, related_name='children')
    commenter = models.ForeignKey(User, related_name='commenter',default=User)

   ## This stuff is the content type, id, and ForeignKey of the object we are commenting on.
    content_type = models.ForeignKey(ContentType)
    object_id = models.PositiveIntegerField()
    subject = generic.GenericForeignKey('content_type', 'object_id')
{'fraction_non_alphanumeric': 0.08951965065502183, 'fraction_numerical': 0.006004366812227074, 'mean_word_length': 5.593525179856115, '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': '7203913', 'n_tokens_mistral': 523, 'n_tokens_neox': 503, 'n_words': 140}