<commit_before>from django.core.urlresolvers import reverse
from django.http import Http404
from django.utils.translation import ugettext_lazy as _
from django_cradmin import crmenu

from devilry.apps.core.models import AssignmentGroup
from devilry.devilry_student.cradminextensions import studentcrinstance
from devilry.devilry_student.cradmin_group import deliveriesapp
from devilry.devilry_student.cradmin_group import overviewapp


class Menu(crmenu.Menu):
    def build_menu(self):
        group = self.request.cradmin_role
        self.add_headeritem(
            label=group.parentnode.parentnode.get_path(),
            url=reverse('devilry_student_period-assignments-INDEX', kwargs={
                'roleid': group.parentnode.parentnode.id
            }),
            icon="angle-up")
        self.add(
            label=_('Overview'), url=self.appindex_url('overview'),
            icon="info-circle",<commit_msg>cradmin_group: Better label for the up menu item.<commit_after>from django.core.urlresolvers import reverse
from django.http import Http404
from django.utils.translation import ugettext_lazy as _
from django_cradmin import crmenu

from devilry.apps.core.models import AssignmentGroup
from devilry.devilry_student.cradminextensions import studentcrinstance
from devilry.devilry_student.cradmin_group import deliveriesapp
from devilry.devilry_student.cradmin_group import overviewapp


class Menu(crmenu.Menu):
    def build_menu(self):
        group = self.request.cradmin_role
        self.add_headeritem(
            label=group.subject.long_name,
            url=reverse('devilry_student_period-assignments-INDEX', kwargs={
                'roleid': group.parentnode.parentnode.id
            }),
            icon="angle-up")
        self.add(
            label=_('Overview'), url=self.appindex_url('overview'),
            icon="info-circle",
{'fraction_non_alphanumeric': 0.08400214018191546, 'fraction_numerical': 0.0032102728731942215, 'mean_word_length': 3.5609756097560976, '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': '1082603', 'n_tokens_mistral': 540, 'n_tokens_neox': 540, 'n_words': 106}