<commit_before># -*- coding: utf-8 -*-
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)

from django import template
from django.core.urlresolvers import reverse, reverse_lazy
from geoq.core.menu import menu

register = template.Library()

def get_menu(request=None, **kwargs):

    request_path = getattr(request, 'path', None)
    menu_dict = kwargs
    menu_dict['menu_items'] = menu(request_path=request_path)
    menu_dict['request'] = request

    return menu_dict

register.inclusion_tag('core/menu.html')(get_menu)<commit_msg>Flake8 clean up on core/templatetags/menu.py.<commit_after># -*- coding: utf-8 -*-
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)

from django import template
from geoq.core.menu import menu

register = template.Library()

def get_menu(request=None, **kwargs):

    request_path = getattr(request, 'path', None)
    menu_dict = kwargs
    menu_dict['menu_items'] = menu(request_path=request_path)
    menu_dict['request'] = request

    return menu_dict

register.inclusion_tag('core/menu.html')(get_menu)
{'fraction_non_alphanumeric': 0.1070110701107011, 'fraction_numerical': 0.03468634686346864, 'mean_word_length': 4.603305785123967, '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': '4203099', 'n_tokens_mistral': 468, 'n_tokens_neox': 424, 'n_words': 126}