<commit_before>from django.utils.translation import ugettext_lazy as _
#from django.core.urlresolvers import reverse
from grappelli.dashboard import modules, Dashboard


class OpenBudgetDashboard(Dashboard):
    """Custom admin dashboard for Open Budget"""

    def init_with_context(self, context):

        # append an app list module for "Applications"
        self.children.append(modules.AppList(
            _('User management'),
            collapsible=True,
            column=1,
            css_classes=('collapse closed',),
            models=('omuni.accounts.*'),
        ))

        self.children.append(modules.AppList(
            _('Government entities'),
            collapsible=True,
            column=1,
            css_classes=('collapse closed',),
            models=('omuni.govts.*',),
        ))

        self.children.append(modules.AppList(
            _('Budget records'),
            collapsible=True,
            column=1,
            css_classes=('collapse closed',),
            models=('omuni.budgets.*',),<commit_msg>Bug in tuple<commit_after>from django.utils.translation import ugettext_lazy as _
#from django.core.urlresolvers import reverse
from grappelli.dashboard import modules, Dashboard


class OpenBudgetDashboard(Dashboard):
    """Custom admin dashboard for Open Budget"""

    def init_with_context(self, context):

        # append an app list module for "Applications"
        self.children.append(modules.AppList(
            _('User management'),
            collapsible=True,
            column=1,
            css_classes=('collapse closed',),
            models=('omuni.accounts.*',),
        ))

        self.children.append(modules.AppList(
            _('Government entities'),
            collapsible=True,
            column=1,
            css_classes=('collapse closed',),
            models=('omuni.govts.*',),
        ))

        self.children.append(modules.AppList(
            _('Budget records'),
            collapsible=True,
            column=1,
            css_classes=('collapse closed',),
            models=('omuni.budgets.*',),
{'fraction_non_alphanumeric': 0.11677788369876073, 'fraction_numerical': 0.002859866539561487, 'mean_word_length': 2.2542635658914727, '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': '5787604', 'n_tokens_mistral': 579, 'n_tokens_neox': 557, 'n_words': 113}