<commit_before><% title "#{platform_name(@platform_name)} - Libraries.io" %>
<% description "A detailed listing of the most popular, recently updated and most watched #{platform_name(@platform_name)} packages online" %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(platforms: @platform_name, sort: 'latest_release_published_at', order: 'desc', format: :atom), title: "Updated #{platform_name(@platform_name)} Packages") %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(platforms: @platform_name, sort: 'created_at', order: 'desc', format: :atom), title: "New #{platform_name(@platform_name)} Packages") %>

<% cache([@platform_name, 'platforms:show', 'v1'], :expires_in => 1.hour) do %>
<div class='row'>
  <div class='col-sm-6'>
    <h1>
      <div class="pictogram pictogram-lg pictogram-<%= @platform_name.downcase %>"></div>
      <%= platform_name(@platform_name) %>
    </h1>
  </div>
  <div class="col-sm-6">
    <br>
    <p>
      Website: <%= link_to @platform::URL, @platform::URL %>
    </p>
    <p>
      Total Packages: <%= number_with_delimiter Project.platform(@platform_name).not_removed.count %>
    </p>
  </div>
</div>
<hr>
<div class="row">
  <div class="col-md-8">
    <div class="row">
      <% if @popular.any? %>
        <div class='col-sm-6 platform-column'>
          <h4>
            Popular <%= platform_name(@platform_name) %> Packages
            <small class='more'>
              <%= link_to 'See more &raquo;'.html_safe, search_path(platforms: @platform_name, sort: 'rank', order: 'desc') %>
            </small>
          </h4>
          <%= render @popular, cache: true %>
        </div>
      <% end %>

      <% if @dependend.any? %>
        <div class='col-sm-6 platform-column'>
          <h4>Most Depended upon <%= platform_name(@platform_name) %> Packages</h4>
          <%= render @dependend, cache: true %>
        </div>
      <% end %>

      <% if @updated.any? %>
      <div class='col-sm-6 platform-column'>
        <h4>
          <%= link_to search_url(platforms: @platform_name, sort: 'latest_release_published_at', order: 'desc', format: :atom), class: 'rss' do %>
            <%= fa_icon "rss-square" %>
          <% end %>
          Updated <%= platform_name(@platform_name) %> Packages
          <small class='more'>
            <%= link_to 'See more &raquo;'.html_safe, search_path(platforms: @platform_name, sort: 'latest_release_published_at', order: 'desc') %>
          </small>
        </h4>
        <%= render @updated, cache: true %>
      </div>
      <% end %>
      <% if @created.any? %>
        <div class='col-sm-6 platform-column'>
          <h4>
            <%= link_to search_url(platforms: @platform_name, sort: 'created_at', order: 'desc', format: :atom), class: 'rss' do %>
              <%= fa_icon "rss-square" %>
            <% end %>
            New <%= platform_name(@platform_name) %> Packages
            <small class='more'>
              <%= link_to 'See more &raquo;'.html_safe, search_path(platforms: @platform_name, sort: 'created_at', order: 'desc') %>
            </small>
          </h4>
          <%= render @created, cache: true %>
        </div>
      <% end %>
    </div>
  </div>
  <div class="col-md-4">
    <div class='row'>
      <% if @languages.many? %>
        <div class='col-md-12 col-sm-4'>
          <h4>
            <%= fa_icon 'code' %>
            Top <%= platform_name(@platform_name) %> Languages
          </h4>
          <%= render partial: 'languages/list_language', collection: @languages, as: :language %>
        </div>
      <% end %>
      <% if @licenses.many? %>
        <div class='col-md-12 col-sm-4'>
          <h4><commit_msg>Reorder the blocks on the platform page to match languages page<commit_after><% title "#{platform_name(@platform_name)} - Libraries.io" %>
<% description "A detailed listing of the most popular, recently updated and most watched #{platform_name(@platform_name)} packages online" %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(platforms: @platform_name, sort: 'latest_release_published_at', order: 'desc', format: :atom), title: "Updated #{platform_name(@platform_name)} Packages") %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(platforms: @platform_name, sort: 'created_at', order: 'desc', format: :atom), title: "New #{platform_name(@platform_name)} Packages") %>

<% cache([@platform_name, 'platforms:show', 'v1'], :expires_in => 1.hour) do %>
<div class='row'>
  <div class='col-sm-6'>
    <h1>
      <div class="pictogram pictogram-lg pictogram-<%= @platform_name.downcase %>"></div>
      <%= platform_name(@platform_name) %>
    </h1>
  </div>
  <div class="col-sm-6">
    <br>
    <p>
      Website: <%= link_to @platform::URL, @platform::URL %>
    </p>
    <p>
      Total Packages: <%= number_with_delimiter Project.platform(@platform_name).not_removed.count %>
    </p>
  </div>
</div>
<hr>
<div class="row">
  <div class="col-md-8">
    <div class="row">
      <% if @popular.any? %>
        <div class='col-sm-6 platform-column'>
          <h4>
            Popular <%= platform_name(@platform_name) %> Packages
            <small class='more'>
              <%= link_to 'See more &raquo;'.html_safe, search_path(platforms: @platform_name, sort: 'rank', order: 'desc') %>
            </small>
          </h4>
          <%= render @popular, cache: true %>
        </div>
      <% end %>

      <% if @created.any? %>
        <div class='col-sm-6 platform-column'>
          <h4>
            <%= link_to search_url(platforms: @platform_name, sort: 'created_at', order: 'desc', format: :atom), class: 'rss' do %>
              <%= fa_icon "rss-square" %>
            <% end %>
            New <%= platform_name(@platform_name) %> Packages
            <small class='more'>
              <%= link_to 'See more &raquo;'.html_safe, search_path(platforms: @platform_name, sort: 'created_at', order: 'desc') %>
            </small>
          </h4>
          <%= render @created, cache: true %>
        </div>
      <% end %>

      <% if @updated.any? %>
      <div class='col-sm-6 platform-column'>
        <h4>
          <%= link_to search_url(platforms: @platform_name, sort: 'latest_release_published_at', order: 'desc', format: :atom), class: 'rss' do %>
            <%= fa_icon "rss-square" %>
          <% end %>
          Updated <%= platform_name(@platform_name) %> Packages
          <small class='more'>
            <%= link_to 'See more &raquo;'.html_safe, search_path(platforms: @platform_name, sort: 'latest_release_published_at', order: 'desc') %>
          </small>
        </h4>
        <%= render @updated, cache: true %>
      </div>
      <% end %>

      <% if @dependend.any? %>
        <div class='col-sm-6 platform-column'>
          <h4>Most Depended upon <%= platform_name(@platform_name) %> Packages</h4>
          <%= render @dependend, cache: true %>
        </div>
      <% end %>

    </div>
  </div>
  <div class="col-md-4">
    <div class='row'>
      <% if @languages.many? %>
        <div class='col-md-12 col-sm-4'>
          <h4>
            <%= fa_icon 'code' %>
            Top <%= platform_name(@platform_name) %> Languages
          </h4>
          <%= render partial: 'languages/list_language', collection: @languages, as: :language %>
        </div>
      <% end %>
      <% if @licenses.many? %>
        <div class='col-md-12 col-sm-4'>
          <h4>
{'fraction_non_alphanumeric': 0.17941810344827586, 'fraction_numerical': 0.0078125, 'mean_word_length': 2.61665854846566, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 187, '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': '6938834', 'n_tokens_mistral': 2573, 'n_tokens_neox': 2378, 'n_words': 529}