<commit_before><div class='row'>
  <%= form_for @drop do |f| %>
    <%= render 'shared/error_messages', object: f.object %>
    <div class='tracks'>
      <div class='row'>
        <div class='title'>
          <h2>First, choose your sound:</h2>
        </div>
      </div>
      <div class='row'>
        <div class='col-md-5 col-sm-12'>
          <%= label_tag(:sc_url, "Enter a Soundcloud url:") %></br>
          <%= text_field_tag(:sc_url) %>
        </div>

        <div class='col-md-2 col-sm-12 text-center choices'>
          <%= label_tag(:sc_track, "OR:") %>
        </div>

        <div class='col-md-5 col-sm-12 text-right'>
          <h4>Select one of your <%= current_user.track_count %> tracks:</h4>
          <%= select(:drop, :sc_track, options_for_select(current_user_public_tracks.map { |t| [t.title, t.id]}), include_blank: true) %>
        </div>
      </div>
    </div>
    <hr>

    <div class='row'>
      <div class='row'>
        <div class='title'>
          <h2>Second, drop your sound on a place:</h2>
        </div>
      </div>
      <div class='row'>
        <%= f.fields_for :place do |ff| %>
          <%= render 'place_form', ff: ff%>
        <% end %>
      </div>

    <div class='row'>
      <div class='row'>
        <div class='title'>
          <h2>Third, tag your drop:</h2>
        </div>
      </div>
      <div class='row'>
      <%= label_tag(:tag, "Please select one or more tags") %></br>
      <%=f.select(:all_tags, options_for_select(Tag.all.map{ |tag| tag.name } )) %>
      </div>
    </div>

      <div class='row'>
        <%= submit_tag("Save", class: 'submit-button')%>
      </div>
    </div>
  <% end %>
</div><commit_msg>make selection of multiple tags possible<commit_after><div class='row'>
  <%= form_for @drop do |f| %>
    <%= render 'shared/error_messages', object: f.object %>
    <div class='tracks'>
      <div class='row'>
        <div class='title'>
          <h2>First, choose your sound:</h2>
        </div>
      </div>
      <div class='row'>
        <div class='col-md-5 col-sm-12'>
          <%= label_tag(:sc_url, "Enter a Soundcloud url:") %></br>
          <%= text_field_tag(:sc_url) %>
        </div>

        <div class='col-md-2 col-sm-12 text-center choices'>
          <%= label_tag(:sc_track, "OR:") %>
        </div>

        <div class='col-md-5 col-sm-12 text-right'>
          <h4>Select one of your <%= current_user.track_count %> tracks:</h4>
          <%= select(:drop, :sc_track, options_for_select(current_user_public_tracks.map { |t| [t.title, t.id]}), include_blank: true) %>
        </div>
      </div>
    </div>
    <hr>

    <div class='row'>
      <div class='row'>
        <div class='title'>
          <h2>Second, drop your sound on a place:</h2>
        </div>
      </div>
      <div class='row'>
        <%= f.fields_for :place do |ff| %>
          <%= render 'place_form', ff: ff%>
        <% end %>
      </div>

    <div class='row'>
      <div class='row'>
        <div class='title'>
          <h2>Third, tag your drop:</h2>
        </div>
      </div>
      <div class='row'>
      <%= label_tag(:tag, "Please select one or more tags") %></br>
      <%=f.select(:all_tags, options_for_select(Tag.all.map{ |tag| tag.name } ), multiple: true) %>
      </div>
    </div>

      <div class='row'>
        <%= submit_tag("Save", class: 'submit-button')%>
      </div>
    </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.20017610801291458, 'fraction_numerical': 0.009979454065159965, 'mean_word_length': 2.0758122743682312, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, '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': '3602703', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1180, 'n_words': 264}