<commit_before><%= render "shared/error_messages", :target => @user %>
<h2><%= t("registration")%></h2>
<div id="registration">
  <div id="account">
    <%= render :file => 'user_sessions/new' %>
  </div>
  <% if Spree::Config[:allow_guest_checkout] %>
    <div id="guest_checkout">
      <%= render "shared/error_messages", :target => @order %>
      <h4 class="sechead"><%= t(:guest_user_account) %></h4>
      <%= form_for @order, :url => update_checkout_registration_path, :html => { :method => :put, :id => "checkout_form_registration"} do |f| %>
        <div class="secinblock">
					<div class="fm-elements">
						<%= f.label :email, t("email") %><br />
						<%= f.text_field :email, :class => 'txtinput'  %>
					</div>
			 <div class="fm-elements">
													<%= submit_tag t("continue"), :class => 'button primary' %>
					            </div>
				</div>
      <% end %>
    </div>
  <% end %>
</div>
<commit_msg>validation for form added<commit_after><%= render "shared/error_messages", :target => @user %>
<h2><%= t("registration")%></h2>
<div id="registration">
  <div id="account">
    <%= render :file => 'user_sessions/new' %>
  </div>
  <% if Spree::Config[:allow_guest_checkout] %>
    <div id="guest_checkout">
      <%= render "shared/error_messages", :target => @order %>
      <h4 class="sechead"><%= t(:guest_user_account) %></h4>
      <%= form_for @order, :url => update_checkout_registration_path, :html => { :method => :put, :id => "checkout_form_registration"} do |f| %>
        <div class="secinblock">
					<div class="fm-elements">
						<%= f.label :email, t("email") %><br />
						<%= f.text_field :email, :class => 'txtinput required'  %>
					</div>
			 <div class="fm-elements">
													<%= submit_tag t("continue"), :class => 'button primary' %>
					            </div>
				</div>
      <% end %>
    </div>
  <% end %>
</div>
<script>
$(function(){
jQuery("#checkout_form_registration").validate();
});
</script>
{'fraction_non_alphanumeric': 0.22358346094946402, 'fraction_numerical': 0.00408371618172537, 'mean_word_length': 3.3076923076923075, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 81, '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': '6802074', 'n_tokens_mistral': 801, 'n_tokens_neox': 669, 'n_words': 136}