<commit_before><%
  @edit_url = edit_admin_order_adjustment_path(@order, adjustment)
  @delete_url = admin_order_adjustment_path(@order, adjustment)
%>

<tr id="<%= spree_dom_id(adjustment) %>" class="<%= adjustment.eligible? ? 'eligible' : 'ineligible' %>" data-hook="adjustment_row">
  <td>
    <%= display_adjustable(adjustment.adjustable) %>
  </td>
  <td>
    <%= adjustment.label %>
  </td>
  <td class="text-center">
    <%= adjustment.display_amount.to_html %>
  </td>
  <td class="text-center">
    <span class="badge badge-<%= adjustment.state %>">
      <%= adjustment.state %>
    </span>
  </td>
  <td class="actions actions-2 text-center">
    <% if adjustment.open? %>
      <%= link_to_edit(adjustment, no_text: true) if can?(:edit, adjustment) %>
      <%= link_to_delete(adjustment, no_text: true) if can?(:delete, adjustment) %>
    <% end %>
  </td><commit_msg>SDP-413 Translate order adjustments state<commit_after><%
  @edit_url = edit_admin_order_adjustment_path(@order, adjustment)
  @delete_url = admin_order_adjustment_path(@order, adjustment)
%>

<tr id="<%= spree_dom_id(adjustment) %>" class="<%= adjustment.eligible? ? 'eligible' : 'ineligible' %>" data-hook="adjustment_row">
  <td>
    <%= display_adjustable(adjustment.adjustable) %>
  </td>
  <td>
    <%= adjustment.label %>
  </td>
  <td class="text-center">
    <%= adjustment.display_amount.to_html %>
  </td>
  <td class="text-center">
    <span class="text-lowercase badge badge-<%= adjustment.state %>">
      <%= Spree.t("state_machine_states.#{adjustment.state}") %>
    </span>
  </td>
  <td class="actions actions-2 text-center">
    <% if adjustment.open? %>
      <%= link_to_edit(adjustment, no_text: true) if can?(:edit, adjustment) %>
      <%= link_to_delete(adjustment, no_text: true) if can?(:delete, adjustment) %>
    <% end %>
  </td>
{'fraction_non_alphanumeric': 0.18967391304347825, 'fraction_numerical': 0.002717391304347826, 'mean_word_length': 4.320809248554913, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '6201307', 'n_tokens_mistral': 714, 'n_tokens_neox': 646, 'n_words': 112}