<commit_before><% provide :title do %><%= t('proposals.index.title') %><% end %>
<% content_for :header_addon do %>
  <%= render "shared/search_form",
             search_path: proposals_path(page: 1),
             i18n_namespace: "proposals.index.search_form" %>
<% end %>
<% content_for :canonical do %>
  <%= render "shared/canonical", href: proposals_url %>
<% end %>

<main>
  <h1 class="sr-only"><%= t("shared.outline.proposals") %></h1>

  <div class="row">
    <div id="proposals" class="proposals-list small-12 medium-9 column">

      <div class="small-12 search-results">
        <% if @search_terms || @advanced_search_terms %>
          <h2>
            <%= page_entries_info @proposals %>
            <% if !@advanced_search_terms %>
              <%= t("proposals.index.search_results", count: @proposals.size, search_term: @search_terms) %>
            <% end %>
          </h2>
        <% elsif @tag_filter %>
          <h2>
            <%= page_entries_info @proposals %>
            <%= t("proposals.index.filter_topic", count: @proposals.size, topic: @tag_filter) %>
          </h2>
        <% elsif params[:retired].present? %>
          <h2><%= t("proposals.index.retired_proposals") %>
        <% end %>
      </div>

      <% if has_banners? %>
        <%= render "shared/banner" %>
      <% end %>

      <% if @proposal_successful_exists %>
        <%= render "successful_banner" %>
      <% elsif @featured_proposals.present? %>
        <div id="featured-proposals" class="row featured-proposals">
          <div class="small-12 column">
            <h2>
              <%= t("proposals.index.featured_proposals") %>
            </h2>
          </div>
          <% @featured_proposals.each do |featured_proposal| %>
            <%= render "featured_proposal", proposal: featured_proposal %>
          <% end %>
        </div>
      <% end %>

      <%= render("shared/advanced_search", search_path: proposals_path(page: 1)) unless params[:retired].present? %>

      <%= render 'shared/order_links', i18n_namespace: "proposals.index" %>

      <div class="show-for-small-only">
        <%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button expanded' %>
      </div>

      <div id="proposals-list">
        <%= render partial: 'proposals/proposal', collection: @proposals %>
        <%= paginate @proposals %>
      </div>
    </div>

    <div class="small-12 medium-3 column">
      <aside class="margin-bottom">
        <%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button expanded' %>
        <% if params[:retired].blank? %>
            <%= render "shared/tag_cloud", taggable: 'proposal' %>
            <%= render 'categories' %>
            <%= render 'geozones' %>
            <%= render 'popular' %>
          <% end %>
          <%= render 'retired' %>
      </aside>
    </div>

  </div>
</main><commit_msg>changes order of tag_cloud on proposals sidebar<commit_after><% provide :title do %><%= t('proposals.index.title') %><% end %>
<% content_for :header_addon do %>
  <%= render "shared/search_form",
             search_path: proposals_path(page: 1),
             i18n_namespace: "proposals.index.search_form" %>
<% end %>
<% content_for :canonical do %>
  <%= render "shared/canonical", href: proposals_url %>
<% end %>

<main>
  <h1 class="sr-only"><%= t("shared.outline.proposals") %></h1>

  <div class="row">
    <div id="proposals" class="proposals-list small-12 medium-9 column">

      <div class="small-12 search-results">
        <% if @search_terms || @advanced_search_terms %>
          <h2>
            <%= page_entries_info @proposals %>
            <% if !@advanced_search_terms %>
              <%= t("proposals.index.search_results", count: @proposals.size, search_term: @search_terms) %>
            <% end %>
          </h2>
        <% elsif @tag_filter %>
          <h2>
            <%= page_entries_info @proposals %>
            <%= t("proposals.index.filter_topic", count: @proposals.size, topic: @tag_filter) %>
          </h2>
        <% elsif params[:retired].present? %>
          <h2><%= t("proposals.index.retired_proposals") %>
        <% end %>
      </div>

      <% if has_banners? %>
        <%= render "shared/banner" %>
      <% end %>

      <% if @proposal_successful_exists %>
        <%= render "successful_banner" %>
      <% elsif @featured_proposals.present? %>
        <div id="featured-proposals" class="row featured-proposals">
          <div class="small-12 column">
            <h2>
              <%= t("proposals.index.featured_proposals") %>
            </h2>
          </div>
          <% @featured_proposals.each do |featured_proposal| %>
            <%= render "featured_proposal", proposal: featured_proposal %>
          <% end %>
        </div>
      <% end %>

      <%= render("shared/advanced_search", search_path: proposals_path(page: 1)) unless params[:retired].present? %>

      <%= render 'shared/order_links', i18n_namespace: "proposals.index" %>

      <div class="show-for-small-only">
        <%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button expanded' %>
      </div>

      <div id="proposals-list">
        <%= render partial: 'proposals/proposal', collection: @proposals %>
        <%= paginate @proposals %>
      </div>
    </div>

    <div class="small-12 medium-3 column">
      <aside class="margin-bottom">
        <%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button expanded' %>
        <% if params[:retired].blank? %>
            <%= render 'categories' %>
            <%= render "shared/tag_cloud", taggable: 'proposal' %>
            <%= render 'geozones' %>
            <%= render 'popular' %>
          <% end %>
          <%= render 'retired' %>
      </aside>
    </div>

  </div>
</main>
{'fraction_non_alphanumeric': 0.17403220280918122, 'fraction_numerical': 0.00856457690990065, 'mean_word_length': 2.412624196376388, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, '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': '2628066', 'n_tokens_mistral': 2085, 'n_tokens_neox': 1863, 'n_words': 337}