<commit_before><!-- shows tile previews for each image -->
<!-- can add images -->
<!-- can change permissions for album -->
<!-- can rename or delete album -->
<!-- can share album, which gives me copy url, facebook, twitter and instagram buttons -->
<!-- can click image preview to see popup for image -->

<h1><%= @album.title %></h1>
<%= link_to "Upload New Image", new_album_image_path(@album.id) %>
<% if @album.owner?(session[:user_id]) %>
  <%= link_to "Edit Album", edit_album_path(@album.id) %>
<% end %>
<br>

<% @album.images.each do |image| %>
  <%= cl_image_tag(image.location) %>
  <% if image.owner?(session[:user_id]) %>
    <%= button_to "DELETE", image, method: :delete %>
  <% end %>
  <br>
<% end %><commit_msg>Working delete route for image owner in album<commit_after><!-- shows tile previews for each image -->
<!-- can add images -->
<!-- can change permissions for album -->
<!-- can rename or delete album -->
<!-- can share album, which gives me copy url, facebook, twitter and instagram buttons -->
<!-- can click image preview to see popup for image -->

<h1><%= @album.title %></h1>
<%= link_to "Upload New Image", new_album_image_path(@album.id) %>
<% if @album.owner?(session[:user_id]) %>
  <%= link_to "Edit Album", edit_album_path(@album.id) %>
<% end %>
<br>

<% @album.images.each do |image| %>
  <%= cl_image_tag(image.location) %>
  <% if image.owner?(session[:user_id]) %>
    <%= button_to "DELETE", {:controller => :images,
      :action => 'destroy', album_id: @album.id, :id => image.id }, :method => :delete %>
  <% end %>
  <br>
<% end %>
{'fraction_non_alphanumeric': 0.20504731861198738, 'fraction_numerical': 0.002523659305993691, 'mean_word_length': 3.806060606060606, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 49, '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': '1981557', 'n_tokens_mistral': 550, 'n_tokens_neox': 502, 'n_words': 158}