<commit_before><div class='relative'>
  <%= link_to t("admin.budget_investments.index.download_current_selection"),
              admin_budget_budget_investments_path(csv_params),
              class: 'advanced-search small' %>

  <h3><%= page_entries_info @investments %></h3>
</div>

<table>
  <thead>
    <tr>
      <th><%= t("admin.budget_investments.index.table_id") %></th>
      <th><%= t("admin.budget_investments.index.table_title") %></th>
      <th><%= t("admin.budget_investments.index.table_supports") %></th>
      <th><%= t("admin.budget_investments.index.table_admin") %></th>
      <th><%= t("admin.budget_investments.index.table_valuator") %></th>
      <th><%= t("admin.budget_investments.index.table_geozone") %></th>
      <th><%= t("admin.budget_investments.index.table_feasibility") %></th>
      <th class="text-center"><%= t("admin.budget_investments.index.table_valuation_finished") %></th>
      <th class="text-center"><%= t("admin.budget_investments.index.table_selection") %></th>
      <% if params[:filter] == 'selected' %>
        <th class="text-center"><%= t("admin.budget_investments.index.table_incompatible") %></th>
      <% end %>
    </tr>
  </thead>

  <% @investments.each do |investment| %>
    <tr id="<%= dom_id(investment) %>" class="budget_investment">
      <td class="text-right">
        <strong><%= investment.id %></strong>
      </td>
      <td>
        <%= link_to investment.title, admin_budget_budget_investment_path(budget_id: @budget.id, id: investment.id, params: Budget::Investment.filter_params(params)) %>
      </td>
      <td class="text-center">
        <%= investment.total_votes %>
      </td>
      <td class="small">
        <% if investment.administrator.present? %>
          <span title="<%= t('admin.budget_investments.index.assigned_admin') %>"><%= investment.administrator.name %></span>
        <% else %>
          <%= t("admin.budget_investments.index.no_admin_assigned") %>
        <% end %>
      </td>
      <td class="small">
        <% if investment.valuators.size == 0 %>
          <%= t("admin.budget_investments.index.no_valuators_assigned") %>
        <% else %>
          <%= investment.valuators.collect(&:description_or_name).join(', ') %>
        <% end %>
      </td>
      <td class="small">
        <%= investment.heading.name %>
      </td>
      <td class="small">
        <%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}",
              price: investment.formatted_price)
        %>
      </td>
      <td class="small text-center">
        <%= investment.valuation_finished? ? t('shared.yes'): t('shared.no') %>
      </td>
      <td class="small">
        <% if investment.selected? %>
          <%= link_to_unless investment.budget.finished?, t("admin.budget_investments.index.selected"),
                                                          toggle_selection_admin_budget_budget_investment_path(@budget,
                                                                           investment,
                                                                           filter: params[:filter],
                                                                           page: params[:page]),
                      method: :patch,
                      remote: true,
                      class: "button small expanded" %>
        <% elsif investment.feasible? && investment.valuation_finished? %>
          <%= link_to_unless investment.budget.finished?, t("admin.budget_investments.index.select"),
                                                          toggle_selection_admin_budget_budget_investment_path(@budget,
                                                                           investment,
                                                                           filter: params[:filter],
                                                                           page: params[:page]),
                      method: :patch,
                      remote: true,
                      class: "button small hollow expanded" %>
        <% end %>
      </td>
      <% if params[:filter] == 'selected' %>
        <td class="small text-center">
          <%= investment.incompatible? ? t('shared.yes'): t('shared.no') %>
        </td>
      <% end %>
    </tr>
  <% end %>
</table>

<%= paginate @investments %><commit_msg>Fix indentations and lines lenght<commit_after><div class='relative'>
  <%= link_to t("admin.budget_investments.index.download_current_selection"),
              admin_budget_budget_investments_path(csv_params),
              class: 'advanced-search small' %>

  <h3><%= page_entries_info @investments %></h3>
</div>

<table>
  <thead>
    <tr>
      <th><%= t("admin.budget_investments.index.table_id") %></th>
      <th><%= t("admin.budget_investments.index.table_title") %></th>
      <th><%= t("admin.budget_investments.index.table_supports") %></th>
      <th><%= t("admin.budget_investments.index.table_admin") %></th>
      <th><%= t("admin.budget_investments.index.table_valuator") %></th>
      <th><%= t("admin.budget_investments.index.table_geozone") %></th>
      <th><%= t("admin.budget_investments.index.table_feasibility") %></th>
      <th class="text-center"><%= t("admin.budget_investments.index.table_valuation_finished") %></th>
      <th class="text-center"><%= t("admin.budget_investments.index.table_selection") %></th>
      <% if params[:filter] == 'selected' %>
        <th class="text-center"><%= t("admin.budget_investments.index.table_incompatible") %></th>
      <% end %>
    </tr>
  </thead>

  <% @investments.each do |investment| %>
    <tr id="<%= dom_id(investment) %>" class="budget_investment">
      <td class="text-right">
        <strong><%= investment.id %></strong>
      </td>
      <td>
        <%= link_to investment.title,
                    admin_budget_budget_investment_path(budget_id: @budget.id,
                                                        id: investment.id,
                                                        params: Budget::Investment.filter_params(params)) %>
      </td>
      <td class="text-center">
        <%= investment.total_votes %>
      </td>
      <td class="small">
        <% if investment.administrator.present? %>
          <span title="<%= t('admin.budget_investments.index.assigned_admin') %>">
            <%= investment.administrator.name %>
          </span>
        <% else %>
          <%= t("admin.budget_investments.index.no_admin_assigned") %>
        <% end %>
      </td>
      <td class="small">
        <% if investment.valuators.size == 0 %>
          <%= t("admin.budget_investments.index.no_valuators_assigned") %>
        <% else %>
          <%= investment.valuators.collect(&:description_or_name).join(', ') %>
        <% end %>
      </td>
      <td class="small">
        <%= investment.heading.name %>
      </td>
      <td class="small">
        <%= t("admin.budget_investments.index.feasibility.#{investment.feasibility}",
              price: investment.formatted_price)
        %>
      </td>
      <td class="small text-center">
        <%= investment.valuation_finished? ? t('shared.yes'): t('shared.no') %>
      </td>
      <td class="small">
        <% if investment.selected? %>
          <%= link_to_unless investment.budget.finished?,
                             t("admin.budget_investments.index.selected"),
                             toggle_selection_admin_budget_budget_investment_path(@budget,
                                                                                  investment,
                                                                                  filter: params[:filter],
                                                                                  page: params[:page]),
                             method: :patch,
                             remote: true,
                             class: "button small expanded" %>
        <% elsif investment.feasible? && investment.valuation_finished? %>
          <%= link_to_unless investment.budget.finished?,
                             t("admin.budget_investments.index.select"),
                             toggle_selection_admin_budget_budget_investment_path(@budget,
                                                                                  investment,
                                                                                  filter: params[:filter],
                                                                                  page: params[:page]),
                             method: :patch,
                             remote: true,
                             class: "button small hollow expanded" %>
        <% end %>
      </td>
      <% if params[:filter] == 'selected' %>
        <td class="small text-center">
          <%= investment.incompatible? ? t('shared.yes'): t('shared.no') %>
        </td>
      <% end %>
    </tr>
  <% end %>
</table>

<%= paginate @investments %>
{'fraction_non_alphanumeric': 0.1534521158129176, 'fraction_numerical': 0.0006681514476614699, 'mean_word_length': 1.689727463312369, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 46, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3311523', 'n_tokens_mistral': 2646, 'n_tokens_neox': 2415, 'n_words': 368}