<commit_before><%= content_for(:body_attributes) do %>data-no-turbolink<% end %>

<% displaying_cat1 = displaying_cat1?(@task) %>
<% viewing_measure_test = @task.product_test._type == 'MeasureTest' %>
<% if viewing_measure_test %>
  <% cat1_task = @task.product_test.tasks.c1_task %>
  <% cat3_task = @task.product_test.tasks.c2_task %>
<% else %>
  <% cat1_task = @task.product_test.tasks.cat1_filter_task %>
  <% cat3_task = @task.product_test.tasks.cat3_filter_task %>
<% end %>
<%= render partial: 'application/certification_bar', locals: { product: @product_test.product, active_certs: current_certifications(@task._type, @product_test.product.c3_test) } %>
<div class = 'panel-body'>
  <%= button_to new_task_test_execution_path(iterate_task(@task, 'next').id), :method => :get, :class => "btn btn-default pull-right" do %>
    Next Test: <%= iterate_task(@task, 'next').product_test.cms_id %> <i class="fa fa-fw fa-step-forward" aria-hidden="true"></i>
  <% end %>
  <%= button_to new_task_test_execution_path(iterate_task(@task, 'prev').id), :method => :get, :class => "btn btn-default" do %>
    <i class="fa fa-fw fa-step-backward" aria-hidden="true"></i> previous test: <%= iterate_task(@task, 'prev').product_test.cms_id %>
  <% end %>
</div>
<div class = 'row'>
  <%= render partial: 'test_info', locals: { task: @task } %>
  <%= render partial: 'task_status_wrapper', locals: { task: cat1_task, current_task: displaying_cat1 } if cat1_task %>
  <%= render partial: 'task_status_wrapper', locals: { task: cat3_task, current_task: !displaying_cat1 } if cat3_task %><commit_msg>adjust source order, capitalize previous button<commit_after><%= content_for(:body_attributes) do %>data-no-turbolink<% end %>

<% displaying_cat1 = displaying_cat1?(@task) %>
<% viewing_measure_test = @task.product_test._type == 'MeasureTest' %>
<% if viewing_measure_test %>
  <% cat1_task = @task.product_test.tasks.c1_task %>
  <% cat3_task = @task.product_test.tasks.c2_task %>
<% else %>
  <% cat1_task = @task.product_test.tasks.cat1_filter_task %>
  <% cat3_task = @task.product_test.tasks.cat3_filter_task %>
<% end %>
<%= render partial: 'application/certification_bar', locals: { product: @product_test.product, active_certs: current_certifications(@task._type, @product_test.product.c3_test) } %>
<div class="panel clearfix">
  <%= button_to new_task_test_execution_path(iterate_task(@task, 'prev').id), :method => :get, :class => "btn btn-default pull-left" do %>
    <i class="fa fa-fw fa-step-backward" aria-hidden="true"></i> Previous Test: <%= iterate_task(@task, 'prev').product_test.cms_id %>
  <% end %>
  <%= button_to new_task_test_execution_path(iterate_task(@task, 'next').id), :method => :get, :class => "btn btn-default pull-right" do %>
    Next Test: <%= iterate_task(@task, 'next').product_test.cms_id %> <i class="fa fa-fw fa-step-forward" aria-hidden="true"></i>
  <% end %>
</div>
<div class = 'row'>
  <%= render partial: 'test_info', locals: { task: @task } %>
  <%= render partial: 'task_status_wrapper', locals: { task: cat1_task, current_task: displaying_cat1 } if cat1_task %>
  <%= render partial: 'task_status_wrapper', locals: { task: cat3_task, current_task: !displaying_cat1 } if cat3_task %>
{'fraction_non_alphanumeric': 0.18021091811414391, 'fraction_numerical': 0.01054590570719603, 'mean_word_length': 5.775210084033613, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 67, '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': '3385206', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1107, 'n_words': 212}