<commit_before>from django.contrib.syndication.views import Feed
from django.contrib.sites.models import Site
from django.shortcuts import redirect
from django.views.generic.dates import DateDetailView

from endless_pagination.views import AjaxListView

from .forms import UserCommentForm, CommentForm
from .models import Post, Comment


class LatestEntriesFeed(Feed):
    title = "%s blog entries" % (Site.objects.get_current())
    description = "The latest blog entries"
    link = "/siteposts/"

    def items(self):
        return Post.objects.order_by('-post_date')[:5]

    def item_title(self, item):
        return item.title

    def item_description(self, item):
        return item.bodytext<commit_msg>Change the out dated endless_paginateion app<commit_after>from django.contrib.syndication.views import Feed
from django.contrib.sites.models import Site
from django.shortcuts import redirect
from django.views.generic.dates import DateDetailView

from el_pagination.views import AjaxListView

from .forms import UserCommentForm, CommentForm
from .models import Post, Comment


class LatestEntriesFeed(Feed):
    title = "%s blog entries" % (Site.objects.get_current())
    description = "The latest blog entries"
    link = "/siteposts/"

    def items(self):
        return Post.objects.order_by('-post_date')[:5]

    def item_title(self, item):
        return item.title

    def item_description(self, item):
        return item.bodytext
{'fraction_non_alphanumeric': 0.08665749656121045, 'fraction_numerical': 0.001375515818431912, 'mean_word_length': 4.159574468085107, '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': '4077264', 'n_tokens_mistral': 412, 'n_tokens_neox': 397, 'n_words': 120}