<commit_before>from django.contrib.syndication.views import Feed
from codespeed.models import Report
from django.conf import settings


class LatestEntries(Feed):
    title = settings.WEBSITE_NAME
    link = "/changes/"
    description = "Last benchmark runs"

    def items(self):
        return Report.objects.order_by('-revision__date')[:10]<commit_msg>Feed: only show reports in branch trunk<commit_after>from django.contrib.syndication.views import Feed
from codespeed.models import Report
from django.conf import settings


class LatestEntries(Feed):
    title = settings.WEBSITE_NAME
    link = "/changes/"
    description = "Last benchmark runs"

    def items(self):
        return Report.objects.filter(
            revision__branch__name=settings.DEF_BRANCH
        ).order_by('-revision__date')[:10]
{'fraction_non_alphanumeric': 0.09124537607891492, 'fraction_numerical': 0.004932182490752158, 'mean_word_length': 3.98159509202454, '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': '2083986', 'n_tokens_mistral': 233, 'n_tokens_neox': 225, 'n_words': 59}