<commit_before>from django.utils.safestring import mark_safe 
from django.template import RequestContext
from django.conf import settings

from cms.models import Page

from menus.base import NavigationNode
from menus.menu_pool import menu_pool
from menus.base import Modifier

from news_and_events.models import NewsAndEventsPlugin        
from news_and_events.cms_plugins import CMSNewsAndEventsPlugin

from vacancies_and_studentships.models import VacanciesPlugin        
from vacancies_and_studentships.cms_plugins import CMSVacanciesPlugin

MAIN_NEWS_EVENTS_PAGE_LIST_LENGTH = settings.MAIN_NEWS_EVENTS_PAGE_LIST_LENGTH
EXPAND_ALL_MENU_BRANCHES = getattr(settings, "EXPAND_ALL_MENU_BRANCHES", False)

# we're expecting modifiers: contacts, news, news_archive, forthcoming_events, previous_events, vacancies, publications
menu_modifiers = getattr(settings, 'MENU_MODIFIERS', None)
if menu_modifiers:
    menu_tests = menu_modifiers.get("ArkestraPages")
else:
    menu_tests = []<commit_msg>oops, a silly menu bug fixed<commit_after>from django.utils.safestring import mark_safe 
from django.template import RequestContext
from django.conf import settings

from cms.models import Page

from menus.base import NavigationNode
from menus.menu_pool import menu_pool
from menus.base import Modifier

from news_and_events.models import NewsAndEventsPlugin        
from news_and_events.cms_plugins import CMSNewsAndEventsPlugin

from vacancies_and_studentships.models import VacanciesPlugin        
from vacancies_and_studentships.cms_plugins import CMSVacanciesPlugin

MAIN_NEWS_EVENTS_PAGE_LIST_LENGTH = settings.MAIN_NEWS_EVENTS_PAGE_LIST_LENGTH
EXPAND_ALL_MENU_BRANCHES = getattr(settings, "EXPAND_ALL_MENU_BRANCHES", False)



# we're expecting modifiers: contacts, news, news_archive, forthcoming_events, previous_events, vacancies, publications
menu_modifiers = getattr(settings, 'MENU_MODIFIERS', None)
if menu_modifiers:
    menu_tests = menu_modifiers.get("ArkestraPages")
else:
    menu_tests = []
{'fraction_non_alphanumeric': 0.05142286570144783, 'fraction_numerical': 0.0, 'mean_word_length': 7.016, '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': '1653876', 'n_tokens_mistral': 636, 'n_tokens_neox': 603, 'n_words': 145}