<commit_before>from django.views.generic import TemplateView

from admin.base.settings import KEEN_CREDENTIALS
from admin.base.utils import OSFAdmin
from admin.sales_analytics.utils import user_count, multi_product_metrics_yearly, multi_product_metrics_monthly, repeat_action_user_monthly


class DashboardView(OSFAdmin, TemplateView):
    template_name = "sales_analytics/dashboard.html"

    def get_context_data(self, **kwargs):
        kwargs.update(KEEN_CREDENTIALS.copy())
        kwargs.update({'user_count': user_count,
                       'multi_product_metrics_yearly': multi_product_metrics_yearly,
                       'multi_product_metrics_monthly': multi_product_metrics_monthly,
                       'repeat_action_user_monthly': repeat_action_user_monthly,
                       })
        return super(DashboardView, self).get_context_data(**kwargs)
<commit_msg>clean up<commit_after>from django.views.generic import TemplateView

from admin.base.settings import KEEN_CREDENTIALS
from admin.base.utils import OSFAdmin
from admin.sales_analytics.utils import user_count, multi_product_metrics_yearly, multi_product_metrics_monthly, repeat_action_user_monthly


class DashboardView(OSFAdmin, TemplateView):
    template_name = "sales_analytics/dashboard.html"

    def get_context_data(self, **kwargs):
        kwargs.update(KEEN_CREDENTIALS.copy())
        kwargs.update({'user_count': user_count,
                       'multi_product_metrics_yearly': multi_product_metrics_yearly,
                       'multi_product_metrics_monthly': multi_product_metrics_monthly,
                       'repeat_action_user_monthly': repeat_action_user_monthly,
                       })
        return super(DashboardView, self).get_context_data(**kwargs)
{'fraction_non_alphanumeric': 0.07231638418079096, 'fraction_numerical': 0.0, 'mean_word_length': 3.8256130790190737, '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': '1981490', 'n_tokens_mistral': 517, 'n_tokens_neox': 500, 'n_words': 79}