<commit_before><%= render layout: "koi/shared/inline_lightbox", locals: { title: "#{resource.new_record? ? "Add" : "Edit"} Setting", no_hide: true } do -%>

  <%= simple_form_for resource, remote: true, html: { multipart: true, class: 'form-vertical' } do |f| %>
    <div class="panel--padding">
      <input type="hidden" name="prefix" value="<%= params[:prefix] %>">
      <div class="inputs">
        <%= render "form_fields", { f: f, object: resource } %>
      </div>
    </div>
    <div class="panel--padding panel--padding-border">
      <%= content_tag :button, "Save", type: "submit", name: "commit", value: "Save" , class: "button__confirm" %>
      <%= link_to "Delete", resource, data: { confirm: "Are you sure?" }, method: :delete, remote: true, class: "button__cancel" if current_admin.god? unless resource.new_record? %>
    </div>
  <% end %>

<%- end -%><commit_msg>Fix CSRF Authentication error when adding image to the setting<commit_after><%= render layout: "koi/shared/inline_lightbox", locals: { title: "#{resource.new_record? ? "Add" : "Edit"} Setting", no_hide: true } do -%>

  <%= simple_form_for resource, authenticity_token: true, remote: true, html: { multipart: true, class: 'form-vertical' } do |f| %>
    <div class="panel--padding">
      <input type="hidden" name="prefix" value="<%= params[:prefix] %>">
      <div class="inputs">
        <%= render "form_fields", { f: f, object: resource } %>
      </div>
    </div>
    <div class="panel--padding panel--padding-border">
      <%= content_tag :button, "Save", type: "submit", name: "commit", value: "Save" , class: "button__confirm" %>
      <%= link_to "Delete", resource, data: { confirm: "Are you sure?" }, method: :delete, remote: true, class: "button__cancel" if current_admin.god? unless resource.new_record? %>
    </div>
  <% end %>

<%- end -%>
{'fraction_non_alphanumeric': 0.1966322650733297, 'fraction_numerical': 0.0, 'mean_word_length': 3.9783783783783786, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '5927885', 'n_tokens_mistral': 621, 'n_tokens_neox': 589, 'n_words': 163}