<commit_before><% reason = investment.reason_for_not_being_selectable_by(current_user) %>
<% voting_allowed = true unless reason.presence == :not_voting_allowed %>
<% user_voted_for = voted_for?(investment_votes, investment) %>

<div class="supports">

  <span class="total-supports <%= 'no-button' unless voting_allowed || user_voted_for %>">
    <%= t("budget.investments.investment.supports", count: investment.total_votes) %>
  </span>

  <div class="in-favor js-in-favor">
    <% if user_voted_for %>
      <div class="supported">
        <%= t("budget.investments.investment.already_supported") %>
      </div>
    <% elsif investment.budget.selecting? %>

      <%= link_to vote_url,
          class: "button button-support small expanded",
          title: t('budget.investments.investment.support_title'),
          method: "post",
          remote: true,<commit_msg>Uses should_show_votes? instead of budget.selecting?<commit_after><% reason = investment.reason_for_not_being_selectable_by(current_user) %>
<% voting_allowed = true unless reason.presence == :not_voting_allowed %>
<% user_voted_for = voted_for?(investment_votes, investment) %>

<div class="supports">

  <span class="total-supports <%= 'no-button' unless voting_allowed || user_voted_for %>">
    <%= t("budget.investments.investment.supports", count: investment.total_votes) %>
  </span>

  <div class="in-favor js-in-favor">
    <% if user_voted_for %>
      <div class="supported">
        <%= t("budget.investments.investment.already_supported") %>
      </div>
    <% elsif investment.should_show_votes? %>

      <%= link_to vote_url,
          class: "button button-support small expanded",
          title: t('budget.investments.investment.support_title'),
          method: "post",
          remote: true,
{'fraction_non_alphanumeric': 0.14732142857142858, 'fraction_numerical': 0.0, 'mean_word_length': 3.9944289693593316, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 31, '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': '7650342', 'n_tokens_mistral': 623, 'n_tokens_neox': 570, 'n_words': 97}