<commit_before><%= render :partial => "header", :object => {
  "title" => "UPD89",
  "actions" =>[]
} %>

<div class="col_12">
  <p class="col_12">Hello, <%= link_to current_user.name, user_path(current_user.id) %>!</p>

  <div class="col_8 dashboard_box sysBG">
    <h4>Systems</h4>
    <div class="col_6">
      <div id="systemChart"
           data-total="<%= @systems.count %>"
           data-ok="<%= get_systems_without_updates_or_queued.count %>"
           data-progress="<%= get_systems_with_queued_updates.count %>"
           data-warning="<%= get_systems_with_available_updates_only.count %>"></div>
    </div>
    <div class="col_6">
      <ul>
        <li><%= @systems.count %> Systems present</li>
        <% if get_not_recently_seen_systems.count > 0 %>
        <li><%= get_not_recently_seen_systems.count %> Systems not seen in past <%= Settings.Systems.NotSeenWarningThresholdMinutes / 60 %> hours</li>
        <% end %>
        <% if get_systems_without_group.count > 0 %>
        <li><%= get_systems_without_group.count %> Systems not in a group</li>
        <% end %>
      </ul>

      <% if get_systems_without_group.count > 0 %>
        <%= link_to("Assign to a group", :assign_systems, class: "button") %>
      <% end %>
    </div>
    <div class="floatFix"></div>
  </div>

  <div class="col_4 dashboard_box pkgBG">
    <h4>Packages</h4>

    <ul>
      <li><%= @packages.count %> known Packages</li>
      <% if get_packages_without_group.count > 0 %>
      <li><%= get_packages_without_group.count %> Packages not in a group</li>
      <% end %>
    </ul>

    <% if get_packages_without_group.count > 0 %>
      <%= link_to("Assign to groups", :assign_packages, class: "button") %>
    <% end %>
    <div class="floatFix"></div>
  </div>

  <div class="floatFix"></div>

  <div class="col_6 dashboard_box">
    <h4>Tasks</h4>

    <% if get_running_tasks.count + get_failed_tasks.count + get_overdue_tasks.count == 0 %>
      <p>Nothing to report!</p>
    <% end %>

    <ul class="noDots">
    <% if get_running_tasks.count > 0 %>
      <li><%= get_running_tasks.count %> pending <%= link_to("Tasks", tasks_path( filterrific: { with_state_id: TaskState.where(name: "Pending")[0].id } ) ) %></li>
    <% end %>

    <% if get_failed_tasks.count > 0 %>
      <li class="errorText"><i class="fa fa-exclamation-triangle"></i> <%= get_failed_tasks.count %> failed Tasks</li>
    <% end %>

    <% if get_overdue_tasks.count > 0 %>
      <li class="warnText"><i class="fa fa-clock-o"></i> <%= get_overdue_tasks.count %> Tasks overdue!
          <% get_overdue_tasks.take( Settings.Dashboard.NrOfOverdueTasksShown ).each do |task| %>
          <div><%= link_to(task.id, task) + ": " + task.decorated_created_at + ", " + task.task_state.name %></div>
          <% end %>
          <% if get_overdue_tasks.count > Settings.Dashboard.NrOfOverdueTasksShown %>...<% end %>
      </li>
    <% end %>

    </ul>

    <div class="floatFix"></div>
  </div>

  <div class="col_6 dashboard_box sysBG"><commit_msg>link on tasks in dashboard<commit_after><%= render :partial => "header", :object => {
  "title" => "UPD89",
  "actions" =>[]
} %>

<div class="col_12">
  <p class="col_12">Hello, <%= link_to current_user.name, user_path(current_user.id) %>!</p>

  <div class="col_8 dashboard_box sysBG">
    <h4>Systems</h4>
    <div class="col_6">
      <div id="systemChart"
           data-total="<%= @systems.count %>"
           data-ok="<%= get_systems_without_updates_or_queued.count %>"
           data-progress="<%= get_systems_with_queued_updates.count %>"
           data-warning="<%= get_systems_with_available_updates_only.count %>"></div>
    </div>
    <div class="col_6">
      <ul>
        <li><%= @systems.count %> Systems present</li>
        <% if get_not_recently_seen_systems.count > 0 %>
        <li><%= get_not_recently_seen_systems.count %> Systems not seen in past <%= Settings.Systems.NotSeenWarningThresholdMinutes / 60 %> hours</li>
        <% end %>
        <% if get_systems_without_group.count > 0 %>
        <li><%= get_systems_without_group.count %> Systems not in a group</li>
        <% end %>
      </ul>

      <% if get_systems_without_group.count > 0 %>
        <%= link_to("Assign to a group", :assign_systems, class: "button") %>
      <% end %>
    </div>
    <div class="floatFix"></div>
  </div>

  <div class="col_4 dashboard_box pkgBG">
    <h4>Packages</h4>

    <ul>
      <li><%= @packages.count %> known Packages</li>
      <% if get_packages_without_group.count > 0 %>
      <li><%= get_packages_without_group.count %> Packages not in a group</li>
      <% end %>
    </ul>

    <% if get_packages_without_group.count > 0 %>
      <%= link_to("Assign to groups", :assign_packages, class: "button") %>
    <% end %>
    <div class="floatFix"></div>
  </div>

  <div class="floatFix"></div>

  <div class="col_6 dashboard_box">
    <h4>Tasks</h4>

    <% if get_running_tasks.count + get_failed_tasks.count + get_overdue_tasks.count == 0 %>
      <p>Nothing to report!</p>
    <% end %>

    <ul class="noDots">
    <% if get_running_tasks.count > 0 %>
      <li><%= get_running_tasks.count %> pending <%= link_to("Tasks", tasks_path( filterrific: { with_state_id: TaskState.where(name: "Pending")[0].id } ) ) %></li>
    <% end %>

    <% if get_failed_tasks.count > 0 %>
      <li class="errorText"><i class="fa fa-exclamation-triangle"></i> <%= get_failed_tasks.count %> failed Tasks</li>
    <% end %>

    <% if get_overdue_tasks.count > 0 %>
      <li class="warnText"><i class="fa fa-clock-o"></i> <%= get_overdue_tasks.count %> Tasks overdue!
          <% get_overdue_tasks.take( Settings.Dashboard.NrOfOverdueTasksShown ).each do |task| %>
          <div><%= task.decorated_created_at %> (<%= task.task_state.name %>) <%= link_to "Cancel", task_path( task ), method: :delete %> <%= link_to "Check", task_path( task )  %></div>
          <% end %>
          <% if get_overdue_tasks.count > Settings.Dashboard.NrOfOverdueTasksShown %>...<% end %>
      </li>
    <% end %>

    </ul>

    <div class="floatFix"></div>
  </div>

  <div class="col_6 dashboard_box sysBG">
{'fraction_non_alphanumeric': 0.1835071707953064, 'fraction_numerical': 0.009778357235984355, 'mean_word_length': 3.0940627084723147, 'pattern_counts': {'":': 1, '<': 208, '<?xml version=': 0, '>': 234, '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': '2211995', 'n_tokens_mistral': 2362, 'n_tokens_neox': 2098, 'n_words': 403}