<commit_before><h2>New Local Transaction</h2>

<p>We need a bit more information to create your local transaction.</p>

<% if @publication.errors.any? %>
<p>Errors: <%= @publication.errors.full_messages.to_sentence %></p>
<% end %>

<%= semantic_form_for([:admin, @publication]) do |f| %>
  <%= f.inputs :lgsl_code %>
  <%= f.inputs do %>
    <%= f.input :panopticon_id, :as => :hidden %>
    <%= f.input :title, :as => :hidden %>
    <%= f.input :slug, :as => :hidden %>
    <%= f.input :section, :as => :hidden %>
    <%= f.input :department, :as => :hidden %>
    <%= f.input :related_items, :as => :hidden %>
  <% end %>
  <%= f.buttons %>
<% end %>
<commit_msg>Don't double up error messages<commit_after><h2>New Local Transaction</h2>

<p>We need a bit more information to create your local transaction.</p>

<% if @publication.errors.any? %>
<p>Errors: <%= @publication.errors.full_messages.uniq.to_sentence %></p>
<% end %>

<%= semantic_form_for([:admin, @publication]) do |f| %>
  <%= f.inputs :lgsl_code %>
  <%= f.inputs do %>
    <%= f.input :panopticon_id, :as => :hidden %>
    <%= f.input :title, :as => :hidden %>
    <%= f.input :slug, :as => :hidden %>
    <%= f.input :section, :as => :hidden %>
    <%= f.input :department, :as => :hidden %>
    <%= f.input :related_items, :as => :hidden %>
  <% end %>
  <%= f.buttons %>
<% end %>

{'fraction_non_alphanumeric': 0.22895125553914328, 'fraction_numerical': 0.0029542097488921715, 'mean_word_length': 3.6404109589041096, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 57, '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': '5209041', 'n_tokens_mistral': 562, 'n_tokens_neox': 496, 'n_words': 114}