<commit_before><nav class="navbar navbar-inverse">
  <div class="container">
    <div class="navbar-header">
      <%= link_to root_path do %>cypress<% end %>
      <button type="button" class="navbar-toggle navbar-right" data-toggle="collapse" data-target="#cypressNavbar" aria-label="navigation menu" role="button" aria-controls="cypressNavbar" aria-expanded="false">
        <i class="fa fa-bars fa-2x" aria-hidden="true"></i>
        <span class="sr-only">Expand navigation menu</span>
      </button>
    </div>
    <div class="collapse navbar-collapse" id="cypressNavbar">
      <ul class="nav navbar-nav navbar-right">
        <% if user_signed_in? %>

          <% curr_page = if current_page?(edit_user_registration_path)
                           :account
                         elsif (controller.controller_name == 'records' && params[:bundle_id]) || current_page?(:records)
                           :master_patient_list
                         elsif current_page?(admin_path)
                           :admin
                         else
                           :dashboard
                         end
           %>

          <li <% if curr_page == :dashboard %>class="active"<% end %>>
            <%= link_to root_path, class: 'navbar-item'   do %>
            <i class="fa fa-fw fa-th-list" aria-hidden="true"></i>
            Dashboard
            <% end %>
          </li>
          <li <% if curr_page == :master_patient_list %>class="active"<% end %>>
            <%= link_to records_path, class: 'navbar-item'   do %>
            <i class="fa fa-fw fa-users" aria-hidden="true"></i>
            Master Patient List
            <% end %>
          </li>
          <li <% if curr_page == :account %>class="active"<% end %>>
            <%= link_to edit_user_registration_path, class: 'navbar-item'   do %>
            <i class="fa fa-fw fa-user" aria-hidden="true"></i>
            Account<commit_msg>When drilling down into an individual patient from the MPL, the header navigation switched from Master Patient List to Dashboard (#445)<commit_after><nav class="navbar navbar-inverse">
  <div class="container">
    <div class="navbar-header">
      <%= link_to root_path do %>cypress<% end %>
      <button type="button" class="navbar-toggle navbar-right" data-toggle="collapse" data-target="#cypressNavbar" aria-label="navigation menu" role="button" aria-controls="cypressNavbar" aria-expanded="false">
        <i class="fa fa-bars fa-2x" aria-hidden="true"></i>
        <span class="sr-only">Expand navigation menu</span>
      </button>
    </div>
    <div class="collapse navbar-collapse" id="cypressNavbar">
      <ul class="nav navbar-nav navbar-right">
        <% if user_signed_in? %>
          <% curr_page = if current_page?(edit_user_registration_path)
                           :account
                         elsif (controller.controller_name == 'records' && (params[:bundle_id] || params[:task_id].nil?)) ||
                               (current_page?(:records) && params[:task_id].nil?)
                           :master_patient_list
                         elsif current_page?(admin_path)
                           :admin
                         else
                           :dashboard
                         end
           %>

          <li <% if curr_page == :dashboard %>class="active"<% end %>>
            <%= link_to root_path, class: 'navbar-item'   do %>
            <i class="fa fa-fw fa-th-list" aria-hidden="true"></i>
            Dashboard
            <% end %>
          </li>
          <li <% if curr_page == :master_patient_list %>class="active"<% end %>>
            <%= link_to records_path, class: 'navbar-item'   do %>
            <i class="fa fa-fw fa-users" aria-hidden="true"></i>
            Master Patient List
            <% end %>
          </li>
          <li <% if curr_page == :account %>class="active"<% end %>>
            <%= link_to edit_user_registration_path, class: 'navbar-item'   do %>
            <i class="fa fa-fw fa-user" aria-hidden="true"></i>
            Account
{'fraction_non_alphanumeric': 0.14355948869223206, 'fraction_numerical': 0.0012291052114060963, 'mean_word_length': 1.9336697909156453, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '5613641', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1148, 'n_words': 255}