<commit_before>from __future__ import unicode_literals
from urllib import urlencode
import warnings

from django.http import HttpResponseRedirect
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
from django.utils.translation import ugettext_lazy as _

from djam.riffs.base import Riff
from djam.riffs.models import ModelRiff


class AdminRiff(Riff):
    display_name = _('Djam Admin')
    slug = 'admin'
    namespace = 'djam'
    # Disable default redirect view.
    default_redirect_view = None
    _autodiscovered = False

    def get_default_url(self):
        return self['dashboard'].get_default_url()

    def has_permission(self, request):<commit_msg>Changed admin riff default display_name to "Admin".<commit_after>from __future__ import unicode_literals
from urllib import urlencode
import warnings

from django.http import HttpResponseRedirect
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
from django.utils.translation import ugettext_lazy as _

from djam.riffs.base import Riff
from djam.riffs.models import ModelRiff


class AdminRiff(Riff):
    display_name = _('Admin')
    slug = 'admin'
    namespace = 'djam'
    # Disable default redirect view.
    default_redirect_view = None
    _autodiscovered = False

    def get_default_url(self):
        return self['dashboard'].get_default_url()

    def has_permission(self, request):
{'fraction_non_alphanumeric': 0.06449422946367957, 'fraction_numerical': 0.0, 'mean_word_length': 4.780392156862745, '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': '5271952', 'n_tokens_mistral': 441, 'n_tokens_neox': 427, 'n_words': 122}