<commit_before><div class="row">
<div class="col-md-3">
  <%= render :partial => "dashboard_menu", :locals => {:selected => "profile"} %>
</div>


<div class="col-md-9">

<div class="page-header">
  <h1 class="with-action">Your Profile</h1>

  <div class="header-actions">
    <%= link_to "Preview Your Profile", "/#{@user.username}", :class => "pull-right" %>
  </div>
</div>

<%= form_for [@user], :url => update_designer_path(format: 'html'), :html => {:multipart => true} do |f| %>

    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :profile_display_name, Spree.t(:profile_display_name) %>
          <%= f.text_field :profile_display_name, :class => 'form-control' %>
        </div>
      </div>
    </div>

    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :username, Spree.t(:username) %>
          <%= f.text_field :username, :class => 'form-control' %>
        </div>
      </div>
    </div>
    <% if false %>
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <%= f.label :first_name, Spree.t(:first_name) %>
              <%= f.text_field :first_name, :class => 'form-control' %>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <%= f.label :last_name, Spree.t(:last_name) %>
              <%= f.text_field :last_name, :class => 'form-control' %>
            </div>
          </div>
        </div>
    <% end %>

    <div class="row">
      <div class="col-md-6">
        <div class="form-group">
          <%= f.label :company_name, Spree.t(:company_or_blog_name) %>
          <%= f.text_field :company_name, :class => 'form-control' %>
        </div>
      </div>
      <div class="col-md-6">
        <div class="form-group">
          <%= f.label :website_url, Spree.t(:company_or_blog_url) %>
          <%= f.text_field :website_url, :class => 'form-control' %>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :location, Spree.t(:location) %>
          <%= f.text_field :location, :class => 'form-control' %>
        </div>
      </div>
    </div>

    <hr/>

    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :description, Spree.t("Tell us a little about yourself") %>
          <span class="help-block">Briefly tell customers about yourself. About 5 or 6 sentences is a good length.</span>
          <%= f.text_area :description, :class => 'form-control', :rows => 4 %>

        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :designer_quote, Spree.t("Short Quote") %>
          <span class="help-block">Got something special (yet succinct) to say? This is your chance.</span>
          <%= f.text_area :designer_quote, :class => 'form-control', :rows => 4 %>

        </div>
      </div>
    </div>
    <hr/>
    <div class="row">
      <div class="col-md-12">
        <label>Your Profile Images</label>

        <div class="imageBox">
          <div class="thumbBox"></div>
          <div class="spinner" style="display: none">Loading...</div>
        </div>
        <div class="action clearfix">
          <input type="file" id="file" style="float:left;">
          <input type="button" id="btnCrop" value="Crop" style="float: left; margin-right: 3px; " class="btn-primary">
          <input type="button" id="btnZoomIn" value="+" style="float: left; margin-right: 3px;" class="btn-primary">
          <input type="button" id="btnZoomOut" value="-" style="float: left; margin-right: 3px;" class="btn-primary">
        </div>
        <div class="cropped">
          <%= image_tag(@user.user_images.first.attachment(:primary)) %>
        </div>
      </div>


        <!--<#% if true %>-->
            <!--<div class="form-group">-->
              <!--<#%= f.field_container :logo_image do %>-->
                  <!--<#%= f.fields_for :logo_image do |logo_image| %>-->
                      <!--<table class="form-image-table">-->
                        <!--<tr>-->
                          <!--<#% unless @user.logo_image.new_record? %>-->
                              <!--<td style="padding-right: 10px;"><#%= image_tag(@user.logo_image.attachment(:small)) %></td>-->
                          <!--<#% end %>-->
                          <!--<td>-->
                            <!--<#% unless @user.logo_image.new_record? %>-->
                                <!--<#%= logo_image.label :attachment, "Change Your Logo" %>-->
                            <!--<#% else %>-->
                                <!--<#%= logo_image.label :attachment, "Your Logo" %>-->
                            <!--<#% end %>-->
                            <!--<div id="logo_file" class="choose-file-button">Choose a file</div>-->
                            <!--<#%= logo_image.file_field :attachment %>-->
                          <!--</td>-->
                        <!--</tr>-->
                      <!--</table>-->
                  <!--<#% end %>-->
              <!--<#% end %>-->
            <!--</div>-->
        <!--<#% end %>-->

      <div class="col-md-12">
        <label>Your Logo Image</label>
        <div class="imageBox_logo">
          <div class="thumbBox"></div>
          <div class="spinner" style="display: none">Loading...</div>
        </div>
        <div class="action clearfix">
          <input type="file" id="logo_file" style="float:left;">
          <input type="button" id="btnCrop_logo" value="Crop" style="float: left; margin-right: 3px; " class="btn-primary">
          <input type="button" id="btnZoomIn_logo" value="+" style="float: left; margin-right: 3px;" class="btn-primary">
          <input type="button" id="btnZoomOut_logo" value="-" style="float: left; margin-right: 3px;" class="btn-primary"><commit_msg>changed name of crop button to save<commit_after><div class="row">
<div class="col-md-3">
  <%= render :partial => "dashboard_menu", :locals => {:selected => "profile"} %>
</div>


<div class="col-md-9">

