<commit_before><li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><%= group.title %><span class="caret"></span></a>
  <ul class="dropdown-menu">
    <% OodAppGroup.groups_for(apps: group.apps, group_by: :subcategory).each_with_index do |g, index| %>
      <%= content_tag "li", "", class: "divider", role: "separator" if index > 0 %>
      <%= content_tag "li", g.title, class: "dropdown-header" unless g.title.empty? %>
      <% g.apps.each do |app| %>

        <% if app.role == "files" %>
          <li><a href="<%= OodAppkit.files.url(path: @user.home) %>" target="_blank"><i class="fa fa-home"></i> Home Directory</a></a></li>

          <% OodFilesApp.new.favorite_paths.tap do |paths| %>
            <%= content_tag "li", "", class: "divider", role: "separator" if paths.count > 0 %>
            <% paths.each do |path| %>
              <li><a href="<%= OodAppkit.files.url(path: path) %>" target="_blank"><i class="fa fa-folder"></i> <%= path.to_s %></a></li>
            <% end %>
          <% end %>

        <% elsif app.role == "shell" %>
          <%= nav_link("Shell Access", "terminal", OodAppkit.shell.url, target: "_blank") if login_clusters.count == 0 %>

          <% login_clusters.each do |c| %>
            <%= nav_link "#{c.title} Shell Access", "terminal", OodAppkit.shell.url(host: c.login_server.host) %>
          <% end %>

        <% else %>
          <li class="<%= app.role %>"><a href="<%= app_path(app.name, app.type, app.owner) %>"><%= app_icon_tag(app) %> <%= app.title %></a></li>
        <% end %>

      <% end %>
    <% end %>
  </ul>
</li><commit_msg>open shell links in new window<commit_after><li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><%= group.title %><span class="caret"></span></a>
  <ul class="dropdown-menu">
    <% OodAppGroup.groups_for(apps: group.apps, group_by: :subcategory).each_with_index do |g, index| %>
      <%= content_tag "li", "", class: "divider", role: "separator" if index > 0 %>
      <%= content_tag "li", g.title, class: "dropdown-header" unless g.title.empty? %>
      <% g.apps.each do |app| %>

        <% if app.role == "files" %>
          <li><a href="<%= OodAppkit.files.url(path: @user.home) %>" target="_blank"><i class="fa fa-home"></i> Home Directory</a></a></li>

          <% OodFilesApp.new.favorite_paths.tap do |paths| %>
            <%= content_tag "li", "", class: "divider", role: "separator" if paths.count > 0 %>
            <% paths.each do |path| %>
              <li><a href="<%= OodAppkit.files.url(path: path) %>" target="_blank"><i class="fa fa-folder"></i> <%= path.to_s %></a></li>
            <% end %>
          <% end %>

        <% elsif app.role == "shell" %>
          <%= nav_link("Shell Access", "terminal", OodAppkit.shell.url, target: "_blank") if login_clusters.count == 0 %>

          <% login_clusters.each do |c| %>
            <%= nav_link "#{c.title} Shell Access", "terminal", OodAppkit.shell.url(host: c.login_server.host), target: "_blank" %>
          <% end %>

        <% else %>
          <li class="<%= app.role %>"><a href="<%= app_path(app.name, app.type, app.owner) %>"><%= app_icon_tag(app) %> <%= app.title %></a></li>
        <% end %>

      <% end %>
    <% end %>
  </ul>
</li>
{'fraction_non_alphanumeric': 0.22707166027720435, 'fraction_numerical': 0.0017693895606015924, 'mean_word_length': 2.8988505747126436, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 111, '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': '2632563', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1135, 'n_words': 242}