<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 django.utils.translation import ugettext_lazy as _
from tagging.fields import TagField
from vcms.apps.www.models import Language, Page, PageElementPosition
from vcms.apps.simpleannouncements.models import Announcement


APP_SLUGS = "simplenews"


class Blog(Announcement):
    class Meta:
        verbose_name_plural = _("Blogs")
        get_latest_by = ['-date_created']
        ordering = ['-date_created']

class BlogPageModule(PageElementPosition):
    from vcms.apps.www.models import DashboardPage as DP
    page = models.ForeignKey(DP)
    tags = TagField()
    title = models.CharField(max_length="60", help_text=_("Max 60 characters"), verbose_name=_("Title"))

    def __unicode__(self):
        return self.page.name
<commit_msg>Fixed the APP_SLUG for SimpleBlogs.<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_lazy as _
from tagging.fields import TagField
from vcms.apps.www.models import Language, Page, PageElementPosition
from vcms.apps.simpleannouncements.models import Announcement


APP_SLUGS = "simpleblogs"


class Blog(Announcement):
    class Meta:
        verbose_name_plural = _("Blogs")
        get_latest_by = ['-date_created']
        ordering = ['-date_created']

class BlogPageModule(PageElementPosition):
    from vcms.apps.www.models import DashboardPage as DP
    page = models.ForeignKey(DP)
    tags = TagField()
    title = models.CharField(max_length="60", help_text=_("Max 60 characters"), verbose_name=_("Title"))

    def __unicode__(self):
        return self.page.name

{'fraction_non_alphanumeric': 0.10556422256890276, 'fraction_numerical': 0.01768070722828913, 'mean_word_length': 4.08994708994709, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '7543935', 'n_tokens_mistral': 639, 'n_tokens_neox': 587, 'n_words': 160}