<commit_before><% @title = "Preview new FOI request to '" + h(@info_request.public_body.name) + "'" %>

<% form_for(:info_request, @info_request, :html => { :id => 'preview_form' }  ) do |f| %>
    
    <h1>Now preview your request</h1>

    <%= f.hidden_field(:title) %>

    <% fields_for :outgoing_message do |o| %>
    <p class="outgoing_message_preview">
        <strong>To:</strong> <%=h @info_request.public_body.name %>
        <br><strong>Subject:</strong> <%=h @info_request.title %>
        <br><br>
        <%= @outgoing_message.get_body_for_html_preview %>
        <%= o.hidden_field(:body) %>
    </p>
    <% end %>

    <strong>Note:</strong> Your request and any response will be
    displayed publically on this website.

    <p>
    <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
    <%= hidden_field_tag(:submitted_new_request, 1) %>
    <%= hidden_field_tag(:preview, 0 ) %>
    <%= submit_tag "Re-edit this request", :name => 'reedit' %>
    <%= submit_tag "Send Freedom of Information request", :name => 'submit' %>
    </p>

<% end %>

<commit_msg>Make button say it is public<commit_after><% @title = "Preview new FOI request to '" + h(@info_request.public_body.name) + "'" %>

<% form_for(:info_request, @info_request, :html => { :id => 'preview_form' }  ) do |f| %>
    
    <h1>Now preview your request</h1>

    <%= f.hidden_field(:title) %>

    <% fields_for :outgoing_message do |o| %>
    <p class="outgoing_message_preview">
        <strong>To:</strong> <%=h @info_request.public_body.name %>
        <br><strong>Subject:</strong> <%=h @info_request.title %>
        <br><br>
        <%= @outgoing_message.get_body_for_html_preview %>
        <%= o.hidden_field(:body) %>
    </p>
    <% end %>

    <strong>Note:</strong> Your request and any response will be
    displayed publically on this website.

    <p>
    <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
    <%= hidden_field_tag(:submitted_new_request, 1) %>
    <%= hidden_field_tag(:preview, 0 ) %>
    <%= submit_tag "Re-edit this request", :name => 'reedit' %>
    <%= submit_tag "Send public Freedom of Information request", :name => 'submit' %>
    </p>

<% end %>


{'fraction_non_alphanumeric': 0.18230563002680966, 'fraction_numerical': 0.0035746201966041107, 'mean_word_length': 3.4336633663366336, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 73, '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': '6791429', 'n_tokens_mistral': 833, 'n_tokens_neox': 759, 'n_words': 154}