<commit_before><nav class="top-bar" data-topbar role="navigation" data-options="mobile_show_parent_link:false">
  <ul class="title-area">
    <li class="name">
      <h1>
        <%= link_to t('site_title'), "/", class: "top-logo" %>
      </h1>
    </li>
    <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
  </ul>

  <section class="top-bar-section">
    <!-- Right Nav Section -->
    <ul class="right">
      <li class="divider"></li>
      <li class="has-dropdown dropdown-width <%= "active" if on_pages? authenticated_root_path, me_path %>">
<% if signed_in? %>
        <%= link_to me_path do %>
        <%= fa_icon 'user' %>
        <%= current_user.display_name %>
        <% end %>
<% else %>
        <a href="#"><%= t('menu') %></a>
<% end %>
        <ul class="dropdown">
<% if signed_in? && Pundit.policy(current_user, current_user.ldap_user).edit? %>
            <li><a href="<%= edit_me_path %>"><%= fa_icon 'edit' %> <%= t 'edit_profile'  %></a></li>
    <% if Pundit.policy(current_user, LdapUser).admin? %>
            <li><a href="<%= admin_path %>"><%= fa_icon 'cog' %> <%= t 'administration'  %></a></li>
    <% end %>
    <li class="logout"><%= link_to destroy_user_session_path do %><%= fa_icon 'sign-out' %> <%= t('logout') %><% end %></li>
<% else %>
          <li> <%= link_to new_user_session_path do %><%= fa_icon 'sign-in' %> <%= t 'login' %> <% end %>
          <li> <%= link_to new_password_path do %><%= fa_icon 'eject' %> <%= t 'forgot_password' %> <% end %>
          <li> <%= link_to new_me_path do %><%= fa_icon 'user-plus' %> <%= t 'create_user' %> <% end %>
<% end %>
        </ul>
      </li>
    </ul>

    <!-- Left Nav Section -->
    <ul class="left">
    <li class="divider"></li>
    <li class="active">
    <%= link_to "#{Configurable.mainsite_url}#{Configurable.mainsite_login_uri}" do %>
        <%= fa_icon 'external-link', text: "chalmers.it" %>
    <% end %>
    </li>
    <li class="divider"></li>
<% if signed_in? %>
    <li class="has-dropdown">
        <a href="#"><%= fa_icon 'cubes' %> <%= t('my_subscriptions') %></a>
      <ul class="dropdown">
        <% if signed_in? %>
          <% current_user.subscribed_applications.each do |a| %>
            <li>
            <%= link_to application_path(a) do %>
              <%= fa_icon 'envelope-square', text: a.name %>
            <% end %>
            </li>
          <% end %>
        <% else %>

        <% end %>
       </li>
      </ul>
    </li>
 <% if signed_in? %>
    <li class="divider"></li>
    <% if Pundit.policy(current_user, LdapUser).index? %>
        <li class="hide-on-small <%= "active" if on_pages? users_path %>"><%= link_to users_path do %>
                <%= fa_icon 'users' %>
                <%= t("all_model", model:User.model_name.human(count: 2).downcase) %>
            <% end %>
        </li>
    <% end %>
    <% if Pundit.policy(current_user, LdapGroup).index? %>
        <li class="hide-on-small <%= "active" if on_pages? groups_path %>"><%= link_to groups_path do %>
                <%= (on_pages? groups_path) ? fa_icon('folder-open') : fa_icon('folder') %>
                <%= t("all_model", model:LdapGroup.model_name.human(count: 2).downcase) %>
            <% end %>
        </li>
    <% end %>
    <li class="divider"></li>
 <% end %>
<% end %><commit_msg>added link to all applications on topbar<commit_after><nav class="top-bar" data-topbar role="navigation" data-options="mobile_show_parent_link:false">
  <ul class="title-area">
    <li class="name">
      <h1>
        <%= link_to t('site_title'), "/", class: "top-logo" %>
      </h1>
    </li>
    <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
  </ul>

  <section class="top-bar-section">
    <!-- Right Nav Section -->
    <ul class="right">
      <li class="divider"></li>
      <li class="has-dropdown dropdown-width <%= "active" if on_pages? authenticated_root_path, me_path %>">
