<commit_before><h2 class="petition-action-heading">Government response</h2>
<%= form_for @government_response, :url => admin_petition_government_response_path(petition), method: :put do |f| -%>
  <%= form_row :for => [f.object, :summary] do %>
    <%= f.label :summary, 'Summary quote', class: 'form-label' %>
    <%= error_messages_for_field f.object, :response_summary %>
    <%= f.text_area :summary, rows: 3, cols: 70, tabindex: increment, class: 'form-control' %>
  <% end %>

  <%= form_row :for => [f.object, :details] do %>
    <%= f.label :details, 'Response in full', class: 'form-label' %>
    <%= error_messages_for_field f.object, :response %>
    <%= f.text_area :details, rows: 8, cols: 70, tabindex: increment, class: 'form-control' %>
  <% end %>

  <%= email_signatures_with_count_submit_button(f, petition) %>
<% end -%><commit_msg>Fix error message to appear in form<commit_after><h2 class="petition-action-heading">Government response</h2>
<%= form_for @government_response, :url => admin_petition_government_response_path(petition), method: :put do |f| -%>
  <%= form_row :for => [f.object, :summary] do %>
    <%= f.label :summary, 'Summary quote', class: 'form-label' %>
    <%= error_messages_for_field f.object, :summary %>
    <%= f.text_area :summary, rows: 3, cols: 70, tabindex: increment, class: 'form-control' %>
  <% end %>

  <%= form_row :for => [f.object, :details] do %>
    <%= f.label :details, 'Response in full', class: 'form-label' %>
    <%= error_messages_for_field f.object, :details %>
    <%= f.text_area :details, rows: 8, cols: 70, tabindex: increment, class: 'form-control' %>
  <% end %>

  <%= email_signatures_with_count_submit_button(f, petition) %>
<% end -%>
{'fraction_non_alphanumeric': 0.1866977829638273, 'fraction_numerical': 0.009334889148191364, 'mean_word_length': 4.735785953177258, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 39, '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': '5566693', 'n_tokens_mistral': 662, 'n_tokens_neox': 583, 'n_words': 136}