<commit_before><div class="thumb-index well">

  <% if current_user %>
      <div class="btn-toolbar">

        <div class="btn-group">
          <%= link_to 'New', {:controller => :src_images, :action => :new}, :class => 'btn btn-success' %>
        </div>

        <div class="btn-group">
          <button class="btn select-all">Select All</button>
          <button class="btn select-none disabled disable-none-selected enable-some-selected">Select None</button>
        </div>

        <div class="btn-group">

          <div class="input-prepend">
            <button class="btn add-to-set disabled disable-none-selected enable-some-selected">
              Add <span class="selected-count badge badge-info">0</span> to Set:
            </button>
            <input id="add-to-set-name" type="text"/>
          </div>

        </div>

        <% if @src_set.try(:user) == current_user %>
            <div class="btn-group">
              <button class="btn remove-from-set disabled disable-none-selected enable-some-selected">
                Remove <span class="selected-count badge badge-info">0</span> from Set
              </button>
            </div>
        <% end %>

        <div class="btn-group">
          <button class="btn btn-danger delete-src disabled disable-none-selected enable-some-selected">
            Delete <span class="selected-count badge badge-inverse">0</span>
          </button>
        </div>

      </div>
  <% end %>

  <ul class="thumbnails">
    <% @src_images.each do |si| %>
        <li>
          <div class="thumbnail">
            <%= render :partial => si %>
          </div>
        </li>
    <% end %>
  </ul>

  <% if current_page? root_url %>
      <%= link_to 'More images', :src_images %>
  <% else %>
      <%= paginate @src_images %>
  <% end %>

</div><commit_msg>Only show gend image delete button on my page.<commit_after><div class="thumb-index well">

  <% if current_user %>
      <div class="btn-toolbar">

        <div class="btn-group">
          <%= link_to 'New', {:controller => :src_images, :action => :new}, :class => 'btn btn-success' %>
        </div>

        <div class="btn-group">
          <button class="btn select-all">Select All</button>
          <button class="btn select-none disabled disable-none-selected enable-some-selected">Select None</button>
        </div>

        <div class="btn-group">

          <div class="input-prepend">
            <button class="btn add-to-set disabled disable-none-selected enable-some-selected">
              Add <span class="selected-count badge badge-info">0</span> to Set:
            </button>
            <input id="add-to-set-name" type="text"/>
          </div>

        </div>

        <% if @src_set.try(:user) == current_user %>
            <div class="btn-group">
              <button class="btn remove-from-set disabled disable-none-selected enable-some-selected">
                Remove <span class="selected-count badge badge-info">0</span> from Set
              </button>
            </div>
        <% end %>

        <% if current_page? my_url %>
            <div class="btn-group">
              <button class="btn btn-danger delete-src disabled disable-none-selected enable-some-selected">
                Delete <span class="selected-count badge badge-inverse">0</span>
              </button>
            </div>
        <% end %>

      </div>
  <% end %>

  <ul class="thumbnails">
    <% @src_images.each do |si| %>
        <li>
          <div class="thumbnail">
            <%= render :partial => si %>
          </div>
        </li>
    <% end %>
  </ul>

  <% if current_page? root_url %>
      <%= link_to 'More images', :src_images %>
  <% else %>
      <%= paginate @src_images %>
  <% end %>

</div>
{'fraction_non_alphanumeric': 0.16262330045321247, 'fraction_numerical': 0.0015995734470807784, 'mean_word_length': 1.9825119236883944, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 117, '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': '6332648', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1075, 'n_words': 255}