<commit_before>
<div class="container-fluid">
  <div class="col-lg-12">
    <div class="panel panel-default">
      <div class="panel-heading"><i class="fa fa-tachometer" aria-hidden="true"></i> Node Info</div>
      <table class="table">
        <tr>
          <td>Name</td>
          <td class="ng-binding"><%= @docker_info["Name"] %></td>
        </tr>
        <tr>
          <td>Version</td>
          <td class="ng-binding"><%= @docker_version["Version"] %></td>
        </tr>
        <tr>
          <td>CPU</td>
          <td class="ng-binding"><%= @docker_info["NCPU"] %></td>
        </tr>
        <tr>
          <td>Memory</td>
          <td class="ng-binding"><%= Filesize.from(@docker_info["MemTotal"].to_s + " B").pretty%></td>
        </tr>
      </table>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading"><i class="fa fa-tasks" aria-hidden="true"></i> Swarm Info</div>
      <table class="table">
        <tr>
          <td>Name</td>
          <td class="ng-binding"><%= @docker_info["Name"] %></td>
        </tr>
        <tr>
          <td>Version</td>
          <td class="ng-binding"><%= @docker_version["Version"] %></td>
        </tr>
        <tr>
          <td>CPU</td>
          <td class="ng-binding"><%= @docker_info["NCPU"] %></td>
        </tr>
        <tr>
          <td>Memory</td>
          <td class="ng-binding"><%= Filesize.from(@docker_info["MemTotal"].to_s + " B").pretty%></td>
        </tr>
      </table>
    </div>
    <div class="row">
      <div class="col-lg-6">
        <div class="panel panel-info">
          <div class="panel-heading">Total Containers</div>
          <div class="panel-body">
            <%= @docker_info["Containers"] %>
          </div>
        </div>
      </div>
      <div class="col-lg-6">
        <div class="panel panel-success">
          <div class="panel-heading">Running Containers</div>
          <div class="panel-body">
            <%= @docker_info["ContainersRunning"] %>
          </div>
        </div>
      </div>
    </div>
    <h3>Info - DEBUG</h3>
    <%= debug @docker_info %>
  </div>
</div><commit_msg>Swarm info added, images widget added<commit_after>
<div class="container-fluid">
  <div class="col-lg-12">
    <div class="panel panel-default">
      <div class="panel-heading"><i class="fa fa-tachometer" aria-hidden="true"></i> Node Info</div>
      <table class="table">
        <tr>
          <td>Name</td>
          <td class="ng-binding"><%= @docker_info["Name"] %></td>
        </tr>
        <tr>
          <td>Version</td>
          <td class="ng-binding"><%= @docker_version["Version"] %></td>
        </tr>
        <tr>
          <td>CPU</td>
          <td class="ng-binding"><%= @docker_info["NCPU"] %></td>
        </tr>
        <tr>
          <td>Memory</td>
          <td class="ng-binding"><%= Filesize.from(@docker_info["MemTotal"].to_s + " B").pretty%></td>
        </tr>
      </table>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading"><i class="fa fa-tasks" aria-hidden="true"></i> Swarm Info</div>
      <div class="panel-heading"><%= @docker_info["Swarm"]["NodeID"].presence || "This node is not part of a Swarm cluster" %></div>
      <table class="table">
        <tr>
          <td>Node ID</td>
          <td class="ng-binding"><%= @docker_info["Swarm"]["NodeID"].presence || "None" %></td>
        </tr>
        <tr>
          <td>Nodes in the cluster</td>
          <td class="ng-binding"><%= @docker_info["Swarm"]["Nodes"].presence || "None" %></td>
        </tr>
      </table>
    </div>
    <div class="row">
      <div class="col-lg-4">
        <div class="panel panel-info">
          <div class="panel-heading">Total Containers</div>
          <div class="panel-body">
            <%= @docker_info["Containers"] %>
          </div>
        </div>
      </div>
      <div class="col-lg-4">
        <div class="panel panel-success">
          <div class="panel-heading">Running Containers</div>
          <div class="panel-body">
            <%= @docker_info["ContainersRunning"] %>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-lg-4">
          <div class="panel panel-info">
            <div class="panel-heading">Images</div>
            <div class="panel-body">
              <%= @docker_info["Images"] %>
            </div>
          </div>
        </div>
    </div>
    <h3>Version - DEBUG</h3>
    <%= debug @docker_version %>
    <h3>Info - DEBUG</h3>
    <%= debug @docker_info %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.21362433862433863, 'fraction_numerical': 0.0033068783068783067, 'mean_word_length': 2.010617120106171, 'pattern_counts': {'":': 0, '<': 203, '<?xml version=': 0, '>': 203, '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': '7570358', 'n_tokens_mistral': 1557, 'n_tokens_neox': 1501, 'n_words': 280}