<commit_before><div class="center jumbotron">
  <h1>Criteria</h1>
  <!-- This page quickly shows some information about the Criteria. -->
  <p>
  <a href='https://github.com/linuxfoundation/cii-best-practices-badge/blob/master/doc/criteria.md'>The detailed criteria are on GitHub</a>.</p>
  <p>
  <%
    active_criteria = Criteria.reject(&:future?)
    future_criteria = Criteria.select(&:future?)
  %>
  Current number of criteria:
    <%= active_criteria.count %> (active)
    + <%= future_criteria.count %> (future)
    = <%= Criteria.count %> (total).
  <br>
  Among active criteria, there are
    <%= active_criteria.count(&:must?) %> MUST,
    <%= active_criteria.count(&:should?) %> SHOULD, and
    <%= active_criteria.count(&:suggested?) %>
    SUGGESTED criteria.
  Among active criteria,
    <%= active_criteria.count(&:na_allowed?) %> allow N/A,
    <%= active_criteria.count(&:met_url_required?) %>
    require a URL when met, and
    <%= active_criteria.count(&:details_present?) %>
    have details in their description.
  <p>
</div><commit_msg>Add statistics on projects to /criteria.  Fixes #314<commit_after><div class="center jumbotron">
  <h1>Criteria</h1>
  <!-- This page quickly shows some information about the Criteria. -->
  <p>
  <a href='https://github.com/linuxfoundation/cii-best-practices-badge/blob/master/doc/criteria.md'>The detailed criteria are on GitHub</a>.</p>
  <p>
  <%
    active_criteria = Criteria.reject(&:future?)
    future_criteria = Criteria.select(&:future?)
  %>
  Current number of criteria:
    <%= active_criteria.count %> (active)
    + <%= future_criteria.count %> (future)
    = <%= Criteria.count %> (total).
  <br>
  Among active criteria, there are
    <%= active_criteria.count(&:must?) %> MUST,
    <%= active_criteria.count(&:should?) %> SHOULD, and
    <%= active_criteria.count(&:suggested?) %>
    SUGGESTED criteria.
  Among active criteria,
    <%= active_criteria.count(&:na_allowed?) %> allow N/A,
    <%= active_criteria.count(&:met_url_required?) %>
    require a URL when met, and
    <%= active_criteria.count(&:details_present?) %>
    have details in their description.
  <p>
  There are <%= Project.count %> project entries;
  <%= Project.where(badge_status: 'passing').count %> are passing,
  <%= Project.where(badge_status: 'failing').count %> are failing, and
  <%= Project.where(badge_status: 'in_progress').count %> are in progress.
</div>
{'fraction_non_alphanumeric': 0.16818181818181818, 'fraction_numerical': 0.002892561983471074, 'mean_word_length': 4.022821576763485, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 2, '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': '6706271', 'n_tokens_mistral': 853, 'n_tokens_neox': 787, 'n_words': 167}