<commit_before><% content_for :title, "Site Settings" %>

<h3>Site Settings</h3>
<p>
  The settings on this page control various aspects of the display or operation of the site. Change these
  rarely and with care. Bear in mind that setting changes will generally not be retroactive - so if you change
  the reputation values, they will only apply going forward - users' reputation will not be recalculated automatically.
</p>

<p>Click on a setting's value to edit it.</p>

<% @settings.each do |category, settings| %>
  <details>
    <summary><%= category.humanize %></summary>
    <table class="table table-borderless">
      <tbody>
      <% settings.each do |setting| %>
        <tr>
          <td>
            <strong><%= setting.name %></strong><br/>
            <span class="text-muted"><%= setting.description %></span>
          </td>
          <td class="js-setting-value" data-type="<%= setting.value_type %>" data-name="<%= setting.name %>"><%= setting.typed %></td>
        </tr>
      <% end %>
      </tbody>
    </table>
  </details>
<% end %>

<%= will_paginate @settings, renderer: BootstrapPagination::Rails %><commit_msg>Handle nils in view too<commit_after><% content_for :title, "Site Settings" %>

<h3>Site Settings</h3>
<p>
  The settings on this page control various aspects of the display or operation of the site. Change these
  rarely and with care. Bear in mind that setting changes will generally not be retroactive - so if you change
  the reputation values, they will only apply going forward - users' reputation will not be recalculated automatically.
</p>

<p>Click on a setting's value to edit it.</p>

<% @settings.each do |category, settings| %>
  <details>
    <summary><%= category&.humanize || 'Uncategorized' %></summary>
    <table class="table table-borderless">
      <tbody>
        <% settings.each do |setting| %>
          <tr>
            <td>
              <strong><%= setting.name %></strong><br/>
              <span class="text-muted"><%= setting.description %></span>
            </td>
            <td class="js-setting-value" data-type="<%= setting.value_type %>" data-name="<%= setting.name %>"><%= setting.typed %></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </details>
<% end %>

<%= will_paginate @settings, renderer: BootstrapPagination::Rails %>
{'fraction_non_alphanumeric': 0.1513722126929674, 'fraction_numerical': 0.0017152658662092624, 'mean_word_length': 2.988034188034188, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '6186395', 'n_tokens_mistral': 717, 'n_tokens_neox': 678, 'n_words': 231}