<commit_before>from django.db import models
from imagekit.models import ImageModel
import datetime

class Entry(ImageModel):
    title = models.CharField(max_length=300)
    slug = models.SlugField()
    pub_date = models.DateField(default=datetime.datetime.today)
    body = models.TextField(blank=True)
    original_image = models.ImageField(upload_to="storage/photoblog/original")
    num_views = models.PositiveIntegerField(editable=False, default=0)
    published = models.BooleanField(default=True)
    
    def snippet(self):
        return self.body[:50] + ('...' if len(self.body) > 50 else '')
    
    class IKOptions:
        spec_module = 'photoblog.specs'
        cache_dir = 'storage/photoblog/cache'
        image_field = 'original_image'
        save_count_as = 'num_views'
    <commit_msg>Figured out the verbose_name_plural stuff.<commit_after>from django.db import models
from imagekit.models import ImageModel
import datetime

class Entry(ImageModel):
    title = models.CharField(max_length=300)
    slug = models.SlugField()
    pub_date = models.DateField(default=datetime.datetime.today)
    body = models.TextField(blank=True)
    original_image = models.ImageField(upload_to="storage/photoblog/original")
    num_views = models.PositiveIntegerField(editable=False, default=0)
    published = models.BooleanField(default=True)
    
    def snippet(self):
        return self.body[:50] + ('...' if len(self.body) > 50 else '')
    
    class Meta:
        verbose_name = 'entry'
        verbose_name_plural = 'entries'
    
    class IKOptions:
        spec_module = 'photoblog.specs'
        cache_dir = 'storage/photoblog/cache'
        image_field = 'original_image'
        save_count_as = 'num_views'
    
{'fraction_non_alphanumeric': 0.10489913544668587, 'fraction_numerical': 0.009221902017291067, 'mean_word_length': 3.5326370757180157, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7444433', 'n_tokens_mistral': 552, 'n_tokens_neox': 526, 'n_words': 100}