<commit_before><!-- Mobile friendly version of the header -->

<nav class="navbar navbar-fixed-top">
  <div class="container-fluid" >
    <!-- Mobile ready hamburger menu -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed pull-right" data-toggle="collapse"
              data-target="#fixed-nav" aria-expanded="false" aria-controls="fixed-nav">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <% if user_signed_in? && current_user.org.present? %>
        <p><strong><%= current_user.org.name %></strong></p>
      <% else %>
        <%= link_to(image_tag("DMPTool_logo_blue_shades_v1b3b.svg",
                              alt: "#{Rails.configuration.branding[:application][:name]} #{_('logo')}",
                              class: "app-logo",
                              title: "#{Rails.configuration.branding[:application][:name]} logo"),
                    root_path) %>
      <% end %>
    </div>
    <div class="clearfix"></div>

    <div class="collapse navbar-collapse" id="fixed-nav">
      <!-- Learn/explore menu -->
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                 id="learn-menu-button" aria-haspopup="true" aria-expanded="false">
            <%= _('Learn') %>
            <i class="fa fa-sort-desc" aria-hidden="true">&nbsp;</i>
          </a>

          <ul class="dropdown-menu" aria-labelledby="learn-menu-button">
            <li>
              <div class="learn-menu">
                <div>
                  <ul>
                    <li><%= link_to _('Funder Requirements'), public_templates_path %></li>
                    <li><%= link_to _('Public Plans'), public_plans_path %></li>
                    <li><%= link_to _('Participating Institutions'), public_orgs_path %></li>
                    <li><%= link_to _('FAQ'), faq_path %></li>
                  </ul>
                </div>
                <div>
                  <ul>
                    <li><%= _('For Researchers') %>
                      <ul>
                        <li><%= link_to _('Quick Start Guide'), help_path %></li>
                        <li><%= link_to _('Data Management General Guidance'), general_guidance_path %></li>
                      </ul>
                    </li>
                    <li>
                      <% lbl = _('For Administrators') %>
                      <%= link_to sanitize("#{lbl} <em class=\"fa fa-external-link\">&nbsp;</em>"),
                                 'https://github.com/CDLUC3/dmptool/wiki/Help-for-Administrators' %>
                      <ul>
                        <li><%= link_to _('Promote the DMPTool'), promote_path %></li>
                      </ul>
                    </li>
                  </ul>
                </div>
              </div>
            </li>
          </ul>
        </li>
      </ul>

      <% if user_signed_in? %>
        <%= render partial: 'layouts/dmptool/app_menu_links' %>
      <% end %>

      <% if user_signed_in? && current_user.org.present? && !current_user.org.is_other? %>
        <ul class="nav navbar-nav">
          <li class="dropdown">

            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
               id="org-menu-button" aria-haspopup="true" aria-expanded="false">
              <%= current_user.org.abbreviation %> links
              <i class="fa fa-sort-desc" aria-hidden="true">&nbsp;</i>
            </a>
            <ul class="dropdown-menu" aria-labelledby="org-menu-button">
              <%= render partial: 'layouts/dmptool/org_links' %>
            </ul>
          </li>
        </ul>
      <% end %>

      <!-- Sign in/out menu -->
      <% unless isActivePage(user_shibboleth_omniauth_callback_path) || isActivePage(user_orcid_omniauth_callback_path) %>
        <!-- Show this menu ONLY if the user is NOT registering their account after an omniauth login -->
        <ul class="nav navbar-nav">
          <li class="dropdown">

            <% if user_signed_in? %>
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                 id="profile-menu-button" aria-haspopup="true" aria-expanded="false">
                <%= current_user.name(false) %>
                <i class="fa fa-sort-desc" aria-hidden="true">&nbsp;</i>
              </a>
              <ul class="dropdown-menu" aria-labelledby="profile-menu-button">
                <li><%= link_to _('Edit profile'), edit_user_registration_path %></li>
                <li><%= link_to _('Sign out'), destroy_user_session_path, method: :delete %></li>
              </ul>
<commit_msg>updated logic for mobile ready fixed menu<commit_after><!-- Mobile friendly version of the header -->

