<commit_before><h2 class="fiction-dock-logo logo-large">Fiction Dock</h2>

<h5 class="subheader"><%= t(".fiction_dock_tagline") %></h5>

<div class="stats">
  <ul>
    <li>
      <%= link_to franchises_path do %>
        <%= Franchise.count %>
        <span><%= t(".franchises") %></span>
      <% end %>
    </li>

    <li>
      <%= link_to stories_path do %>
        <%= Story.count %>
        <span><%= t(".stories") %></span>
      <% end %>
    </li>

    <li>
      <%= link_to stories_path do %>
        <%= Chapter.count %>
        <span><%= t(".chapters") %></span>
      <% end %>
    </li>

    <li>
      <%= link_to root_path do %>
        <%= Character.count %>
        <span><%= t(".characters") %></span>
      <% end %>
    </li>
  </ul>
</div>

<% if user_signed_in? && current_user.stories.exists? %>
  <h6>Your stories:</h6>
  <%= render partial: 'stories/story_stub', collection: current_user.stories, as: :story %>
<% end %><commit_msg>Limit the stories on the front page to the latest 5<commit_after><h2 class="fiction-dock-logo logo-large">Fiction Dock</h2>

<h5 class="subheader"><%= t(".fiction_dock_tagline") %></h5>

<div class="stats">
  <ul>
    <li>
      <%= link_to franchises_path do %>
        <%= Franchise.count %>
        <span><%= t(".franchises") %></span>
      <% end %>
    </li>

    <li>
      <%= link_to stories_path do %>
        <%= Story.count %>
        <span><%= t(".stories") %></span>
      <% end %>
    </li>

    <li>
      <%= link_to stories_path do %>
        <%= Chapter.count %>
        <span><%= t(".chapters") %></span>
      <% end %>
    </li>

    <li>
      <%= link_to root_path do %>
        <%= Character.count %>
        <span><%= t(".characters") %></span>
      <% end %>
    </li>
  </ul>
</div>

<% if user_signed_in? && current_user.stories.exists? %>
  <h6>Your stories:</h6>
  <%= render partial: 'stories/story_stub', collection: current_user.stories.limit(5), as: :story %>
<% end %>
{'fraction_non_alphanumeric': 0.22544529262086513, 'fraction_numerical': 0.0071246819338422395, 'mean_word_length': 2.4013840830449826, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '800438', 'n_tokens_mistral': 791, 'n_tokens_neox': 706, 'n_words': 142}