<commit_before># import json

# from django.core.serializers.json import DjangoJSONEncoder
# from django.http import HttpResponse

# from django.views.generic.detail import View, BaseDetailView
# from django.views.generic.list import ListView

from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.shortcuts import render
from django.utils.decorators import method_decorator
from django.views.generic.detail import View

from djangomaster.sites import mastersite
from djangomaster.conf import settings as mastersettings


class MasterView(View):
    name = 'base'
    label = 'Django Master'
    title = 'Django Master'
    template_name = 'djangomaster/base.html'
    widgets = ()

    def get_title(self):
        return self.title

    def get_widgets(self):
        return self.widgets

    def get_menu(self):
        return mastersite.get_menu()<commit_msg>cleaning up<commit_after>from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.shortcuts import render
from django.utils.decorators import method_decorator
from django.views.generic.detail import View

from djangomaster.sites import mastersite
from djangomaster.conf import settings as mastersettings


class MasterView(View):
    name = 'base'
    label = 'Django Master'
    title = 'Django Master'
    template_name = 'djangomaster/base.html'
    widgets = ()

    def get_title(self):
        return self.title

    def get_widgets(self):
        return self.widgets

    def get_menu(self):
        return mastersite.get_menu()
{'fraction_non_alphanumeric': 0.07112201103617413, 'fraction_numerical': 0.0, 'mean_word_length': 4.115987460815047, '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': '6934836', 'n_tokens_mistral': 476, 'n_tokens_neox': 452, 'n_words': 130}