<nav class="navbar navbar-fixed-top">
  <div class="container-fluid" >
    <!-- Mobile ready hamburger menu -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed pull-right" data-toggle="collapse"
              data-target="#fixed-nav" aria-expanded="false" aria-controls="fixed-nav">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <% if user_signed_in? && current_user.org.present? %>
        <p><strong><%= current_user.org.name %></strong></p>
      <% else %>
        <%= link_to(image_tag("DMPTool_logo_blue_shades_v1b3b.svg",
                              alt: "#{Rails.configuration.branding[:application][:name]} #{_('logo')}",
                              class: "app-logo",
                              title: "#{Rails.configuration.branding[:application][:name]} logo"),
                    root_path) %>
      <% end %>
    </div>
    <div class="clearfix"></div>

    <div class="collapse navbar-collapse" id="fixed-nav">
      <!-- Learn/explore menu -->
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                 id="learn-menu-button" aria-haspopup="true" aria-expanded="false">
            <%= _('Learn') %>
            <i class="fa fa-sort-desc" aria-hidden="true">&nbsp;</i>
          </a>

          <ul class="dropdown-menu" aria-labelledby="learn-menu-button">
            <li>
              <div class="learn-menu">
                <div>
                  <ul>
                    <li><%= link_to _('Funder Requirements'), public_templates_path %></li>
                    <li><%= link_to _('Public Plans'), public_plans_path %></li>
                    <li><%= link_to _('Participating Institutions'), public_orgs_path %></li>
                    <li><%= link_to _('FAQ'), faq_path %></li>
                  </ul>
                </div>
                <div>
                  <ul>
                    <li><%= _('For Researchers') %>
                      <ul>
                        <li><%= link_to _('Quick Start Guide'), help_path %></li>
                        <li><%= link_to _('Data Management General Guidance'), general_guidance_path %></li>
                      </ul>
                    </li>
                    <li>
                      <% lbl = _('For Administrators') %>
                      <%= link_to sanitize("#{lbl} <em class=\"fa fa-external-link\">&nbsp;</em>"),
                                 'https://github.com/CDLUC3/dmptool/wiki/Help-for-Administrators' %>
                      <ul>
                        <li><%= link_to _('Promote the DMPTool'), promote_path %></li>
                      </ul>
                    </li>
                  </ul>
                </div>
              </div>
            </li>
          </ul>
        </li>
      </ul>

      <% if user_signed_in? %>
        <%= render partial: 'layouts/dmptool/app_menu_links' %>
      <% end %>

      <% if user_signed_in? && current_user.org.present? && !current_user.org.is_other? %>
        <ul class="nav navbar-nav">
          <li class="dropdown">
            <% if current_user.org.links.present? %>
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                 id="org-menu-button" aria-haspopup="true" aria-expanded="false">
                <%= current_user.org.abbreviation %>
                <i class="fa fa-sort-desc" aria-hidden="true">&nbsp;</i>
              </a>
              <ul class="dropdown-menu" aria-labelledby="org-menu-button">
                <%= render partial: 'layouts/dmptool/org_links' %>
              </ul>
            <% else %>
              <%= current_user.org.abbreviation %>
            <% end %>
          </li>
        </ul>
      <% end %>

      <!-- Sign in/out menu -->
      <% unless isActivePage(user_shibboleth_omniauth_callback_path) || isActivePage(user_orcid_omniauth_callback_path) %>
        <!-- Show this menu ONLY if the user is NOT registering their account after an omniauth login -->
        <ul class="nav navbar-nav">
          <li class="dropdown">

            <% if user_signed_in? %>
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                 id="profile-menu-button" aria-haspopup="true" aria-expanded="false">
                <%= current_user.name(false) %>
                <i class="fa fa-sort-desc" aria-hidden="true">&nbsp;</i>
              </a>
              <ul class="dropdown-menu" aria-labelledby="profile-menu-button">
                <li><%= link_to _('Edit profile'), edit_user_registration_path %></li>
                <li><%= link_to _('Sign out'), destroy_user_session_path, method: :delete %></li>
              </ul>

{'fraction_non_alphanumeric': 0.16727605118829983, 'fraction_numerical': 0.0006093845216331506, 'mean_word_length': 1.7164137931034482, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 251, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6435092', 'n_tokens_mistral': 2996, 'n_tokens_neox': 2790, 'n_words': 544}