<commit_before>from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User, Group
from django.contrib.sites.models import Site
from taggit.managers import TaggableManager

from samklang_utils import markdown, slugify
from samklang_utils.managers import PermissionManager
from samklang_blog.managers import LiveEntryManager

class Entry(models.Model):
    """
    Blog Entry.
    Specify which image class to use in settings.
    Example:
        BLOG_IMAGE_MODEL = { 'app': 'blog', 'model': 'image' }
    """

    # core fields
    title = models.CharField(_("title"), max_length=80, help_text=_("Maximum 80 characters."))
    body = models.TextField(_("contents"), help_text=_("Content written in markdown syntax."))
    pub_date = models.DateTimeField(blank=True, null=True, help_text=_("Date from which the entry is shown live. Blank = draft."))
    pub_enddate = models.DateTimeField(blank=True, null=True, help_text=_("Date from which the entry is no longer shown. Blank = live forever."))
    updated_date = models.DateTimeField(auto_now=True)

	# fields to store generated html<commit_msg>Update explanations and field names<commit_after>from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User, Group
from django.contrib.sites.models import Site
from taggit.managers import TaggableManager

from samklang_utils import markdown, slugify
from samklang_utils.managers import PermissionManager
from samklang_blog.managers import LiveEntryManager

class Entry(models.Model):
    """
    Blog Entry.
    Specify which image class to use in settings.
    Example:
        BLOG_IMAGE_MODEL = { 'app': 'blog', 'model': 'image' }
    """

    # core fields
    title = models.CharField(_("title"), max_length=80, help_text=_("Maximum 80 characters."))
    body = models.TextField(_("contents"), help_text=_("Content written in markdown syntax."))
    pub_date = models.DateTimeField(blank=True, null=True, verbose_name=_("publish date"), help_text=_("Date from which the entry is shown live. Blank = draft."))
    pub_enddate = models.DateTimeField(blank=True, null=True, verbose_name=_("withdrawn date"), help_text=_("Date from which the entry is no longer accessible. Blank = live forever."))
    updated_date = models.DateTimeField(auto_now=True)

	# fields to store generated html
{'fraction_non_alphanumeric': 0.09987618654560462, 'fraction_numerical': 0.0033016921172100704, 'mean_word_length': 4.9266503667481665, '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': '3707732', 'n_tokens_mistral': 704, 'n_tokens_neox': 687, 'n_words': 213}