<commit_before>



<div class="row">
<!--
  <div class="small-3 columns" id="event-index-sidebar">
    <h5><b>Events I'm Organizing:</b></h3>
    <div class="created-events-index-sidebar-div">
      <%= link_to "+  Create an Event", new_event_path,id: "event-create-link"  %>
      <% @created_events.each do |event| %>
        <div class="created-event-index-sidebar-div">
          <%= link_to event.title, event_path(event) %>
          <p>Location: <%= event.location%></p>
          <p class="time-event-index-sidebar">Time: <%= event.date.strftime("%B #{event.date.day.ordinalize}") %>, <%= event.time.strftime('%-I:%M%p') %></p>
          <p class="games-event-index-sidebar">
            Games: <% event.games.each do |game| %>
              <%= game.name %>
            <% end %>
          </p>
        </div>
        <span class="side-bar-linebreak"></span>
      <% end %>
    </div>

    <h5><b>Events I'm attending:</b></h5>
      <% @attended_events.each do |event| %>
        <div class="attending-event-index-sidebar-div">
          <%= link_to event.title, event_path(event) %>
          <p>Location: <%= event.location%></p>
          <p class="time-event-index-sidebar">Time: <%= event.date.strftime("%B #{event.date.day.ordinalize}") %>, <%= event.time.strftime('%-I:%M%p') %></p>
          <p class="games-event-index-sidebar">
            Games: <% event.games.each do |game| %>
              <%= game.name %>
            <% end %>
          </p>
        </div>
        <span class="side-bar-linebreak"></span>
      <% end %>

  </div> -->

<!-- end sidebar -->

  <div id="event-create-ajax-div">
  </div>

  <div class="small-9 columns">

    <% @events.each do |event| %>

    <div class="posted-event-container">
      <div class="event-index-picture"></div>
      <p class="event-index-title"><%= link_to event.title, event_path(event) %></p>

      <p class="event-index-location"><b>Location:</b> <%= event.location %></p>

      <p class="event-index-games"><b>Games:</b>
        <% event.games.each do |game|%>
          <%=game.name%>
        <%end%>
      </p>

      <p class="event-index-date"><b>Date:</b> <%= event.date.strftime("%B #{event.date.day.ordinalize}") %></p>

      <p class="event-index-time"><b>Time:</b> <%= event.time.strftime('%-I:%M%p') %></p>

      <p class="event-index-limit"><b>Max Participants:</b> <%= event.limit %></p>

      <p class="event-index-user"><b>Created by:</b> <%= link_to User.find(event.user_id).user_name, user_path(event.user_id) %></p>

      <div class="event-index-join"><%= link_to "Join Event!", event_path(event), method: :put, class: "button" %></div>
    </div>

    <% end %>
  </div>

</div><commit_msg>change view to render index partial<commit_after><%= render 'index' %>

<!--
  <div class="small-3 columns" id="event-index-sidebar">
    <h5><b>Events I'm Organizing:</b></h3>
    <div class="created-events-index-sidebar-div">
      <%= link_to "+  Create an Event", new_event_path,id: "event-create-link"  %>
      <% @created_events.each do |event| %>
        <div class="created-event-index-sidebar-div">
          <%= link_to event.title, event_path(event) %>
          <p>Location: <%= event.location%></p>
          <p class="time-event-index-sidebar">Time: <%= event.date.strftime("%B #{event.date.day.ordinalize}") %>, <%= event.time.strftime('%-I:%M%p') %></p>
          <p class="games-event-index-sidebar">
            Games: <% event.games.each do |game| %>
              <%= game.name %>
            <% end %>
          </p>
        </div>
        <span class="side-bar-linebreak"></span>
      <% end %>
    </div>

    <h5><b>Events I'm attending:</b></h5>
      <% @attended_events.each do |event| %>
        <div class="attending-event-index-sidebar-div">
          <%= link_to event.title, event_path(event) %>
          <p>Location: <%= event.location%></p>
          <p class="time-event-index-sidebar">Time: <%= event.date.strftime("%B #{event.date.day.ordinalize}") %>, <%= event.time.strftime('%-I:%M%p') %></p>
          <p class="games-event-index-sidebar">
            Games: <% event.games.each do |game| %>
              <%= game.name %>
            <% end %>
          </p>
        </div>
        <span class="side-bar-linebreak"></span>
      <% end %>

  </div> -->

<!-- end sidebar -->
{'fraction_non_alphanumeric': 0.22722003246000463, 'fraction_numerical': 0.002550428935775562, 'mean_word_length': 2.4706355591311344, 'pattern_counts': {'":': 0, '<': 160, '<?xml version=': 0, '>': 160, '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': '3387949', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1459, 'n_words': 237}