<commit_before><div class="dashboard row">
  <%= render partial: 'layouts/dashboard_logo_row' %>
  <div class="dashboard-nav row-fluid" id="quick_dashboard">
    <ul class="nav">

      <!-- My Dashboard -->
      <li <%= "class=current" if current_page?(dashboard_path) %>><%= link_to(content_tag(:span, 'My Dashboard'), dashboard_path) %></li>

      <!-- My DMPs -->
      <li <%= "class=current" if current_page?(plans_path) %>><%= link_to(content_tag(:span, 'My DMPs'), plans_path) %></li>

      <!-- Create New DMP -->
      <% if current_page_includes?(edit_plan_path(@plan), details_plan_path(@plan), preview_plan_path(@plan),
                    plan_template_information_path, copy_existing_plans_template_path, select_dmp_template_path) %>
        <%= render partial: 'layouts/dashboard_create_dmp_submenu' %>
      <% else %>
        <li <%= "class=current" if current_page_includes?(plan_template_information_path, copy_existing_plans_template_path, select_dmp_template_path) %>>
          <%= link_to(content_tag(:span, 'Create New DMP'), plan_template_information_path) %>
        </li>
      <% end %>

      <!-- Review DMPs -->
      <% if user_role_in?(:institutional_reviewer, :dmp_admin, :institutional_admin) %>
        <li <%= "class=current" if current_page?(review_dmps_path) %>><%= link_to(content_tag(:span, 'Review DMPs'), review_dmps_path) %></li>
      <% end %>

      <!-- DMP Templates -->
      <% if user_role_in?(:dmp_admin, :institutional_admin, :template_editor) %>
        <% if current_page_includes?({controller: 'requirements_templates', action: 'new'},
                                     edit_requirements_template_path(@requirements_template),
                                     requirements_template_requirements_path(@requirements_template)) %>
          <%= render partial: 'layouts/dashboard_requirements_template_submenu' %>
        <% else %>
          <li <%= 'class=current' if current_page?(requirements_templates_path) %>>
            <%= link_to(content_tag(:span, 'DMP Templates'), requirements_templates_path) %>
          </li>
        <% end %>
      <% end %>

      <!-- Customizations -->
      <% if user_role_in?(:resource_editor, :dmp_admin, :institutional_admin) %>
        <% if current_page_includes?(edit_resource_context_path(@resource_context),
                                     new_resource_context_path,
                                     customization_requirement_path(@resource_context)) ||
            ( params[:controller] == 'customizations' && params[:requirement_id] &&
                current_page?(customization_requirement_path(@resource_context, requirement_id: params[:requirement_id]))) %>
          <%= render partial: 'layouts/dashboard_customizations_submenu' %>
        <% else %>
          <li <%= 'class=current' if current_page_includes?(resource_contexts_path, dmp_for_customization_path) %> >
            <%= link_to(content_tag(:span, 'Customizations'), resource_contexts_path) %>
          </li>
        <% end %>
      <% end %>

      <!-- Institution Profile -->
      <% if user_role_in?(:institutional_admin, :dmp_admin) %>
        <li <%= 'class=current' if current_page_includes?(institutions_path, new_institution_path) %> >
          <%= link_to(content_tag(:span, 'Institution Profile'), institutions_path) %>
        </li>
      <% end %>

      <!-- My Profile -->
      <li <%= 'class=current' if current_page?(edit_user_path(current_user)) %>>
        <%= link_to(content_tag(:span, 'My Profile'), edit_user_path(current_user)) %>
      </li>

      <!-- DMP Administration -->
      <% if user_role_in?(:dmp_admin) %>
        <li <%= 'class=current' if current_page?(users_url) %>>
          <%= link_to(content_tag(:span, 'DMP Administration'), users_url) %>
        </li>
      <% end %>

    </ul>
  </div>
