<commit_before><% content_for :main_content do %>
  <%= javascript_include_tag('public_views/group_carousel.js') %>

  <% images = @poster_links %>
  <div id="carousel" class="carousel slide" data-ride="carousel" data-interval="false">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <% images.each_with_index do |image, index| %>
        <% if !image.blank? %>
          <li data-target="#carousel" data-slide-to="<%= index %>" class="<%= index == 0 ? 'active' : '' %>"></li>
        <% end %>
      <% end %>
    </ol>
    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <% images.each_with_index do |image, index| %>
        <% if !image.blank? %>
          <div class="item <%= index == 0 ? 'active' : '' %>">
            <img src="<%= image %>" alt="<%= index %> Image">
            <div class="carousel-caption d-md-block">
              <h5 class="info"><%= @team_names[index]%></h5>
            </div>
          </div>
        <% end %>
      <% end %>
    </div>
    <!-- Controls -->
    <a class="left carousel-control" href="#carousel" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span >
    </a>
    <a class="right carousel-control" href="#carousel" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
<% end %><commit_msg>added counter to make first element of carousel active<commit_after><% content_for :main_content do %>
  <%= javascript_include_tag('public_views/group_carousel.js') %>

  <% images = @poster_links %>
  <div id="carousel" class="carousel slide" data-ride="carousel" data-interval="false">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <% counter = 0 %>
      <% images.each_with_index do |image, index| %>
        <% if !image.blank? %>
          <li data-target="#carousel" data-slide-to="<%= index %>" class="<%= index - counter == 0 ? 'active' : '' %>"></li>
        <% else %>
          <% counter += 1 %>
        <% end %>
      <% end %>
    </ol>
    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <% counter = 0 %>
      <% images.each_with_index do |image, index| %>
        <% if !image.blank? %>
          <div class="item <%= index - counter == 0 ? 'active' : '' %>">
            <img src="<%= image %>" alt="<%= index %> Image">
            <div class="carousel-caption d-md-block">
              <h5 class="info"><%= @team_names[index]%></h5>
            </div>
          </div>
        <% else %>
          <% counter += 1 %>
        <% end %>
      <% end %>
    </div>
    <!-- Controls -->
    <a class="left carousel-control" href="#carousel" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span >
    </a>
    <a class="right carousel-control" href="#carousel" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.21007105344454743, 'fraction_numerical': 0.0037071362372567192, 'mean_word_length': 2.593784683684795, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '671441', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1023, 'n_words': 214}