<commit_before><% provide :title do %><%= t('budgets.investments.index.title') %><% end %>
<% content_for :header_addon do %>
  <%= render "shared/search_form",
             search_path: budget_investments_path(budget_id: @budget.id, page: 1),
             i18n_namespace: "budgets.investments.index.search_form" %>
<% end %>
<% content_for :canonical do %>
  <%= render "shared/canonical", href: budget_investments_url(@budget, heading_id: @heading.id, filter: @current_filter) %>
<% end %>

<main id="budget-investments-main">

  <% unless params[:search].present? %>
    <%= render '/budgets/investments/header' %>
  <% end %>

  <div class="wrap row">
    <div id="budget-investments" class="budget-investments-list small-12 medium-9 column">

      <div class="small-12 search-results margin-bottom">

        <% if @current_filter == "unfeasible" %>
          <h2><%= t("budgets.investments.index.unfeasible") %>: <%= @heading.name %></h2>
          <div class="callout primary margin">
              <%= t("budgets.investments.index.unfeasible_text",
              definitions: link_to(t("budgets.investments.index.unfeasible_text_definitions"), "https://decide.madrid.es/participatory_budget_info#20")).html_safe %>
          </div>
        <% else %>
          <%= content_tag(:h2, t("budgets.investments.index.by_heading", heading: @heading.name)) if @heading.present? %>
        <% end %>
<commit_msg>changes rel canonical if budget heading is not present<commit_after><% provide :title do %><%= t('budgets.investments.index.title') %><% end %>
<% content_for :header_addon do %>
  <%= render "shared/search_form",
             search_path: budget_investments_path(budget_id: @budget.id, page: 1),
             i18n_namespace: "budgets.investments.index.search_form" %>
<% end %>
<% content_for :canonical do %>
  <% if @heading.present? %>
    <%= render "shared/canonical", href: budget_investments_url(@budget, heading_id: @heading.id, filter: @current_filter) %>
  <% else %>
    <%= render "shared/canonical", href: budget_investments_url(@budget) %>
  <% end %>
<% end %>

<main id="budget-investments-main">

  <% unless params[:search].present? %>
    <%= render '/budgets/investments/header' %>
  <% end %>

  <div class="wrap row">
    <div id="budget-investments" class="budget-investments-list small-12 medium-9 column">

      <div class="small-12 search-results margin-bottom">

        <% if @current_filter == "unfeasible" %>
          <h2><%= t("budgets.investments.index.unfeasible") %>: <%= @heading.name %></h2>
          <div class="callout primary margin">
              <%= t("budgets.investments.index.unfeasible_text",
              definitions: link_to(t("budgets.investments.index.unfeasible_text_definitions"), "https://decide.madrid.es/participatory_budget_info#20")).html_safe %>
          </div>
        <% else %>
          <%= content_tag(:h2, t("budgets.investments.index.by_heading", heading: @heading.name)) if @heading.present? %>
        <% end %>

{'fraction_non_alphanumeric': 0.17550884217550886, 'fraction_numerical': 0.008675342008675343, 'mean_word_length': 3.648062015503876, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '2756520', 'n_tokens_mistral': 1082, 'n_tokens_neox': 951, 'n_words': 166}