<commit_before>
<table>
        <tr>
                <th>
                        Image
                </th>
                <th>
                        Title
                </th>
        </tr>
<% @titled_images.each do |image| %>
        <tr>
                <td>
                        <a href="<%= file_to_url(image.shrunk_file) %>"><%= image_tag(file_to_url(image.crop_file)) %></a>
                </td>
                <td>
		  <%= form_for :image, url: { action: :update } do |f| %>
		    <%= f.text_field :title, value: image.title, class: "image_title" %>
		    <%= f.hidden_field :image_id, value: image.id %>
		    <%= f.submit "Update Title" %>
		  <% end %>
		  <br>
		  <br>
                    <%= link_to('X', 
                                { :action => 'delete_image',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_del' }) %>
                    <%= link_to('+', 
                                { :action => 'increment_by_one',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc1' }) %>
                    <%= link_to('++', 
                                { :action => 'increment_by_two',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc2' }) %>
                    <%= link_to('+10', 
                                { :action => 'increment_by_ten',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc10' }) %>
                    <%= link_to('+365', 
                                { :action => 'increment_by_365',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc10' }) %>
                    <%= link_to('-', 
                                { :action => 'decrement_by_one',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec1' }) %>
                    <%= link_to('--', 
                                { :action => 'decrement_by_two',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec2' }) %>
                    <%= link_to('-10', 
                                { :action => 'decrement_by_ten',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec10' }) %>
                    <%= link_to('-365', 
                                { :action => 'decrement_by_365',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec10' }) %>
                </td>
        </tr>        
<% end %>
</table>

<%#= javascript_include_tag "title" %>
<%= javascript_tag do %>
  $(document).ready(function () {
    $('.image_title').change(function () {
      window.onbeforeunload = function () { return "Your changes have not been saved?" };
    });
  });
<% end %>
<commit_msg>remove javascript_include_tag line<commit_after>
<table>
        <tr>
                <th>
                        Image
                </th>
                <th>
                        Title
                </th>
        </tr>
<% @titled_images.each do |image| %>
        <tr>
                <td>
                        <a href="<%= file_to_url(image.shrunk_file) %>"><%= image_tag(file_to_url(image.crop_file)) %></a>
                </td>
                <td>
		  <%= form_for :image, url: { action: :update } do |f| %>
		    <%= f.text_field :title, value: image.title, class: "image_title" %>
		    <%= f.hidden_field :image_id, value: image.id %>
		    <%= f.submit "Update Title" %>
		  <% end %>
		  <br>
		  <br>
                    <%= link_to('X', 
                                { :action => 'delete_image',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_del' }) %>
                    <%= link_to('+', 
                                { :action => 'increment_by_one',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc1' }) %>
                    <%= link_to('++', 
                                { :action => 'increment_by_two',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc2' }) %>
                    <%= link_to('+10', 
                                { :action => 'increment_by_ten',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc10' }) %>
                    <%= link_to('+365', 
                                { :action => 'increment_by_365',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_inc10' }) %>
                    <%= link_to('-', 
                                { :action => 'decrement_by_one',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec1' }) %>
                    <%= link_to('--', 
                                { :action => 'decrement_by_two',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec2' }) %>
                    <%= link_to('-10', 
                                { :action => 'decrement_by_ten',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec10' }) %>
                    <%= link_to('-365', 
                                { :action => 'decrement_by_365',
                                  :titled_image_id => image.id,
                                  :ol => 'ti_il_dec10' }) %>
                </td>
        </tr>        
<% end %>
</table>

<%= javascript_tag do %>
  $(document).ready(function () {
    $('.image_title').change(function () {
      window.onbeforeunload = function () { return "Your changes have not been saved?" };
    });
  });
<% end %>

{'fraction_non_alphanumeric': 0.14336917562724014, 'fraction_numerical': 0.009123492994460736, 'mean_word_length': 0.8722171393717597, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 134, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 54, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1050915', 'n_tokens_mistral': 1900, 'n_tokens_neox': 1641, 'n_words': 256}