<commit_before><% form_tag '../redeliver_incoming', :class => "form form-inline" do %>
  <div>
      id or url_title of request:
      <% if @info_requests && @info_requests.size == 1 %>
        <%= text_field_tag 'url_title', @info_requests[0].url_title, { :size => 20 } %>
      <% else %>
        <%= text_field_tag 'url_title', "", { :size => 20 } %>
      <% end %>
      <%= hidden_field_tag 'redeliver_incoming_message_id', incoming_message.id %>
      <%= submit_tag "Redeliver to another request", :class => "btn btn-warning" %>
  </div>
<% end %>

<p>
<%= link_to 'Generate FOI officer upload URL', "../generate_upload_url/#{incoming_message.info_request.id}?incoming_message_id=#{incoming_message.id}", :class => "btn" %>
</p>

<% form_tag '../destroy_incoming', :class => "form form-inline" do %>
  <%= hidden_field_tag 'incoming_message_id', incoming_message.id %>
  <span class="label label-important">
    Warning, this is permanent! &nbsp;
  </span>
  <%= submit_tag "Destroy message", :class => "btn btn-danger" %>
<% end %><commit_msg>Make the "warning, this is permanent" message a bit less ugly (the button is red, anyway)<commit_after><% form_tag '../redeliver_incoming', :class => "form form-inline" do %>
  <div>
      id or url_title of request:
      <% if @info_requests && @info_requests.size == 1 %>
        <%= text_field_tag 'url_title', @info_requests[0].url_title, { :size => 20 } %>
      <% else %>
        <%= text_field_tag 'url_title', "", { :size => 20 } %>
      <% end %>
      <%= hidden_field_tag 'redeliver_incoming_message_id', incoming_message.id %>
      <%= submit_tag "Redeliver to another request", :class => "btn btn-warning" %>
  </div>
<% end %>

<p>
<%= link_to 'Generate FOI officer upload URL', "../generate_upload_url/#{incoming_message.info_request.id}?incoming_message_id=#{incoming_message.id}", :class => "btn" %>
</p>

<% form_tag '../destroy_incoming', :class => "form form-inline" do %>
  <%= hidden_field_tag 'incoming_message_id', incoming_message.id %>
  <%= submit_tag "Destroy message", :class => "btn btn-danger" %>
  Warning, this is permanent!
<% end %>
{'fraction_non_alphanumeric': 0.18314500941619585, 'fraction_numerical': 0.005649717514124294, 'mean_word_length': 3.9765807962529274, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 55, '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': '412712', 'n_tokens_mistral': 774, 'n_tokens_neox': 703, 'n_words': 164}