<commit_before>"""Content types used by the news application."""


from django.conf import settings

from cms.apps.pages import content


DefaultContent = content.get_default_content()


class NewsFeed(DefaultContent):
    
    """An archive of published news articles."""
    
    icon = settings.CMS_MEDIA_URL + "img/content-types/news-feed.png"
    
    articles_per_page = content.PositiveIntegerField(default=10)
    
    urlconf = "cms.apps.news.urls"
    
    def get_fieldsets(self):
        """Returns the fieldsets used to lay out the admin form."""
        return super(NewsFeed, self).get_fieldsets() + (("Feed details", {"fields": ("articles_per_page",),}),)
    
    <commit_msg>Reordered fields in news app content.<commit_after>"""Content types used by the news application."""


from django.conf import settings

from cms.apps.pages import content


DefaultContent = content.get_default_content()


class NewsFeed(DefaultContent):
    
    """An archive of published news articles."""
    
    icon = settings.CMS_MEDIA_URL + "img/content-types/news-feed.png"
    
    urlconf = "cms.apps.news.urls"
    
    articles_per_page = content.PositiveIntegerField(default=10)
    
    def get_fieldsets(self):
        """Returns the fieldsets used to lay out the admin form."""
        return super(NewsFeed, self).get_fieldsets() + (("Feed details", {"fields": ("articles_per_page",),}),)
    
    
{'fraction_non_alphanumeric': 0.1198581560283688, 'fraction_numerical': 0.0028368794326241137, 'mean_word_length': 3.536977491961415, 'pattern_counts': {'":': 2, '<': 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': '6860307', 'n_tokens_mistral': 419, 'n_tokens_neox': 406, 'n_words': 107}