<commit_before># -*- coding: UTF-8 -*-
# Application: Vimba - CMS
# Module: SimpleNews
# Copyright (c) 2010 Vimba inc. All rights reserved.
# Created by <NAME> on 20-03-2010.

from django.db import models
from tagging.models import TagField
from vcms.apps.www.models import PageElementPosition


class Article(models.Model):
    LIVE_STATUS = 1
    DRAFT_STATUS = 2
    HIDDEN_STATUS = 3
    STATUS_CHOICES = ((LIVE_STATUS, _('Live')), (DRAFT_STATUS, _('Draft')), (HIDDEN_STATUS, _('Hidden')))
    date = models.DateTimeField(auto_now=True, editable=True)
    name = models.CharField(max_length="40", help_text=_("Max 40 characters"), verbose_name=_("Title"))
    excerpt = models.TextField(verbose_name=_("Preview"))
    content = models.TextField()
    language = models.ForeignKey(Language)
    tags = TagField()
    status = models.IntegerField(choices=STATUS_CHOICES, default=LIVE_STATUS, help_text=_("Only Entries with the 'live' status will be publicly displayed."))

    def __unicode__(self):
        return self.name


class News(Article):
    class Meta:<commit_msg>Added missing imports.<commit_after># -*- coding: UTF-8 -*-
# Application: Vimba - CMS
# Module: SimpleNews
# Copyright (c) 2010 Vimba inc. All rights reserved.
# Created by <NAME> on 20-03-2010.

from django.db import models
from django.utils.translation import ugettext, ugettext_lazy as _
from tagging.fields import TagField
from vcms.apps.www.models import Language, PageElementPosition


class Article(models.Model):
    LIVE_STATUS = 1
    DRAFT_STATUS = 2
    HIDDEN_STATUS = 3
    STATUS_CHOICES = ((LIVE_STATUS, _('Live')), (DRAFT_STATUS, _('Draft')), (HIDDEN_STATUS, _('Hidden')))
    date = models.DateTimeField(auto_now=True, editable=True)
    name = models.CharField(max_length="40", help_text=_("Max 40 characters"), verbose_name=_("Title"))
    excerpt = models.TextField(verbose_name=_("Preview"))
    content = models.TextField()
    language = models.ForeignKey(Language)
    tags = TagField()
    status = models.IntegerField(choices=STATUS_CHOICES, default=LIVE_STATUS, help_text=_("Only Entries with the 'live' status will be publicly displayed."))

    def __unicode__(self):
        return self.name


class News(Article):
    class Meta:
{'fraction_non_alphanumeric': 0.1237159446181331, 'fraction_numerical': 0.01786511835640911, 'mean_word_length': 4.5721393034825875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3384402', 'n_tokens_mistral': 753, 'n_tokens_neox': 696, 'n_words': 180}