<commit_before><% form_for [:admin, @refinery_setting] do |f| %>
  <%= f.error_messages %>
  <div class='field'>
  <% if action_name =~ /(new)|(create)/ %>
    <%= f.label :name %>
    <%= f.text_field :name, :class => "larger", :size => from_dialog? ? 50 : 67 %>
  <% else %>
    <label for='refinery_setting_value'>Name</label>
    <label class='stripped' for='refinery_setting_value'>
      <%= h(@refinery_setting.name).titleize %>
    </label>
    <span class="preview">- (<%= h @refinery_setting.name %>)</span>
  <% end %>
  <% if (help = I18n.translate("admin.refinery_settings.help.#{@refinery_setting.name}", :default => '').presence) %>
    <p>
      <span>
        <%= I18n.translate("admin.refinery_settings.help.#{@refinery_setting.name}", :default => '') %>
      </span>
    </p>
  <% end %>
  </div>
  <div class='field'>
    <%= f.label :value %>
    <%= f.text_area :value, :rows => 5, :class => 'widest' %>
  </div>
  <input type='hidden' name='modal' value='<%= from_dialog? %>' />
  <input type='hidden' name='dialog' value='<%= from_dialog? %>' />
  <%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => false, :hide_cancel => from_dialog?} %>
<% end -%><commit_msg>Prevents all refinery setting help texts from being shown upon 'Create New Setting'. Thanks to joemsak for pointing this one out.<commit_after><% form_for [:admin, @refinery_setting] do |f| %>
  <%= f.error_messages %>
  <div class='field'>
  <% if action_name =~ /(new)|(create)/ %>
    <%= f.label :name %>
    <%= f.text_field :name, :class => "larger", :size => from_dialog? ? 50 : 67 %>
  <% else %>
    <label for='refinery_setting_value'>Name</label>
    <label class='stripped' for='refinery_setting_value'>
      <%= h(@refinery_setting.name).titleize %>
    </label>
    <span class="preview">- (<%= h @refinery_setting.name %>)</span>
  <% end %>
  <% unless action_name =~ /(new)|(create)/ %>
    <p>
      <span>
        <%= I18n.translate("admin.refinery_settings.help.#{@refinery_setting.name}", :default => '') %>
      </span>
    </p>
  <% end %>
  </div>
  <div class='field'>
    <%= f.label :value %>
    <%= f.text_area :value, :rows => 5, :class => 'widest' %>
  </div>
  <input type='hidden' name='modal' value='<%= from_dialog? %>' />
  <input type='hidden' name='dialog' value='<%= from_dialog? %>' />
  <%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => false, :hide_cancel => from_dialog?} %>
<% end -%>
{'fraction_non_alphanumeric': 0.22914171656686627, 'fraction_numerical': 0.006387225548902195, 'mean_word_length': 3.728301886792453, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 92, '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': '1796777', 'n_tokens_mistral': 964, 'n_tokens_neox': 885, 'n_words': 180}