<commit_before><h2><%= t('.title') %></h2>

<% forem_curcat = 0 %>

<% @forums.each do |forum| %>

    <% if forum.cat_id.to_i != forem_curcat %>

        <% if forem_curcat != 0 %>
            </tbody>
            </table>
            <% forem_curcat += 1 %>
        <% end %>

        <h2><%= forum.category.name %></h2>
        <table id='forums' class='forums subdued' cellspacing='0'>
          <thead>
          <tr>
            <th><%= t('.forums') %></th>
            <th><%= t('.topics') %></th>
            <th><%= t('.posts') %></th>
            <th><%= t('.views') %></th>
          </tr>
          </thead>
          <tbody>
          <% forem_curcat = forum.cat_id.to_i %>

    <% end %>

    <tr class="forum <%= cycle("odd", "even") %>">
      <td>
        <%= link_to forum.title, forum_path(forum), :class => "title" %>
        <div class='description'><%= forum.description %></div>
        <%= t('.last_post') -%>
        <span class='last_post'>
            <% if last_post = forum.last_post_for(forem_user) -%>
              <%= link_to(last_post.topic, forum_topic_path(forum, last_post.topic)) -%> <%= t('by') %> <%= last_post.user %> <%= t('time_ago_in_words', :time => time_ago_in_words(last_post.created_at)) -%>
            <% else %>
              <%= t('.none') -%>
            <% end %>
          </span>
      </td>
      <td><%= forum.topics.count %></td>
      <td><%= forum.posts.count %></td>
      <td><%= forum.views.sum(:count) %></td>
    </tr>


<% end %>
<% if forem_curcat > 0 %>
    </tbody>
    </table>
<% end %>

<% if forem_admin? %>
  <%= link_to t("area", :scope => "forem.admin"), admin_root_path %>
<% end %><commit_msg>Wrap 'Admin Area' link in a footer tag<commit_after><h2><%= t('.title') %></h2>

<% forem_curcat = 0 %>

<% @forums.each do |forum| %>

    <% if forum.cat_id.to_i != forem_curcat %>

        <% if forem_curcat != 0 %>
            </tbody>
            </table>
            <% forem_curcat += 1 %>
        <% end %>

        <h2><%= forum.category.name %></h2>
        <table id='forums' class='forums subdued' cellspacing='0'>
          <thead>
          <tr>
            <th><%= t('.forums') %></th>
            <th><%= t('.topics') %></th>
            <th><%= t('.posts') %></th>
            <th><%= t('.views') %></th>
          </tr>
          </thead>
          <tbody>
          <% forem_curcat = forum.cat_id.to_i %>

    <% end %>

    <tr class="forum <%= cycle("odd", "even") %>">
      <td>
        <%= link_to forum.title, forum_path(forum), :class => "title" %>
        <div class='description'><%= forum.description %></div>
        <%= t('.last_post') -%>
        <span class='last_post'>
            <% if last_post = forum.last_post_for(forem_user) -%>
              <%= link_to(last_post.topic, forum_topic_path(forum, last_post.topic)) -%> <%= t('by') %> <%= last_post.user %> <%= t('time_ago_in_words', :time => time_ago_in_words(last_post.created_at)) -%>
            <% else %>
              <%= t('.none') -%>
            <% end %>
          </span>
      </td>
      <td><%= forum.topics.count %></td>
      <td><%= forum.posts.count %></td>
      <td><%= forum.views.sum(:count) %></td>
    </tr>


<% end %>
<% if forem_curcat > 0 %>
    </tbody>
    </table>
<% end %>

<br>
<footer id='admin_link'>
  <% if forem_admin? %>
    <%= link_to t("area", :scope => "forem.admin"), admin_root_path %>
  <% end %>
</footer>
{'fraction_non_alphanumeric': 0.23660322108345536, 'fraction_numerical': 0.005270863836017569, 'mean_word_length': 1.978204010462075, 'pattern_counts': {'":': 0, '<': 148, '<?xml version=': 0, '>': 156, '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': '4107628', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1208, 'n_words': 221}