<commit_before>
<h2>All Questions</h2>

<% @questions.each do |question| %>
  <div class="question-container">
    <div class="question-stats">
    
      <div class="votes">0</div>
      <div class="votes-label">votes</div>

      <div class="answers">
        <%= question.answers.count %>
      </div>
      <div class="answers-label">answers</div>

      <div class="views">0</div>
      <div class="views-label">views</div>

    </div>

    <%= link_to question.title, question_path(question) %>

  </div>
  <% end %><commit_msg>Implement vote count on questions index page<commit_after>
<h2>All Questions</h2>

<% @questions.each do |question| %>
  <div class="question-container">
    <div class="question-stats">

      <div class="votes"><%= question.sum_of_votes %></div>
      <div class="votes-label">votes</div>

      <div class="answers">
        <%= question.answers.count %>
      </div>
      <div class="answers-label">answers</div>

      <div class="views">0</div>
      <div class="views-label">views</div>

    </div>

    <%= link_to question.title, question_path(question) %>

  </div>
  <% end %>
{'fraction_non_alphanumeric': 0.1925133689839572, 'fraction_numerical': 0.006238859180035651, 'mean_word_length': 3.0985401459854014, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 48, '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': '3939441', 'n_tokens_mistral': 415, 'n_tokens_neox': 378, 'n_words': 68}