<commit_before><% if (networks.deferred.state() != 'pending') { %>
  <div class="page-control-box">
    <div class="verification-box">

      <% var task = cluster.task('verify_networks') %>
      <% if (!task) task = cluster.task('check_networks') %>
      <% var connectStatus, connectStatusLast %>
      <% if (!task || (task && task.get('status') == 'ready')) { %>
        <% connectStatus = 'stop'; connectStatusLast = 'stop'; %>
      <% } else if (task && task.get('status') == 'running') { %>
        <% connectStatus = 'success'; connectStatusLast = 'success'; %>
      <% } else if (task && task.get('status') == 'error') { %>
        <% if (task.get('name') == 'verify_networks' && !task.get('result').length) connectStatus = 'error'; else connectStatus = 'success'; %>
        <% connectStatusLast = 'error' %>
      <% } %>
      <div class="verification-network-placeholder">
        <div class="router-box">
          <div class="verification-router"></div>
        </div>
        <div class="animation-box">
          <div class="connect-1-<%= connectStatus %>"></div>
          <div class="connect-2-<%= connectStatusLast %>"></div>
          <div class="connect-3-<%= connectStatusLast %>"></div>
        </div>
        <div class="nodex-box">
          <div class="verification-node-1"></div>
          <div class="verification-node-2"></div>
          <div class="verification-node-3"></div>
        </div>
      </div>

      <div class="verification-text-placeholder">
          <li><strong>Network Verification is done in 3 steps:</strong></li>
          <li>1. Every node starts listening for test frames</li>
          <li>2. From every node 802.1Q tagged UDP frames are sent out</li>
          <li>3. Nodes listeners register test frames from other nodes</li>
      </div>

      <% if (cluster.task('verify_networks', 'ready')) { %>
        <div class="page-control-success-placeholder enable-selection">Verification Succeeded. Your network is configured correctly.</div>
      <% } else if (task && task.get('status') == 'error') { %>
        <div class="page-control-error-placeholder enable-selection">
          Verification Failed:<br/>
          <%- task.get('message').replace(/\n/g, '<br/>') %>
        </div>
        <% if (task.get('result').length) { %>
          <div class="verification-result-table">
            <table class="table table-condensed enable-selection">
              <thead><tr><th>Node Name</th><th>Node MAC address</th><th>Node Interface</th><th>Expected, but not received Vlan ID</th></tr></thead>
              <tbody>
                <% _.each(task.get('result'), function(node) { %>
                  <tr><td><%- node.name ? node.name : 'N/A' %></td><td><%- node.mac ? node.mac : 'N/A' %></td><td><%-node.interface %></td><td><%-node.absent_vlans %></td></tr>
                <% }) %>
              </tbody>
            </table>
          </div>
        <% } %><commit_msg>Line feeds in network verification messages<commit_after><% if (networks.deferred.state() != 'pending') { %>
  <div class="page-control-box">
    <div class="verification-box">

      <% var task = cluster.task('verify_networks') %>
      <% if (!task) task = cluster.task('check_networks') %>
      <% var connectStatus, connectStatusLast %>
      <% if (!task || (task && task.get('status') == 'ready')) { %>
        <% connectStatus = 'stop'; connectStatusLast = 'stop'; %>
      <% } else if (task && task.get('status') == 'running') { %>
        <% connectStatus = 'success'; connectStatusLast = 'success'; %>
      <% } else if (task && task.get('status') == 'error') { %>
        <% if (task.get('name') == 'verify_networks' && !task.get('result').length) connectStatus = 'error'; else connectStatus = 'success'; %>
        <% connectStatusLast = 'error' %>
      <% } %>
      <div class="verification-network-placeholder">
        <div class="router-box">
          <div class="verification-router"></div>
        </div>
        <div class="animation-box">
          <div class="connect-1-<%= connectStatus %>"></div>
          <div class="connect-2-<%= connectStatusLast %>"></div>
          <div class="connect-3-<%= connectStatusLast %>"></div>
        </div>
        <div class="nodex-box">
          <div class="verification-node-1"></div>
          <div class="verification-node-2"></div>
          <div class="verification-node-3"></div>
        </div>
      </div>

      <div class="verification-text-placeholder">
          <li><strong>Network Verification is done in 3 steps:</strong></li>
          <li>1. Every node starts listening for test frames</li>
          <li>2. From every node 802.1Q tagged UDP frames are sent out</li>
          <li>3. Nodes listeners register test frames from other nodes</li>
      </div>

      <% if (cluster.task('verify_networks', 'ready')) { %>
        <div class="page-control-success-placeholder enable-selection">Verification Succeeded. Your network is configured correctly.</div>
      <% } else if (task && task.get('status') == 'error') { %>
        <div class="page-control-error-placeholder enable-selection">
          Verification Failed:<br/>
          <%= task.escape('message').replace(/\n/g, '<br/>') %>
        </div>
        <% if (task.get('result').length) { %>
          <div class="verification-result-table">
            <table class="table table-condensed enable-selection">
              <thead><tr><th>Node Name</th><th>Node MAC address</th><th>Node Interface</th><th>Expected, but not received Vlan ID</th></tr></thead>
              <tbody>
                <% _.each(task.get('result'), function(node) { %>
                  <tr><td><%- node.name ? node.name : 'N/A' %></td><td><%- node.mac ? node.mac : 'N/A' %></td><td><%-node.interface %></td><td><%-node.absent_vlans %></td></tr>
                <% }) %>
              </tbody>
            </table>
          </div>
        <% } %>
{'fraction_non_alphanumeric': 0.20023716754192783, 'fraction_numerical': 0.004743350838556666, 'mean_word_length': 2.5038575667655785, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 195, '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': '6741922', 'n_tokens_mistral': 1848, 'n_tokens_neox': 1719, 'n_words': 369}