<commit_before><tr>
  <%= form_for [object.event, object], remote: true do |f| %>
    <td><%= f.text_field :name, class: 'form-control' %></td>
    <td><%= f.number_field :capacity, class: 'form-control', placeholder: 0 %></td>
    <td><%= f.text_field :price, value: number_with_precision(f.object.price, precision: 2), class: 'form-control', placeholder: "0.00" %></td>
    <td><%= form_check_box f, :public %></td>
    <td width="130px"><%= form_check_box f, :member_only %></td>
    <td><div class="checkbox"><%= f.check_box :has_comment %></div></td>
    <td><div class="checkbox"><%= f.check_box :hidden %></div></td>
    <td><%= f.button button_name, class: 'btn btn-sm btn-primary' %></td>
    <%= javascript_tag do %>
      var id = "#<%=dom_id(f.object) %>";
      var inputs = $(id).parent().find('input');
      $(id).parent().find('button').on('click', function(e) {
        e.preventDefault();
        $(id).append(inputs.clone());
        $(id).submit();
      });
    <% end %>
  <% end %>
</tr><commit_msg>Fixed editing of access levels<commit_after><tr>
  <%= form_for [object.event, object], remote: true do |f| %>
    <td><%= f.text_field :name, class: 'form-control' %></td>
    <td><%= f.number_field :capacity, class: 'form-control', placeholder: 0 %></td>
    <td><%= f.text_field :price, value: number_with_precision(f.object.price, precision: 2), class: 'form-control', placeholder: "0.00" %></td>
    <td><%= form_check_box f, :public %></td>
    <td width="130px"><%= form_check_box f, :member_only %></td>
    <td><div class="checkbox"><%= f.check_box :has_comment %></div></td>
    <td><div class="checkbox"><%= f.check_box :hidden %></div></td>
    <td><input type="hidden" name="_method" value="<%= (button_name == 'Save') ? 'put' : 'post'  %>"><%= f.button button_name, class: 'btn btn-sm btn-primary' %></td>
    <%= javascript_tag do %>
      var id = "#<%=dom_id(f.object) %>";
      var inputs = $(id).parent().find('input');
      $(id).parent().find('button').on('click', function(e) {
        e.preventDefault();
        $(id).append(inputs.clone());
        $(id).submit();
      });
    <% end %>
  <% end %>
</tr>
{'fraction_non_alphanumeric': 0.24768089053803338, 'fraction_numerical': 0.0074211502782931356, 'mean_word_length': 3.7406593406593407, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '510129', 'n_tokens_mistral': 806, 'n_tokens_neox': 756, 'n_words': 168}