<commit_before><% url_args = add_query_param(url_args) %>
<%= form_tag(url_args) do %>
  <div class="row">
    <div class="col-xs-12 max-width-text">

      <div class="form-group form-inline">
        <%= label_tag(:img_id, :image_reuse_id.t + ":") %>
        <%= text_field_tag(:img_id, "", size: 8, data: {autofocus: true}, class: "form-control") %>
        <%= submit_tag(:image_reuse_reuse.l, class: "btn btn-default ml-3") %>
      </div>

      <p class="help-block"><%= :image_reuse_id_help.tp %></p>

      <div class="form-group mt-3">
        <%= link_with_query((@all_users ? :image_reuse_just_yours.t :
                              :image_reuse_all_users.t),
                            url_args.merge(all_users: @all_users ? 0 : 1),
                            class: "btn btn-default") %>
      </div>
    </div>
  </div>

  <%= paginate_block(@pages) do %>
    <ul class="row list-unstyled mt-3">
      <% @objects.each do |image| %>
        <li class="matrix-box col-xs-12 col-sm-6 col-md-4">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= thumbnail(image,
                            link: url_args.merge(img_id: image.id),
                            original: true) %>
            </div>
          </div>
        </li>
      <% end %>
    </ul>
  <% end %>
<% end %><commit_msg>Update _reuse_image.html.erb<commit_after><%= form_with(url: add_query_param(url_args)) do |form|%>
  <div class="max-width-text">
    <div class="form-group form-inline">
      <%= form.label(:img_id, "#{:image_reuse_id.t}:") %>
      <%= form.text_field(:img_id,
                          { size: 8, data: { autofocus: true },
                            class: "form-control" }) %>
      <%= form.submit(:image_reuse_reuse.l,
                      { class: "btn btn-default ml-3" }) %>
    </div>

    <p class="help-block"><%= :image_reuse_id_help.tp %></p>

    <div class="form-group mt-3">
      <%= link_with_query((@all_users ? :image_reuse_just_yours.t :
                            :image_reuse_all_users.t),
                          url_args.merge(all_users: @all_users ? 0 : 1),
                          class: "btn btn-default") %>
    </div>
  </div>

  <%= paginate_block(@pages) do %>
    <ul class="row list-unstyled mt-3">

      <% @objects.each do |image| %>
        <li class="matrix-box col-xs-12 col-sm-6 col-md-4">
          <div class="panel panel-default">
            <div class="panel-body">
              <%= thumbnail(image,
                            link: url_args.merge(img_id: image.id),
                            original: true) %>
            </div>
          </div>
        </li>
      <% end %>

    </ul>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.1763409257898604, 'fraction_numerical': 0.008082292432035268, 'mean_word_length': 1.7616632860040569, 'pattern_counts': {'":': 1, '<': 62, '<?xml version=': 0, '>': 62, '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': '2255139', 'n_tokens_mistral': 981, 'n_tokens_neox': 916, 'n_words': 159}