<commit_before><% if spree_navigation_data.any? %>
  <div class="position-fixed text-uppercase d-xl-none mobile-navigation" role="navigation" aria-label="<%= Spree.t('nav_bar.mobile') %>">
    <div class="d-flex align-items-center header-spree" data-hook>
      <div class="container-fluid header-spree-fluid">
        <div class="d-flex align-items-center justify-content-between">
          <button class="pl-0" id="mobile-navigation-back-button" aria-label="<%= Spree.t('nav_bar.go_to_previous_menu') %>">
            <%= icon(name: 'arrow-right',
                    classes: 'd-inline spree-icon-arrow spree-icon-arrow-left',
                    width: 26,
                    height: 26) %>
          </button>
          <figure class="logo header-spree-fluid-logo" data-hook>
            <%= logo %>
          </figure>
          <div id="top-nav-bar-mobile" class="header-spree-fluid-secondary-navigation" data-hook>
            <button id="mobile-navigation-close-button" aria-label="<%= Spree.t('nav_bar.close_menu') %>">
              <%= icon(name: 'close',
                      classes: 'd-inline',
                      width: 26,
                      height: 26) %>
            </button>
          </div>
        </div>
      </div>
    </div>

    <ul class="list-unstyled position-relative h-100 mobile-navigation-list">
      <% spree_navigation_data.each do |root| %>
        <li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">
          <%= link_to root[:title], root[:url], class: 'w-75' %>

          <a class="w-25 text-right mobile-navigation-category-link" data-category="<%= root[:title].parameterize %>" href="#" aria-label="<%= Spree.t('go_to_category')%>">
            <%= icon(name: 'arrow-right',
                    classes: 'd-inline spree-icon-arrow spree-icon-arrow-right',
                    width: 14,
                    height: 27) %>
          </a><commit_msg>Lower complexity of mobile menu header.<commit_after><% if spree_navigation_data.any? %>
  <div class="position-fixed text-uppercase d-xl-none mobile-navigation" role="navigation" aria-label="<%= Spree.t('nav_bar.mobile') %>">
    <div class="d-flex align-items-center justify-content-between header-spree" data-hook>
      <button class="ml-2" id="mobile-navigation-back-button" aria-label="<%= Spree.t('nav_bar.go_to_previous_menu') %>">
        <%= icon(name: 'arrow-right',
                classes: 'd-inline spree-icon-arrow spree-icon-arrow-left',
                width: 26,
                height: 26) %>
      </button>
      <figure class="logo header-spree-fluid-logo" data-hook>
        <%= logo %>
      </figure>
      <div id="top-nav-bar-mobile" class="mr-3 header-spree-fluid-secondary-navigation" data-hook>
        <button id="mobile-navigation-close-button" aria-label="<%= Spree.t('nav_bar.close_menu') %>">
          <%= icon(name: 'close',
                  classes: 'd-inline',
                  width: 26,
                  height: 26) %>
        </button>
      </div>
    </div>

    <ul class="list-unstyled position-relative h-100 mobile-navigation-list">
      <% spree_navigation_data.each do |root| %>
        <li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">
          <%= link_to root[:title], root[:url], class: 'w-75' %>

          <a class="w-25 text-right mobile-navigation-category-link" data-category="<%= root[:title].parameterize %>" href="#" aria-label="<%= Spree.t('go_to_category')%>">
            <%= icon(name: 'arrow-right',
                    classes: 'd-inline spree-icon-arrow spree-icon-arrow-right',
                    width: 14,
                    height: 27) %>
          </a>
{'fraction_non_alphanumeric': 0.17007534983853606, 'fraction_numerical': 0.011033369214208827, 'mean_word_length': 2.2576687116564416, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '6718208', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1122, 'n_words': 205}