</div><commit_msg>hide Review DMP tab for institutional admins<commit_after><div class="dashboard row">
  <%= render partial: 'layouts/dashboard_logo_row' %>
  <div class="dashboard-nav row-fluid" id="quick_dashboard">
    <ul class="nav">

      <!-- My Dashboard -->
      <li <%= "class=current" if current_page?(dashboard_path) %>><%= link_to(content_tag(:span, 'My Dashboard'), dashboard_path) %></li>

      <!-- My DMPs -->
      <li <%= "class=current" if current_page?(plans_path) %>><%= link_to(content_tag(:span, 'My DMPs'), plans_path) %></li>

      <!-- Create New DMP -->
      <% if current_page_includes?(edit_plan_path(@plan), details_plan_path(@plan), preview_plan_path(@plan),
                    plan_template_information_path, copy_existing_plans_template_path, select_dmp_template_path) %>
        <%= render partial: 'layouts/dashboard_create_dmp_submenu' %>
      <% else %>
        <li <%= "class=current" if current_page_includes?(plan_template_information_path, copy_existing_plans_template_path, select_dmp_template_path) %>>
          <%= link_to(content_tag(:span, 'Create New DMP'), plan_template_information_path) %>
        </li>
      <% end %>

      <!-- Review DMPs -->
      <% if user_role_in?(:institutional_reviewer, :dmp_admin) %>
        <li <%= "class=current" if current_page?(review_dmps_path) %>><%= link_to(content_tag(:span, 'Review DMPs'), review_dmps_path) %></li>
      <% end %>

      <!-- DMP Templates -->
      <% if user_role_in?(:dmp_admin, :institutional_admin, :template_editor) %>
        <% if current_page_includes?({controller: 'requirements_templates', action: 'new'},
                                     edit_requirements_template_path(@requirements_template),
                                     requirements_template_requirements_path(@requirements_template)) %>
          <%= render partial: 'layouts/dashboard_requirements_template_submenu' %>
        <% else %>
          <li <%= 'class=current' if current_page?(requirements_templates_path) %>>
            <%= link_to(content_tag(:span, 'DMP Templates'), requirements_templates_path) %>
          </li>
        <% end %>
      <% end %>

      <!-- Customizations -->
      <% if user_role_in?(:resource_editor, :dmp_admin, :institutional_admin) %>
        <% if current_page_includes?(edit_resource_context_path(@resource_context),
                                     new_resource_context_path,
                                     customization_requirement_path(@resource_context)) ||
            ( params[:controller] == 'customizations' && params[:requirement_id] &&
                current_page?(customization_requirement_path(@resource_context, requirement_id: params[:requirement_id]))) %>
          <%= render partial: 'layouts/dashboard_customizations_submenu' %>
        <% else %>
          <li <%= 'class=current' if current_page_includes?(resource_contexts_path, dmp_for_customization_path) %> >
            <%= link_to(content_tag(:span, 'Customizations'), resource_contexts_path) %>
          </li>
        <% end %>
      <% end %>

      <!-- Institution Profile -->
      <% if user_role_in?(:institutional_admin, :dmp_admin) %>
        <li <%= 'class=current' if current_page_includes?(institutions_path, new_institution_path) %> >
          <%= link_to(content_tag(:span, 'Institution Profile'), institutions_path) %>
        </li>
      <% end %>

      <!-- My Profile -->
      <li <%= 'class=current' if current_page?(edit_user_path(current_user)) %>>
        <%= link_to(content_tag(:span, 'My Profile'), edit_user_path(current_user)) %>
      </li>

      <!-- DMP Administration -->
      <% if user_role_in?(:dmp_admin) %>
        <li <%= 'class=current' if current_page?(users_url) %>>
          <%= link_to(content_tag(:span, 'DMP Administration'), users_url) %>
        </li>
      <% end %>

    </ul>
  </div>
</div>
{'fraction_non_alphanumeric': 0.15436502788947984, 'fraction_numerical': 0.0, 'mean_word_length': 3.0750528541226214, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3944183', 'n_tokens_mistral': 2462, 'n_tokens_neox': 2289, 'n_words': 362}