<commit_before>from django.views.generic import TemplateView
from django_phpbb_extender.models import PhpbbTopics, PhpbbPosts
from django_phpbb_extender.forum_settings import FORUM_NAME
from django_phpbb_extender.utils import phpbb_to_html

class Topics(TemplateView):
    template_name = "topics.html"
    
    def get_context_data(self, **kwargs):
        context = super(Mobile, self).get_context_data(**kwargs)
        context["title"] = FORUM_NAME
        topics = PhpbbTopics.objects.order_by('-topic_time')[:10]
        latest = []
        for topic in topics:
            post = PhpbbPosts.objects.get(post_id=topic.topic_first_post_id)
            latest.append((
                topic,
                phpbb_to_html(post.post_text),
            ))
        context["latest"] = latest
        return context<commit_msg>Wrong variable name fixed<commit_after>from django.views.generic import TemplateView
from django_phpbb_extender.models import PhpbbTopics, PhpbbPosts
from django_phpbb_extender.forum_settings import FORUM_NAME
from django_phpbb_extender.utils import phpbb_to_html

class Topics(TemplateView):
    template_name = "topics.html"
    
    def get_context_data(self, **kwargs):
        context = super(Topics, self).get_context_data(**kwargs)
        context["title"] = FORUM_NAME
        topics = PhpbbTopics.objects.order_by('-topic_time')[:10]
        latest = []
        for topic in topics:
            post = PhpbbPosts.objects.get(post_id=topic.topic_first_post_id)
            latest.append((
                topic,
                phpbb_to_html(post.post_text),
            ))
        context["latest"] = latest
        return context
{'fraction_non_alphanumeric': 0.08763505402160865, 'fraction_numerical': 0.0024009603841536613, 'mean_word_length': 3.0072115384615383, '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': '2172914', 'n_tokens_mistral': 512, 'n_tokens_neox': 495, 'n_words': 92}