<commit_before><div class="col-md-12 text-center my-portfolio">
  <h1>My portfolio</h1>
</div>

<div class="col-md-7 row text-center add-new-room">
  <h2>EDIT ROOM</h2>
</div>

<%= form_for @portfolio,:url => update_portfolio_path, method: :post, html: {multipart: true, id: "update_portfolio_form"} do |f| %>
  <div class="row">
    <div class="col-md-7">

      <div class="control-group row hidden">
        <%= f.label :id, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.text_field :id, value:@portfolio.id, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row hidden">
        <%= f.label :user_id, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.text_field :user_id, value: spree_current_user.id, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :portfolio_image, "Add image", :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.file_field :portfolio_image %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :name, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.text_field :name, :class => 'form-control fullwidth' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :room_type, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.select :room_type, options_for_select(@room_type),{}, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :style, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.select :style, options_for_select(@room_style),{}, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :wall_color, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.select :wall_color, options_for_select(@colors),{}, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <label>
          <input type="checkbox" id="portfolio_tos" class="col-md-3">
          <div class="col-md-9 tos">
            <!--By checking here I attest that I own the rights to the image loaded and agree to allow Scout & Nimble, LLC to use this image-->
            <!--for marketing purposes. Scout & Nimble, LLC agrees to give the designer credit for the image and use the image for purposes of building-->
            <!--the designer's brnad.-->
            By checking here I attest that I own the rights to the image
            loaded and agree to allow Scout & Nimble, LLC to use this
            image for marketing purposes. Scout & Nimble, LLC agrees
            to always give the designer credit for the image and use the
            image for purposes of building the designer’s brand.
          </div>
        </label>
      </div>

    </div>

    <div class="col-md-5">
      <img id="img_prev" src="<%= @portfolio.portfolio_image.url if @portfolio.portfolio_image.present? %>" alt="" class="img-responsive"/>
    </div>
  </div>

  <div class="row">
    <div class="form-actions text-right col-md-7">
      <div class="btn btn-danger destroy-portfolio" data-id="<%= @portfolio.id %>" >Delete</div><commit_msg>fixed selecting correct room type, style and wall color<commit_after><div class="col-md-12 text-center my-portfolio">
  <h1>My portfolio</h1>
</div>

<div class="col-md-7 row text-center add-new-room">
  <h2>EDIT ROOM</h2>
</div>

<%= form_for @portfolio,:url => update_portfolio_path, method: :post, html: {multipart: true, id: "update_portfolio_form"} do |f| %>
  <div class="row">
    <div class="col-md-7">

      <div class="control-group row hidden">
        <%= f.label :id, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.text_field :id, value:@portfolio.id, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row hidden">
        <%= f.label :user_id, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.text_field :user_id, value: spree_current_user.id, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :portfolio_image, "Add image", :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.file_field :portfolio_image %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :name, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.text_field :name, :class => 'form-control fullwidth' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :room_type, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.select :room_type, options_for_select(@room_type,@portfolio.room_type),{}, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :style, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.select :style, options_for_select(@room_style,@portfolio.style),{}, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <%= f.label :wall_color, :class => 'control-label col-md-3' %>
        <div class="controls col-md-9">
          <%= f.select :wall_color, options_for_select(@colors,@portfolio.wall_color),{}, :class => 'form-control' %>
          <div class="info"></div>
        </div>
      </div>

      <div class="control-group row">
        <label>
          <input type="checkbox" id="portfolio_tos" class="col-md-3">
          <div class="col-md-9 tos">
            <!--By checking here I attest that I own the rights to the image loaded and agree to allow Scout & Nimble, LLC to use this image-->
            <!--for marketing purposes. Scout & Nimble, LLC agrees to give the designer credit for the image and use the image for purposes of building-->
            <!--the designer's brnad.-->
            By checking here I attest that I own the rights to the image
            loaded and agree to allow Scout & Nimble, LLC to use this
            image for marketing purposes. Scout & Nimble, LLC agrees
            to always give the designer credit for the image and use the
            image for purposes of building the designer’s brand.
          </div>
        </label>
      </div>

    </div>

    <div class="col-md-5">
      <img id="img_prev" src="<%= @portfolio.portfolio_image.url if @portfolio.portfolio_image.present? %>" alt="" class="img-responsive"/>
    </div>
  </div>

  <div class="row">
    <div class="form-actions text-right col-md-7">
      <div class="btn btn-danger destroy-portfolio" data-id="<%= @portfolio.id %>" >Delete</div>
{'fraction_non_alphanumeric': 0.17316361707769823, 'fraction_numerical': 0.006894722885176346, 'mean_word_length': 2.3794802867383513, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 207, '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': '3308001', 'n_tokens_mistral': 2499, 'n_tokens_neox': 2388, 'n_words': 639}