<commit_before><%

# local variables:
#
#   product           (Product)
#   has_many_measures (bool)    [optional]

%>

<% has_many_measures ||= false %>

<% checklist_test = product.product_tests.checklist_tests.first %>
<% return unless checklist_test %>

<% if checklist_test.tasks.any? && checklist_test.tasks[0].most_recent_execution && checklist_test.tasks[0].most_recent_execution.incomplete? %>
  <script>
    $.ajax({url: "<%= request.env['PATH_INFO'] %>", type: "GET", dataType: 'script', data: { partial: 'checklist_status_display' }});
  </script>
  <p class="lead row bg-info execution-status"><i class="fa fa-fw fa-refresh fa-spin text-info"></i> In Progress</p>
<% end %>

<table class = 'table table-hover table-condensed'>
  <thead>
    <th class="no-wrap" scope="col">Manual Entry Test</th>
    <th class="no-wrap" scope="col">Status</th>
  </thead>
  <tbody>
    <% checklist_test.measures.sort_by(&:cms_int).each do |measure| %>
      <% link_path = has_many_measures ? measure_checklist_test_path(checklist_test, measure) : product_checklist_test_path(@product, checklist_test, anchor: "#{measure.cms_id}") %>
      <tr>
        <td><%= link_to "#{measure.cms_id} #{measure.name}", link_path %></td>
        <td class="no-wrap">
          <% case checklist_test.measure_status(measure.id) %>
          <% when 'passed' %>
            <strong class = 'text-success'>Passing</strong>
          <% when 'failed' %>
            <strong class = 'text-danger'>Failing</strong>
          <% when 'not_started' %>
            <strong class = 'text-info'>Not Started</strong>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table><commit_msg>Changed Status title to be more descriptive<commit_after><%

# local variables:
#
#   product           (Product)
#   has_many_measures (bool)    [optional]

%>

<% has_many_measures ||= false %>

<% checklist_test = product.product_tests.checklist_tests.first %>
<% return unless checklist_test %>

<% if checklist_test.tasks.any? && checklist_test.tasks[0].most_recent_execution && checklist_test.tasks[0].most_recent_execution.incomplete? %>
  <script>
    $.ajax({url: "<%= request.env['PATH_INFO'] %>", type: "GET", dataType: 'script', data: { partial: 'checklist_status_display' }});
  </script>
  <p class="lead row bg-info execution-status"><i class="fa fa-fw fa-refresh fa-spin text-info"></i> In Progress</p>
<% end %>

<table class = 'table table-hover table-condensed'>
  <thead>
    <th class="no-wrap" scope="col">Data Criteria Verification</th>
    <th class="no-wrap" scope="col">Status</th>
  </thead>
  <tbody>
    <% checklist_test.measures.sort_by(&:cms_int).each do |measure| %>
      <% link_path = has_many_measures ? measure_checklist_test_path(checklist_test, measure) : product_checklist_test_path(@product, checklist_test, anchor: "#{measure.cms_id}") %>
      <tr>
        <td><%= link_to "#{measure.cms_id} #{measure.name}", link_path %></td>
        <td class="no-wrap">
          <% case checklist_test.measure_status(measure.id) %>
          <% when 'passed' %>
            <strong class = 'text-success'>Passing</strong>
          <% when 'failed' %>
            <strong class = 'text-danger'>Failing</strong>
          <% when 'not_started' %>
            <strong class = 'text-info'>Not Started</strong>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.1760376803061525, 'fraction_numerical': 0.0011775095672652341, 'mean_word_length': 3.418725617685306, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '3830875', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1091, 'n_words': 211}