<commit_before><% size = @events.size %>
<% count = 1 %>
<% more = size - 4 %>
<% @more_events = [] %>
<% for event in @events %>
  <% if count < 5 %>
    <div class="event">
      <span class="time" title="ends at <%= event.read_attribute(event.class.calendar_end_dt_field).to_s(:time) %>">
        <%=h event.read_attribute(event.class.calendar_start_dt_field).to_s(:time) %>
      </span>
      <span class="label"><%=h event.read_attribute(event.class.calendar_event_title_field) %></span>
    </div>    
  <% elsif count == 5 %>
    <% if more < 2 %>
      <div class="event">
        <span class="time"><%=h event.read_attribute(event.class.calendar_start_dt_field).to_s(:time) %></span>
        <span class="label"><%=h event.read_attribute(event.class.calendar_event_title_field) %></span>
      </div>
    <% else %>
      <div class="more">
        <%= link_to "+#{more} more", '#', :onclick => "showmore" %>
      </div>
    <% @more_events << event %>
    <% end %>
  <% elsif count > 5 %>
    <% @more_events << event %>
  <% end %>
  <% count += 1 %>
<% end %>

<% unless @more_events.blank? %>
<div id="more" class="more_events">
  <% for mevent in @more_events %>
  <div class="event">
    <span class="time" title="ends at <%= "#{mevent.read_attribute(event.class.calendar_end_dt_field).to_s(:time)}" %>">
      <%=h mevent.read_attribute(event.class.calendar_start_dt_field).to_s(:time) %>
    </span>
    <span class="label"><%=h mevent.read_attribute(event.class.calendar_event_title_field) %></span>
  </div><commit_msg>made the more day info div show above the calendar<commit_after><% size = @events.size %>
<% count = 1 %>
<% more = size - 4 %>
<% @more_events = [] %>
<% for event in @events %>
  <% if count < 5 %>
    <div class="event">
      <span class="time" title="ends at <%= event.read_attribute(event.class.calendar_end_dt_field).to_s(:time) %>">
        <%=h event.read_attribute(event.class.calendar_start_dt_field).to_s(:time) %>
      </span>
      <span class="label"><%=h event.read_attribute(event.class.calendar_event_title_field) %></span>
    </div>    
  <% elsif count == 5 %>
    <% if more < 2 %>
      <div class="event">
        <span class="time"><%=h event.read_attribute(event.class.calendar_start_dt_field).to_s(:time) %></span>
        <span class="label"><%=h event.read_attribute(event.class.calendar_event_title_field) %></span>
      </div>
    <% else %>
      <div class="more">
        <%= link_to "+#{more} more", '#', :onclick => "showmore" %>
      </div>
    <% @more_events << event %>
    <% end %>
  <% elsif count > 5 %>
    <% @more_events << event %>
  <% end %>
  <% count += 1 %>
<% end %>

<% unless @more_events.blank? %>
<div id="more" class="more_events" style="position: relative; z-index: 4;">
  <% for mevent in @more_events %>
  <div class="event">
    <span class="time" title="ends at <%= "#{mevent.read_attribute(event.class.calendar_end_dt_field).to_s(:time)}" %>">
      <%=h mevent.read_attribute(event.class.calendar_start_dt_field).to_s(:time) %>
    </span>
    <span class="label"><%=h mevent.read_attribute(event.class.calendar_event_title_field) %></span>
  </div>
{'fraction_non_alphanumeric': 0.2070275403608737, 'fraction_numerical': 0.004748338081671415, 'mean_word_length': 3.6402349486049927, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 103, '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': '2129238', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1084, 'n_words': 198}