<% if signed_in? %>
        <%= link_to me_path do %>
        <%= fa_icon 'user' %>
        <%= current_user.display_name %>
        <% end %>
<% else %>
        <a href="#"><%= t('menu') %></a>
<% end %>
        <ul class="dropdown">
<% if signed_in? && Pundit.policy(current_user, current_user.ldap_user).edit? %>
            <li><a href="<%= edit_me_path %>"><%= fa_icon 'edit' %> <%= t 'edit_profile'  %></a></li>
    <% if Pundit.policy(current_user, LdapUser).admin? %>
            <li><a href="<%= admin_path %>"><%= fa_icon 'cog' %> <%= t 'administration'  %></a></li>
    <% end %>
    <li class="logout"><%= link_to destroy_user_session_path do %><%= fa_icon 'sign-out' %> <%= t('logout') %><% end %></li>
<% else %>
          <li> <%= link_to new_user_session_path do %><%= fa_icon 'sign-in' %> <%= t 'login' %> <% end %>
          <li> <%= link_to new_password_path do %><%= fa_icon 'eject' %> <%= t 'forgot_password' %> <% end %>
          <li> <%= link_to new_me_path do %><%= fa_icon 'user-plus' %> <%= t 'create_user' %> <% end %>
<% end %>
        </ul>
      </li>
    </ul>

    <!-- Left Nav Section -->
    <ul class="left">
    <li class="divider"></li>
    <li class="active">
    <%= link_to "#{Configurable.mainsite_url}#{Configurable.mainsite_login_uri}" do %>
        <%= fa_icon 'external-link', text: "chalmers.it" %>
    <% end %>
    </li>
    <li class="divider"></li>
<% if signed_in? %>
    <li class="has-dropdown">
        <a href="#"><%= fa_icon 'cubes' %> <%= t('my_subscriptions') %></a>
      <ul class="dropdown">
        <% if signed_in? %>
          <% current_user.subscribed_applications.each do |a| %>
            <li>
            <%= link_to application_path(a) do %>
              <%= fa_icon 'envelope-square', text: a.name %>
            <% end %>
            </li>
          <% end %>
        <% else %>

        <% end %>
       </li>
      </ul>
    </li>
 <% if signed_in? %>
    <li class="divider"></li>
    <% if Pundit.policy(current_user, LdapUser).index? %>
        <li class="hide-on-small <%= "active" if on_pages? users_path %>"><%= link_to users_path do %>
                <%= fa_icon 'users' %>
                <%= t("all_model", model:User.model_name.human(count: 2).downcase) %>
            <% end %>
        </li>
    <% end %>
    <% if Pundit.policy(current_user, LdapGroup).index? %>
        <li class="hide-on-small <%= "active" if on_pages? groups_path %>"><%= link_to groups_path do %>
                <%= (on_pages? groups_path) ? fa_icon('folder-open') : fa_icon('folder') %>
                <%= t("all_model", model:LdapGroup.model_name.human(count: 2).downcase) %>
            <% end %>
        </li>
    <% end %>
    <% if Pundit.policy(current_user, LdapUser).index? %>
        <li class="hide-on-small <%= "active" if on_pages? applications_path %>"><%= link_to applications_path do %>
                <%= fa_icon 'envelope' %>
                <%= t("all_model", model:Application.model_name.human(count: 2).downcase) %>
            <% end %>
        </li>
    <% end %>
    <li class="divider"></li>
 <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.2206279301037079, 'fraction_numerical': 0.0012785907089075152, 'mean_word_length': 2.4886025768087214, 'pattern_counts': {'":': 0, '<': 274, '<?xml version=': 0, '>': 274, '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': '503358', 'n_tokens_mistral': 2715, 'n_tokens_neox': 2414, 'n_words': 474}