<commit_before>= simple_form_for(@payment, :as => :credit_card, :url => 'https://spreedlycore.com/v1/payment_methods') do |f|
  - unless @payment.errors.empty?
    %p There was a problem processing your payment details.

  = hidden_field_tag(:redirect_url, public_order_checkout_payment_process_url(:host => request.host))
  = hidden_field_tag(:api_login, Settings.for(:shop, :spreedly_login))

  - if params[:token]
    = hidden_field_tag(:payment_method_token, params[:token])

  = f.input(:first_name)
  = f.input(:last_name)
  = f.input(:number)
  = f.input(:verification_value)
  
  .inline-group
    = f.input(:month, :label => 'Expiry', :as => :select, :collection => @months)
    = f.input(:year, :label => '/', :as => :select, :collection => @years)

  .button-bar
    %button(type="submit") Place order & Pay<commit_msg>Payment: make credit card number first in the form.<commit_after>= simple_form_for(@payment, :as => :credit_card, :url => 'https://spreedlycore.com/v1/payment_methods') do |f|
  - unless @payment.errors.empty?
    %p There was a problem processing your payment details.

  = hidden_field_tag(:redirect_url, public_order_checkout_payment_process_url(:host => request.host))
  = hidden_field_tag(:api_login, Settings.for(:shop, :spreedly_login))

  - if params[:token]
    = hidden_field_tag(:payment_method_token, params[:token])

  = f.input(:number)

  = f.input(:first_name)
  = f.input(:last_name)

  = f.input(:verification_value)
  
  .inline-group
    = f.input(:month, :label => 'Expiry', :as => :select, :collection => @months)
    = f.input(:year, :label => '/', :as => :select, :collection => @years)

  .button-bar
    %button(type="submit") Place order & Pay
{'fraction_non_alphanumeric': 0.16705882352941176, 'fraction_numerical': 0.001176470588235294, 'mean_word_length': 4.708053691275167, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '361074', 'n_tokens_mistral': 590, 'n_tokens_neox': 573, 'n_words': 111}