<commit_before><% title "Trending GitHub Repositories - Libraries" %>
<h1><i class="fa fa-line-chart"></i> Trending GitHub Repositories</h1>

<div class="row">
  <div class="col-md-8">
    <%= render @repos %>
    <%= will_paginate @repos, renderer: BootstrapPagination::Rails, page_links: false %>
  </div>
  <div class="col-md-4">
    <div class='row'>
      <% if @languages.any? %>
        <div class='col-md-12 facets'>
          <h4>Filter by language</h4>
          <ul class='filter'>
            <% @languages.each do |language| %>
              <li class='<%= 'active' if language[0].downcase == params[:language].try(:downcase) %>'>
                <% if language[0].downcase == params[:language].try(:downcase) %>
                  <%= link_to format_language(language[0]), trending_path(language: nil, license: params[:license]) %>
                <% else %>
                  <%= link_to format_language(language[0]), trending_path(language: format_language(language[0]), license: params[:license]) %>
                  <small><%= pluralize number_to_human(language[1]), 'repos' %></small>
                <% end %>
              </li>
            <% end %>
            <% if @language && !@languages.map{|l| l[0].downcase }.include?(@language.name.downcase) %>
              <li class='active'>
                <%= link_to format_language(@language.name), trending_path(language: nil, license: params[:license]) %>
              </li>
            <% end %>
          </ul>
        </div>
      <% end %>
    </div>
  </div>
</div>
<commit_msg>Added a description of trending page<commit_after><% title "Trending GitHub Repositories - Libraries" %>
<h1><i class="fa fa-line-chart"></i> Trending GitHub Repositories</h1>

<div class="row">
  <div class="col-md-8">
    <%= render @repos %>
    <%= will_paginate @repos, renderer: BootstrapPagination::Rails, page_links: false %>
  </div>
  <div class="col-md-4">
    <h3>
      <strong>
        How does this work?
      </strong>
    </h3>
    <p>
      This page applies a simplfied version of the <%= link_to 'hacker news algorithm', 'https://news.ycombinator.com/item?id=1781013' %> to open source GitHub repositories created within the past 7 days, where stars are used instead of upvotes.
    </p>
    <p>
      It highlights new and interesting projects across all of GitHub, updated in real time using the <%= link_to 'GitHub firehose', 'https://developer.github.com/v3/activity/events/#list-public-events' %>.
    </p>
    <p>
      <%= link_to 'Browse the newest repositories here', new_repos_path %>
    </p>
    <div class='row'>
      <% if @languages.any? %>
        <div class='col-md-12 facets'>
          <h4>Filter by language</h4>
          <ul class='filter'>
            <% @languages.each do |language| %>
              <li class='<%= 'active' if language[0].downcase == params[:language].try(:downcase) %>'>
                <% if language[0].downcase == params[:language].try(:downcase) %>
                  <%= link_to format_language(language[0]), trending_path(language: nil, license: params[:license]) %>
                <% else %>
                  <%= link_to format_language(language[0]), trending_path(language: format_language(language[0]), license: params[:license]) %>
                  <small><%= pluralize number_to_human(language[1]), 'repos' %></small>
                <% end %>
              </li>
            <% end %>
            <% if @language && !@languages.map{|l| l[0].downcase }.include?(@language.name.downcase) %>
              <li class='active'>
                <%= link_to format_language(@language.name), trending_path(language: nil, license: params[:license]) %>
              </li>
            <% end %>
          </ul>
        </div>
      <% end %>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.17175974710221287, 'fraction_numerical': 0.010800842992623814, 'mean_word_length': 2.4330922242314648, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, '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': '2135046', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1141, 'n_words': 263}