<commit_before><% reason = investment.reason_for_not_being_ballotable_by(current_user, ballot) %>
<div class="js-participation supports ballot">
  <% if ballot.has_investment?(investment) %>

    <div class="remove supported inline-block">
      <span class="icon-check-circle bounceIn animated"
            title="<%= t("budget.investments.investment.already_added") %>">
      </span>
      <p class="investment-project-amount">
        <%= investment.formatted_price %>
      </p>
      <% if investment.should_show_ballots? %>
        <%= link_to t('budgets.ballots.show.remove'),
                    budget_ballot_line_path(id: investment.id,
                                            budget_id: investment.budget_id,
                                            investments_ids: investment_ids),
                    class: "delete small expanded",
                    method: :delete,
                    remote: true %>
      <% end %>
    </div>

  <% else %>

    <div class="add in-favor">
      <p class="investment-project-amount">
        <%= investment.formatted_price %>
      </p>
      <% if investment.should_show_ballots? %>
        <%= link_to t("budget.investments.investment.add"),
                    budget_ballot_lines_url(investment_id: investment.id,
                                            budget_id: investment.budget_id,
                                            investments_ids: investment_ids),
                    class: "button button-support small expanded",
                    title: t('budget.investments.investment.support_title'),
                    method: :post,
                    remote: true %>
      <% end %>
    </div>

  <% end %>

  <% if reason.present? && !ballot.has_investment?(investment) %>

    <div class="js-participation-not-allowed" style='display:none'>
      <p>
        <%= t("votes.budget_investments.#{reason}",
              verify_account: link_to(t("votes.verify_account"), verification_path),
              signin: link_to(t("votes.signin"), new_user_session_path),
              signup: link_to(t("votes.signup"), new_user_registration_path),
              my_heading: link_to(investment.heading.name,
                                  budget_investments_path(budget_id: investment.budget_id,
                                                          heading_id: investment.heading_id))
         ).html_safe %>
      </p>
    </div>

  <% end %>
</div><commit_msg>Changes i18n namespace for errors<commit_after><% reason = investment.reason_for_not_being_ballotable_by(current_user, ballot) %>
<div class="js-participation supports ballot">
  <% if ballot.has_investment?(investment) %>

    <div class="remove supported inline-block">
      <span class="icon-check-circle bounceIn animated"
            title="<%= t("budget.investments.investment.already_added") %>">
      </span>
      <p class="investment-project-amount">
        <%= investment.formatted_price %>
      </p>
      <% if investment.should_show_ballots? %>
        <%= link_to t('budgets.ballots.show.remove'),
                    budget_ballot_line_path(id: investment.id,
                                            budget_id: investment.budget_id,
                                            investments_ids: investment_ids),
                    class: "delete small expanded",
                    method: :delete,
                    remote: true %>
      <% end %>
    </div>

  <% else %>

    <div class="add in-favor">
      <p class="investment-project-amount">
        <%= investment.formatted_price %>
      </p>
      <% if investment.should_show_ballots? %>
        <%= link_to t("budget.investments.investment.add"),
                    budget_ballot_lines_url(investment_id: investment.id,
                                            budget_id: investment.budget_id,
                                            investments_ids: investment_ids),
                    class: "button button-support small expanded",
                    title: t('budget.investments.investment.support_title'),
                    method: :post,
                    remote: true %>
      <% end %>
    </div>

  <% end %>

  <% if reason.present? && !ballot.has_investment?(investment) %>

    <div class="js-participation-not-allowed" style='display:none'>
      <p>
        <%= t("budgets.ballots.reasons_for_not_balloting.#{reason}",
              verify_account: link_to(t("votes.verify_account"), verification_path),
              signin: link_to(t("votes.signin"), new_user_session_path),
              signup: link_to(t("votes.signup"), new_user_registration_path),
              my_heading: link_to(investment.heading.name,
                                  budget_investments_path(budget_id: investment.budget_id,
                                                          heading_id: investment.heading_id))
         ).html_safe %>
      </p>
    </div>

  <% end %>
</div>
{'fraction_non_alphanumeric': 0.12203045685279187, 'fraction_numerical': 0.0004060913705583756, 'mean_word_length': 1.8245412844036697, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6978300', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1310, 'n_words': 213}