<commit_before><ul class="sidebar-menu" id="common-menu">
    <li class="header">{{ \PeskyCMF\Config\CmfConfig::transCustom('.main_menu.header') }}</li>
    @foreach (\PeskyCMF\Config\CmfConfig::getInstance()->menu() as $info)
        @if (!empty($info['submenu']))
            <li class="treeview">
                <a href="@if (empty($info['url']))javascript: void(0)@else{{ $info['url'] }}@endif">
                    @if (!empty($info['icon']))<i class="{{ $info['icon'] }}"></i>@endif
                    <span>{{ trans($info['label']) }}</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    @foreach ($info['submenu'] as $subItem)
                    <li>
                        <a href="{{ $subItem['url'] }}">
                            @if (!empty($subItem['icon']))<i class="{{ $subItem['icon'] }}"></i>@endif
                            <span>{{ trans($subItem['label']) }}</span>
                        </a>
                    </li>
                    @endforeach
                </ul>
            </li>
        @else
            <li>
                <a href="@if (empty($info['url']))javascript: void(0)@else{{ $info['url'] }}@endif">
                    @if (!empty($info['icon']))<i class="{{ $info['icon'] }}"></i>@endif
                    <span>{{ trans($info['label']) }}</span>
                </a>
            </li>
        @endif
    @endforeach
</ul><commit_msg>admin sidebar menu view updated to insert 'id', 'class' and 'addition' to menu items if defined<commit_after><ul class="sidebar-menu" id="common-menu">
    <li class="header">{{ \PeskyCMF\Config\CmfConfig::transCustom('.main_menu.header') }}</li>
    @foreach (\PeskyCMF\Config\CmfConfig::getInstance()->menu() as $info)
        @if (!empty($info['submenu']))
            <li class="treeview">
                <a href="@if (empty($info['url']))javascript: void(0)@else{{ $info['url'] }}@endif"
                @if (!empty($info['id'])) id="{{ $info['id'] }}" @endif
                @if (!empty($info['class'])) class="{{ $info['class'] }}" @endif>
                    @if (!empty($info['icon']))<i class="{{ $info['icon'] }}"></i>@endif
                    <span>{{ trans($info['label']) }}</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    @foreach ($info['submenu'] as $subItem)
                    <li>
                        <a href="{{ $subItem['url'] }}"
                        @if (!empty($subItem['id'])) id="{{ $subItem['id'] }}" @endif
                        @if (!empty($subItem['class'])) class="{{ $subItem['class'] }}" @endif>
                            @if (!empty($subItem['icon']))<i class="{{ $subItem['icon'] }}"></i>@endif
                            <span>{{ trans($subItem['label']) }}</span>{{ array_get($subItem, 'addition', '') }}
                        </a>
                    </li>
                    @endforeach
                </ul>
            </li>
        @else
            <li>
                <a href="@if (empty($info['url']))javascript: void(0)@else{{ $info['url'] }}@endif"
                @if (!empty($info['id'])) id="{{ $info['id'] }}" @endif
                @if (!empty($info['class'])) class="{{ $info['class'] }}" @endif>
                    @if (!empty($info['icon']))<i class="{{ $info['icon'] }}"></i>@endif
                    <span>{{ trans($info['label']) }}</span>{{ array_get($info, 'addition', '') }}
                </a>
            </li>
        @endif
    @endforeach
</ul>
{'fraction_non_alphanumeric': 0.23155286343612336, 'fraction_numerical': 0.0011013215859030838, 'mean_word_length': 1.7564491654021244, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 69, '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': '817075', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1020, 'n_words': 204}