<commit_before>"""Settings of Zinnia.plugins"""
from django.conf import settings

from zinnia.plugins.menu import EntryMenu
from zinnia.plugins.menu import TagMenu
from zinnia.plugins.menu import AuthorMenu
from zinnia.plugins.menu import CategoryMenu


APP_MENUS = getattr(settings, 'ZINNIA_APP_MENUS', [EntryMenu, CategoryMenu,
                                                   TagMenu, AuthorMenu])
PLUGINS_TEMPLATES = getattr(settings, 'ZINNIA_PLUGINS_TEMPLATES', [])

<commit_msg>adding try except for old version of cms<commit_after>"""Settings of Zinnia.plugins"""
from django.conf import settings

PLUGINS_TEMPLATES = getattr(settings, 'ZINNIA_PLUGINS_TEMPLATES', [])
try:
    from zinnia.plugins.menu import EntryMenu
    from zinnia.plugins.menu import TagMenu
    from zinnia.plugins.menu import AuthorMenu
    from zinnia.plugins.menu import CategoryMenu

    APP_MENUS = getattr(settings, 'ZINNIA_APP_MENUS', [EntryMenu, CategoryMenu,
                                                       TagMenu, AuthorMenu])
except ImportError:
    APP_MENUS = []



{'fraction_non_alphanumeric': 0.07966260543580131, 'fraction_numerical': 0.0, 'mean_word_length': 3.377049180327869, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7559035', 'n_tokens_mistral': 326, 'n_tokens_neox': 311, 'n_words': 77}