<commit_before><table class="index">
  <thead>
    <tr>
      <th colspan="8">
        <%= name %>
        <span class="right">
          <% if use_billing %>
            <%= check_box_tag 'order[use_billing]', '1', (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address)) %> <%= t("use_billing_address") %>
          <% end %>
        </span>
      </th>
    </tr>
  </thead>
  <tbody id="<%= name == t('shipping_address') ? "shipping" : "billing" %>" style="display:<%= (use_billing && (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address))) ? "none" : "" %>">
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :firstname, t(:first_name)+':' %>
      </td>
      <td class="val-col" colspan="3"><%= f.text_field :firstname %></td>
      <td class="lbl-col">
        <%= f.label :lastname, t(:last_name)+':' %>
      </td>
      <td class="val-col" colspan="3"><%= f.text_field :lastname %></td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :address1, t(:street_address)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :address1, :class => "fullwidth" %></td>
      <td class="lbl-col">
        <%= f.label :address2, t(:street_address_2)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :address2, :class => "fullwidth" %></td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :city, t(:city)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :city %></td>
      <td class="lbl-col">
        <%= f.label :zipcode, t(:zip)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :zipcode, :style => "width:100px;" %></td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :state_id, t(:state)+':' %>
      </td>
      <td colspan="3">
        <span id="<%= name==t('shipping_address') ? "s" : "b" %>state">

          <%= f.text_field :state_name, :style => "width:150px;display:#{f.object.country.states.empty? ? 'block' : 'none' };", :disabled => !f.object.country.states.empty? %>
          <%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, {:include_blank => true}, {:style=> "width:150px;display:#{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
        </span>
      </td>
      <td class="lbl-col">
        <%= f.label :country_id, t(:country)+':' %>
      </td>
      <td colspan="3">
        <span id="<%= name==t('shipping_address') ? "s" : "b" %>country"><%= f.collection_select :country_id, available_countries, :id, :name, {}, {:style => 'width:150px;'} %></span>
      </td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :phone, t(:phone)+':' %>
      </td>
      <td colspan="7"><%= f.text_field :phone %></td>
    </tr>
  </tbody>
</table>

<% content_for :head do %>
  <%= javascript_include_tag '/states', 'admin/address_states' %><commit_msg>Use Country.all instead of the deleted available_countries helper<commit_after><table class="index">
  <thead>
    <tr>
      <th colspan="8">
        <%= name %>
        <span class="right">
          <% if use_billing %>
            <%= check_box_tag 'order[use_billing]', '1', (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address)) %> <%= t("use_billing_address") %>
          <% end %>
        </span>
      </th>
    </tr>
  </thead>
  <tbody id="<%= name == t('shipping_address') ? "shipping" : "billing" %>" style="display:<%= (use_billing && (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address))) ? "none" : "" %>">
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :firstname, t(:first_name)+':' %>
      </td>
      <td class="val-col" colspan="3"><%= f.text_field :firstname %></td>
      <td class="lbl-col">
        <%= f.label :lastname, t(:last_name)+':' %>
      </td>
      <td class="val-col" colspan="3"><%= f.text_field :lastname %></td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :address1, t(:street_address)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :address1, :class => "fullwidth" %></td>
      <td class="lbl-col">
        <%= f.label :address2, t(:street_address_2)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :address2, :class => "fullwidth" %></td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :city, t(:city)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :city %></td>
      <td class="lbl-col">
        <%= f.label :zipcode, t(:zip)+':' %>
      </td>
      <td colspan="3"><%= f.text_field :zipcode, :style => "width:100px;" %></td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :state_id, t(:state)+':' %>
      </td>
      <td colspan="3">
        <span id="<%= name==t('shipping_address') ? "s" : "b" %>state">

          <%= f.text_field :state_name, :style => "width:150px;display:#{f.object.country.states.empty? ? 'block' : 'none' };", :disabled => !f.object.country.states.empty? %>
          <%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, {:include_blank => true}, {:style=> "width:150px;display:#{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
        </span>
      </td>
      <td class="lbl-col">
        <%= f.label :country_id, t(:country)+':' %>
      </td>
      <td colspan="3">
        <span id="<%= name==t('shipping_address') ? "s" : "b" %>country"><%= f.collection_select :country_id, Country.all, :id, :name, {}, {:style => 'width:150px;'} %></span>
      </td>
    </tr>
    <tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
      <td class="lbl-col">
        <%= f.label :phone, t(:phone)+':' %>
      </td>
      <td colspan="7"><%= f.text_field :phone %></td>
    </tr>
  </tbody>
</table>

<% content_for :head do %>
  <%= javascript_include_tag '/states', 'admin/address_states' %>
{'fraction_non_alphanumeric': 0.25392592592592594, 'fraction_numerical': 0.008296296296296296, 'mean_word_length': 3.018452380952381, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 215, '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': '6882563', 'n_tokens_mistral': 2649, 'n_tokens_neox': 2461, 'n_words': 453}