<div class="page-header">
  <h1 class="with-action">Your Profile</h1>

  <div class="header-actions">
    <%= link_to "Preview Your Profile", "/#{@user.username}", :class => "pull-right" %>
  </div>
</div>

<%= form_for [@user], :url => update_designer_path(format: 'html'), :html => {:multipart => true} do |f| %>

    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :profile_display_name, Spree.t(:profile_display_name) %>
          <%= f.text_field :profile_display_name, :class => 'form-control' %>
        </div>
      </div>
    </div>

    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :username, Spree.t(:username) %>
          <%= f.text_field :username, :class => 'form-control' %>
        </div>
      </div>
    </div>
    <% if false %>
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <%= f.label :first_name, Spree.t(:first_name) %>
              <%= f.text_field :first_name, :class => 'form-control' %>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <%= f.label :last_name, Spree.t(:last_name) %>
              <%= f.text_field :last_name, :class => 'form-control' %>
            </div>
          </div>
        </div>
    <% end %>

    <div class="row">
      <div class="col-md-6">
        <div class="form-group">
          <%= f.label :company_name, Spree.t(:company_or_blog_name) %>
          <%= f.text_field :company_name, :class => 'form-control' %>
        </div>
      </div>
      <div class="col-md-6">
        <div class="form-group">
          <%= f.label :website_url, Spree.t(:company_or_blog_url) %>
          <%= f.text_field :website_url, :class => 'form-control' %>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :location, Spree.t(:location) %>
          <%= f.text_field :location, :class => 'form-control' %>
        </div>
      </div>
    </div>

    <hr/>

    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :description, Spree.t("Tell us a little about yourself") %>
          <span class="help-block">Briefly tell customers about yourself. About 5 or 6 sentences is a good length.</span>
          <%= f.text_area :description, :class => 'form-control', :rows => 4 %>

        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <%= f.label :designer_quote, Spree.t("Short Quote") %>
          <span class="help-block">Got something special (yet succinct) to say? This is your chance.</span>
          <%= f.text_area :designer_quote, :class => 'form-control', :rows => 4 %>

        </div>
      </div>
    </div>
    <hr/>
    <div class="row">
      <div class="col-md-12">
        <label>Your Profile Images</label>

        <div class="imageBox">
          <div class="thumbBox"></div>
          <div class="spinner" style="display: none">Loading...</div>
        </div>
        <div class="action clearfix">
          <input type="file" id="file" style="float:left;">
          <input type="button" id="btnCrop" value="Save" style="float: left; margin-right: 3px; display:none;" class="btn-primary">
          <input type="button" id="btnZoomIn" value="+" style="float: left; margin-right: 3px; display:none;" class="btn-primary">
          <input type="button" id="btnZoomOut" value="-" style="float: left; margin-right: 3px; display:none;" class="btn-primary">
        </div>
        <div class="cropped">
          <%= image_tag(@user.user_images.first.attachment(:primary)) %>
        </div>
      </div>


        <!--<#% if true %>-->
            <!--<div class="form-group">-->
              <!--<#%= f.field_container :logo_image do %>-->
                  <!--<#%= f.fields_for :logo_image do |logo_image| %>-->
                      <!--<table class="form-image-table">-->
                        <!--<tr>-->
                          <!--<#% unless @user.logo_image.new_record? %>-->
                              <!--<td style="padding-right: 10px;"><#%= image_tag(@user.logo_image.attachment(:small)) %></td>-->
                          <!--<#% end %>-->
                          <!--<td>-->
                            <!--<#% unless @user.logo_image.new_record? %>-->
                                <!--<#%= logo_image.label :attachment, "Change Your Logo" %>-->
                            <!--<#% else %>-->
                                <!--<#%= logo_image.label :attachment, "Your Logo" %>-->
                            <!--<#% end %>-->
                            <!--<div id="logo_file" class="choose-file-button">Choose a file</div>-->
                            <!--<#%= logo_image.file_field :attachment %>-->
                          <!--</td>-->
                        <!--</tr>-->
                      <!--</table>-->
                  <!--<#% end %>-->
              <!--<#% end %>-->
            <!--</div>-->
        <!--<#% end %>-->

      <div class="col-md-12">
        <label>Your Logo Image</label>
        <div class="imageBox_logo">
          <div class="thumbBox"></div>
          <div class="spinner" style="display: none">Loading...</div>
        </div>
        <div class="action clearfix">
          <input type="file" id="logo_file" style="float:left;">
          <input type="button" id="btnCrop_logo" value="Save" style="float: left; margin-right: 3px; display:none;" class="btn-primary">
          <input type="button" id="btnZoomIn_logo" value="+" style="float: left; margin-right: 3px; display:none;" class="btn-primary">
          <input type="button" id="btnZoomOut_logo" value="-" style="float: left; margin-right: 3px; display:none;" class="btn-primary">
{'fraction_non_alphanumeric': 0.208592981305346, 'fraction_numerical': 0.0055755985569039025, 'mean_word_length': 1.8719095832352248, 'pattern_counts': {'":': 0, '<': 351, '<?xml version=': 0, '>': 387, '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': '4426290', 'n_tokens_mistral': 4012, 'n_tokens_neox': 3779, 'n_words': 757}