<commit_before><fieldset class="no-border-bottom" id="risk_analysis">
  <legend><%= "#{Spree.t(:risk_analysis)}: #{Spree.t(:not) unless @order.is_risky?} #{Spree.t(:risky)}" %></legend>
  <table>
    <thead>
      <th><%= Spree.t('risk')%></th>
      <th><%= Spree.t('status')%></th>
    </thead>
    <tbody id="risk-analysis" data-hook="order_details_adjustments"  class="with-border">
      <tr class="">
        <td><strong>
          <%= Spree.t(:failed_payment_attempts) %>:
        </strong></td>
          <td class="align-center">
            <span class="<%= @order.payments.failed.count > 0 ? 'state void' : 'state complete' %>">
              <%= link_to Spree.t(:payments_failed_count,
                                  count: @order.payments.failed.count),
                          spree.admin_order_payments_path(@order) %>
            </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= Spree.t(:avs_response) %>:</strong></td>
        <td class="align-center">
          <span class="<%= latest_payment.is_avs_risky? ? 'state void' : 'state complete' %>">
            <% if latest_payment.is_avs_risky? %>
              <%= "#{Spree.t(:error)}: #{avs_response_code[latest_payment.avs_response]}" %>
            <% else %>
              <%= Spree.t(:success) %>
            <% end %>
          </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= Spree.t(:cvv_response) %>:</strong></td>
        <td class="align-center">
          <span class="<%= latest_payment.is_cvv_risky? ? 'state void' : 'state complete' %>">
            <% if latest_payment.is_cvv_risky? %>
              <%= "#{Spree.t(:error)}: #{cvv_response_code[latest_payment.cvv_response_code]}" %>
            <% else %>
              <%= Spree.t(:success) %>
            <% end %>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</fieldset><commit_msg>Prevent risk analysis wrap<commit_after><fieldset class="no-border-bottom" id="risk_analysis">
  <legend><%= "#{Spree.t(:risk_analysis)}: #{Spree.t(:not) unless @order.is_risky?} #{Spree.t(:risky)}" %></legend>
  <table>
    <thead>
      <th><%= Spree.t('risk')%></th>
      <th><%= Spree.t('status')%></th>
    </thead>
    <tbody id="risk-analysis" data-hook="order_details_adjustments"  class="with-border">
      <tr class="">
        <td><strong>
          <%= Spree.t(:failed_payment_attempts) %>:
        </strong></td>
          <td class="align-center">
            <span class="<%= @order.payments.failed.count > 0 ? 'state void' : 'state complete' %>">
              <%= link_to Spree.t(:payments_failed_count,
                                  count: @order.payments.failed.count),
                          spree.admin_order_payments_path(@order) %>
            </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= Spree.t(:avs_response) %>:</strong></td>
        <td class="align-center">
          <% if latest_payment.is_avs_risky? %>
            <span class="state void"><%= Spree.t(:error) %>:</span>
            <%= avs_response_code[latest_payment.avs_response] %>
          <% else %>
            <span class="state complete"><%= Spree.t(:success) %></span>
          <% end %>
        </td>
      </tr>

      <tr>
        <td><strong><%= Spree.t(:cvv_response) %>:</strong></td>
        <td class="align-center">
          <span class="<%= latest_payment.is_cvv_risky? ? 'state void' : 'state complete' %>">
            <% if latest_payment.is_cvv_risky? %>
              <%= "#{Spree.t(:error)}: #{cvv_response_code[latest_payment.cvv_response_code]}" %>
            <% else %>
              <%= Spree.t(:success) %>
            <% end %>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</fieldset>
{'fraction_non_alphanumeric': 0.20527859237536658, 'fraction_numerical': 0.0005331911490269261, 'mean_word_length': 2.1033912324234905, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1887923', 'n_tokens_mistral': 1355, 'n_tokens_neox': 1244, 'n_words': 188}