<commit_before>= form_for([@store, @order], :html => { :id => 'order_form', :class => 'order-form' }) do |form|
  - if @order.errors.any?
    .form-errors-wrapper
      = render 'shared/form_errors', :target => @order
  %div
    %legend Order Details
    = form.fields_for :line_item do |line_item|
      = line_item.hidden_field :price, :value => @price
      = line_item.hidden_field :total, :value => @total
      = line_item.hidden_field :quantity, :value => @quantity
      = line_item.hidden_field :product_id, :value => @product.id
      - unless @flatrate_shipping_cost.nil?
        = line_item.hidden_field :flatrate_shipping_cost, :value => @flatrate_shipping_cost
      - unless @size.nil?
        = line_item.hidden_field :size, :value => @size
      - unless @color.nil?
        = line_item.hidden_field :color, :value => @color

    %fieldset
      %p
        Quantity: #{@quantity}
        %a.edit-quantity{ :href => "/#{@store.slug}/#{@product.slug}#quantity" } edit

    - unless @color.nil?
      %fieldset
        %p
          Color: #{@color}
          %a.edit-quantity{ :href => "/#{@store.slug}/#{@product.slug}#color" } edit

    - unless @size.nil?
      %fieldset
        %p
          Size: #{@size}
          %a.edit-quantity{ :href => "/#{@store.slug}/#{@product.slug}#size" } edit

    - unless @flatrate_shipping_cost.nil?
      %fieldset
        %p Flat Rate Shipping Cost: #{number_to_currency(@flatrate_shipping_cost)}

    %fieldset
      %p Price: #{number_to_currency(@price)}

    %fieldset
      %p Total: #{number_to_currency(@total)}

  %div
    = form.fields_for :recipient do |recipient|
      %legend Shipping Information
      %fieldset
        = recipient.text_field :first_name, :placeholder => "First Name*"
      %fieldset
        = recipient.text_field :last_name, :placeholder => "Last Name*"
      %fieldset
        = recipient.email_field :email_address, :placeholder => "Email Address*"
      %fieldset
        = recipient.text_field :street_address_one, :placeholder => "Street Address One*"
      %fieldset
        = recipient.text_field :street_address_two, :placeholder => "Street Address Two"
      %fieldset
        = recipient.text_field :city, :placeholder => "City*"
      %fieldset
        = recipient.select :state, options_for_select(us_states)
      %fieldset
        = recipient.text_field :postal_code, :placeholder => "Postal Code*"

  %div
    %legend#billing_information_legend Billing Information
    %fieldset
      %input#credit_card_number{ :type => "tel", :placeholder => "Credit Card Number*" }
    %fieldset
      = select_tag("credit_card_expiration_month", options_for_select(credit_card_months))
    %fieldset
      = select_tag("credit_card_expiration_year", options_for_select(credit_card_years))
    %fieldset
      = form.submit 'Create Order', :id => 'order_form_submit'
<commit_msg>removing name attr from credit card expiration month and year<commit_after>= form_for([@store, @order], :html => { :id => 'order_form', :class => 'order-form' }) do |form|
  - if @order.errors.any?
    .form-errors-wrapper
      = render 'shared/form_errors', :target => @order
  %div
    %legend Order Details
    = form.fields_for :line_item do |line_item|
      = line_item.hidden_field :price, :value => @price
      = line_item.hidden_field :total, :value => @total
      = line_item.hidden_field :quantity, :value => @quantity
      = line_item.hidden_field :product_id, :value => @product.id
      - unless @flatrate_shipping_cost.nil?
        = line_item.hidden_field :flatrate_shipping_cost, :value => @flatrate_shipping_cost
      - unless @size.nil?
        = line_item.hidden_field :size, :value => @size
      - unless @color.nil?
        = line_item.hidden_field :color, :value => @color

    %fieldset
      %p
        Quantity: #{@quantity}
        %a.edit-quantity{ :href => "/#{@store.slug}/#{@product.slug}#quantity" } edit

    - unless @color.nil?
      %fieldset
        %p
          Color: #{@color}
          %a.edit-quantity{ :href => "/#{@store.slug}/#{@product.slug}#color" } edit

    - unless @size.nil?
      %fieldset
        %p
          Size: #{@size}
          %a.edit-quantity{ :href => "/#{@store.slug}/#{@product.slug}#size" } edit

    - unless @flatrate_shipping_cost.nil?
      %fieldset
        %p Flat Rate Shipping Cost: #{number_to_currency(@flatrate_shipping_cost)}

    %fieldset
      %p Price: #{number_to_currency(@price)}

    %fieldset
      %p Total: #{number_to_currency(@total)}

  %div
    = form.fields_for :recipient do |recipient|
      %legend Shipping Information
      %fieldset
        = recipient.text_field :first_name, :placeholder => "First Name*"
      %fieldset
        = recipient.text_field :last_name, :placeholder => "Last Name*"
      %fieldset
        = recipient.email_field :email_address, :placeholder => "Email Address*"
      %fieldset
        = recipient.text_field :street_address_one, :placeholder => "Street Address One*"
      %fieldset
        = recipient.text_field :street_address_two, :placeholder => "Street Address Two"
      %fieldset
        = recipient.text_field :city, :placeholder => "City*"
      %fieldset
        = recipient.select :state, options_for_select(us_states)
      %fieldset
        = recipient.text_field :postal_code, :placeholder => "Postal Code*"

  %div
    %legend#billing_information_legend Billing Information
    %fieldset
      %input#credit_card_number{ :type => "tel", :placeholder => "Credit Card Number*" }
    %fieldset
      = select_tag(nil, options_for_select(credit_card_months), :id => 'credit_card_expiration_month')
    %fieldset
      = select_tag(nil, options_for_select(credit_card_years), :id => 'credit_card_expiration_year')
    %fieldset
      = form.submit 'Create Order', :id => 'order_form_submit'

{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.0, 'mean_word_length': 3.0793539325842696, 'pattern_counts': {'":': 0, '<': 3, '<?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': '909253', 'n_tokens_mistral': 1894, 'n_tokens_neox': 1836, 'n_words': 379}