<commit_before>from django.template.defaultfilters import truncatechars
from django.db import models

from getyourdata.models import BaseModel


class ServiceFeedback(BaseModel):
    content = models.TextField(max_length=4096)

    origin_url = models.TextField(max_length=512)

    @property
    def short_content(self):
        return truncatechars(self.content, 500)<commit_msg>Eh, 500 characters was still way too much. 125 characters looks better.<commit_after>from django.template.defaultfilters import truncatechars
from django.db import models

from getyourdata.models import BaseModel


class ServiceFeedback(BaseModel):
    content = models.TextField(max_length=4096)

    origin_url = models.TextField(max_length=512)

    @property
    def short_content(self):
        return truncatechars(self.content, 125)
{'fraction_non_alphanumeric': 0.07195121951219512, 'fraction_numerical': 0.03170731707317073, 'mean_word_length': 5.036764705882353, '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': '4601194', 'n_tokens_mistral': 249, 'n_tokens_neox': 220, 'n_words': 58}