<commit_before>import agagd_core.models as agagd_models
from agagd_core.helpers.pagination import agagd_paginator_helper
from django.http import Http404
from django.template.response import TemplateResponse
from django.views.generic.detail import DetailView


class TournamentDetailPageView(DetailView):
    template_name = "beta.tournament_detail.html"

    def get(self, request, *args, **kwargs):
        code = self.kwargs.get("code")
        try:
            tournament = agagd_models.Tournament.objects.get(pk=code)
        except agagd_models.Tournament.DoesNotExist:
            raise Http404(f"Tournament {code} does not exist.")

        tournament_information = {
            "tournament_code": tournament.pk,<commit_msg>Moved Tournament Detail Page Out of Beta.<commit_after>import agagd_core.models as agagd_models
from agagd_core.helpers.pagination import agagd_paginator_helper
from django.http import Http404
from django.template.response import TemplateResponse
from django.views.generic.detail import DetailView


class TournamentDetailPageView(DetailView):
    template_name = "tournament_detail.html"

    def get(self, request, *args, **kwargs):
        code = self.kwargs.get("code")
        try:
            tournament = agagd_models.Tournament.objects.get(pk=code)
        except agagd_models.Tournament.DoesNotExist:
            raise Http404(f"Tournament {code} does not exist.")

        tournament_information = {
            "tournament_code": tournament.pk,
{'fraction_non_alphanumeric': 0.082044384667115, 'fraction_numerical': 0.008069939475453935, 'mean_word_length': 3.878688524590164, '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': '5206055', 'n_tokens_mistral': 447, 'n_tokens_neox': 424, 'n_words': 95}