<commit_before><%= form_for(@shop, html: {role: "form", class: "reg-page"}) do |f| %>
    <% if @shop.errors.any? %>
        <div id="error_explanation">
          <h2><%= pluralize(@shop.errors.count, "error") %> prohibited this shop from being saved:</h2>

          <ul>
            <% @shop.errors.full_messages.each do |message| %>
                <li><%= message %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <h3 align="center"><% if current_page?(controller: shops_path, action: 'edit', id: params[:id] || 0 ) %>Edit Shop: <%= @shop.name %><%else%>Create a new Shop<%end%></h3>
    <hr/>
    <%= f.hidden_field :user_id, :value => current_user.id %>
    <div class="controls">
      <%= f.label :name do %>
          Name<span class="color-red"> *</span>
      <% end %>
      <%= f.text_field :name, class: "span12" %>
    </div>


    <div class="controls">
      <%= f.fields_for :address do |info| %>
          <div class="fields">
            <div class="form-group">
              <div class="span7">
              <%= info.label :city do %>
                  City<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :city, class: "span12" %>
                </div>
            </div>

              <div class="span5">
              <%= info.label :postal_code do %>
                  Postal Code<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :postal_code, class: "span12" %>
                </div>

            <div class="form-group">
              <div class="span7">
              <%= info.label :street do %>
                  Street<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :street, class: "span12" %>
                </div>
            </div>

              <div class="span5">
              <%= info.label :house_number do %>
                  House number<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :house_number, class: "span12" %>
                </div>

            <div class="form-group">
              <%= info.label :country do %>
                  Country<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :country, class: "span12" %>
            </div>
          </div>
      <% end %>
    </div>


    <div class="controls">
        <%= f.label :email %>
        <%= f.text_field :email, class: "span12" %>
    </div>

    <div class="controls">
      <%= f.label :phonenumber %>
      <%= f.text_field :phonenumber, class: "span12" %>
    </div>

    <div class="controls">
      <%= f.label :website %>
      <%= f.text_field :website, class: "span12" %>
    </div><commit_msg>refactored<commit_after><%= form_for(@shop, html: {role: "form", class: "reg-page"}) do |f| %>
    <% if @shop.errors.any? %>
        <div id="error_explanation">
          <h2><%= pluralize(@shop.errors.count, "error") %> prohibited this shop from being saved:</h2>

          <ul>
            <% @shop.errors.full_messages.each do |message| %>
                <li><%= message %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <h3 align="center"><% if current_page?(controller: shops_path, action: 'edit', id: params[:id] || 0 ) %>Edit Shop: <%= @shop.name %><%else%>Create a new Shop<%end%></h3>
    <hr/>
    <%= f.hidden_field :user_id, :value => current_user.id %>
    <div class="controls">
      <%= f.label :name do %>
          Name<span class="color-red"> *</span>
      <% end %>
      <%= f.text_field :name, class: "span12" %>
    </div>


    <div class="controls">
      <%= f.fields_for :address do |info| %>
          <div class="fields">
            <div class="form-group">
              <div class="span7">
                <%= info.label :city do %>
                    City<span class="color-red"> *</span>
                <% end %>
                <%= info.text_field :city, class: "span12" %>
              </div>
            </div>

            <div class="span5">
              <%= info.label :postal_code do %>
                  Postal Code<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :postal_code, class: "span12" %>
            </div>

            <div class="form-group">
              <div class="span7">
                <%= info.label :street do %>
                    Street<span class="color-red"> *</span>
                <% end %>
                <%= info.text_field :street, class: "span12" %>
              </div>
            </div>

            <div class="span5">
              <%= info.label :house_number do %>
                  House number<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :house_number, class: "span12" %>
            </div>

            <div class="form-group">
              <%= info.label :country do %>
                  Country<span class="color-red"> *</span>
              <% end %>
              <%= info.text_field :country, class: "span12" %>
            </div>
          </div>
      <% end %>
    </div>


    <div class="controls">
      <div class="span7">
        <%= f.label :email %>
        <%= f.text_field :email, class: "span12" %>
      </div>

      <div class="span5">
        <%= f.label :phonenumber do %>
            Phone Number
        <% end %>
        <%= f.text_field :phonenumber, class: "span12" %>
      </div>
    </div>

    <div class="controls">
      <%= f.label :website do %>
          Website<span class="color-red"> *</span>
      <% end %>
      <%= f.text_field :website, class: "span12" %>
    </div>
{'fraction_non_alphanumeric': 0.1861281826163301, 'fraction_numerical': 0.009833187006145742, 'mean_word_length': 1.5797101449275361, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 185, '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': '4905253', 'n_tokens_mistral': 1944, 'n_tokens_neox': 1719, 'n_words': 381}