<commit_before><h3>Shipping Address</h3>
<div class="addressInfo info">
  <%= form_for @order.shipping_address, url: api_checkout_path(@order.number), html: { autocomplete: 'on' } do |f|%>
    <div class="row top-row">
      <%= f.text_field :full_name, required: true, class: 'form-control name', placeholder: 'Name', autocomplete: 'name' %>
    </div>
    <div class="row middle-row">
      <div class="col-xs-10 noPadding">
        <%= f.text_field :address1, required: true, class: 'form-control street', placeholder: 'Address', autocomplete: 'address-line1' %>
      </div>
      <div class="col-xs-2 noPadding geoLocator right-col">
        <i class="fa fa-crosshairs"></i>
      </div>
    </div>
    <div class="row middle-row">
      <div class="col-xs-12 col-sm-4 col-md-4">
        <%= f.text_field :address2, class: 'form-control apt', placeholder: 'Apt', autocomplete: 'address-line2' %>
      </div>
      <div class="col-xs-12 col-sm-8 col-md-8 right-col">
        <%= f.text_field :city, required: true, class: 'form-control city', placeholder: 'City', autocomplete: 'locality' %>
      </div>
    </div> <%# .row %>
    <div class="row middle-row">
      <div class="col-xs-12 col-sm-8 col-md-8" id="states-container">
        <%= f.collection_select :state_name, f.object.country.states.sort, :name, :name, {include_blank: true}, {class: 'form-control state', required: true, autocomplete: 'region'} %>
      </div>
      <div class="col-xs-12 col-sm-4 col-md-4 right-col">
        <%= f.text_field :zipcode, required: true, class: 'form-control zipcode', placeholder: 'Zip', autocomplete: 'postal-code' %>
      </div>
    </div>
    <div class="row middle-row">
      <div class="col-md-12">
        <%= f.phone_field :phone, required: true, class: 'form-control phone', placeholder: 'Phone', autocomplete: 'tel-national' %>
      </div>
    </div>
    <div class="row bottom-row">
      <div class="col-md-12">
        <%= f.collection_select :country_id, available_countries, :id, :name, {include_blank: true}, { class: 'form-control country', required: true, autocomplete: 'country-name' } %>
      </div>
    </div>
  <% end %>
</div><commit_msg>Move country field above address field<commit_after><h3>Shipping Address</h3>
<div class="addressInfo info">
  <%= form_for @order.shipping_address, url: api_checkout_path(@order.number), html: { autocomplete: 'on' } do |f|%>
    <div class="row top-row">
      <%= f.text_field :full_name, required: true, class: 'form-control name', placeholder: 'Name', autocomplete: 'name' %>
    </div>
    <div class="row middle-row">
      <div class="col-md-12">
        <%= f.collection_select :country_id, available_countries, :id, :name, {include_blank: true}, { class: 'form-control country', required: true, autocomplete: 'country-name' } %>
      </div>
    </div>
    <div class="row middle-row">
      <div class="col-xs-10 noPadding">
        <%= f.text_field :address1, required: true, class: 'form-control street', placeholder: 'Address', autocomplete: 'address-line1' %>
      </div>
      <div class="col-xs-2 noPadding geoLocator right-col">
        <i class="fa fa-crosshairs"></i>
      </div>
    </div>
    <div class="row middle-row">
      <div class="col-xs-12 col-sm-4 col-md-4">
        <%= f.text_field :address2, class: 'form-control apt', placeholder: 'Apt', autocomplete: 'address-line2' %>
      </div>
      <div class="col-xs-12 col-sm-8 col-md-8 right-col">
        <%= f.text_field :city, required: true, class: 'form-control city', placeholder: 'City', autocomplete: 'locality' %>
      </div>
    </div> <%# .row %>
    <div class="row middle-row">
      <div class="col-xs-12 col-sm-8 col-md-8" id="states-container">
        <%= f.collection_select :state_name, f.object.country.states.sort, :name, :name, {include_blank: true}, {class: 'form-control state', required: true, autocomplete: 'region'} %>
      </div>
      <div class="col-xs-12 col-sm-4 col-md-4 right-col">
        <%= f.text_field :zipcode, required: true, class: 'form-control zipcode', placeholder: 'Zip', autocomplete: 'postal-code' %>
      </div>
    </div>
    <div class="row bottom-row">
      <div class="col-md-12">
        <%= f.phone_field :phone, required: true, class: 'form-control phone', placeholder: 'Phone', autocomplete: 'tel-national' %>
      </div>
    </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.18831615120274914, 'fraction_numerical': 0.013287514318442153, 'mean_word_length': 3.297244094488189, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '3108280', 'n_tokens_mistral': 1563, 'n_tokens_neox': 1480, 'n_words': 354}