<commit_before><% 
  title ||= t('titles.events', "Events")
  display_count ||= 3
  display_count += 1 if event_list.length == display_count + 1
  period ||= nil
  show_context ||= false
  show_more ||= true
  upcoming ||= false
  is_recent_feedback ||= false
  partial = is_recent_feedback ? 'courses/recent_feedback' : 'courses/recent_event' 
  contexts_to_link_to ||= nil
%>
<div class="events_list">
  <h2><a class='event-list-view-calendar small-calendar' href='<%= calendar_url_for(contexts_to_link_to) %>'><%= t 'links.view_calendar', "View Calendar" %></a> <%= title %></h2>
  <ul class="right-side-list events">
  <% if !event_list || event_list.empty? %>
    <li>
      <small>
        <% if period == :one_week %>
          <%= t('nothing_one_week', 'Nothing for the next week') %>
        <% elsif period == :two_weeks %>
          <%= t('nothing_two_weeks', 'Nothing for the next two weeks') %>
        <% else %>
          <%= t('nothing_for_now', 'Nothing for now') %>
        <% end %>
      </small>
    </li>
  <% else %>    <commit_msg>formatting changes to event_lists<commit_after><% 
  title ||= t('titles.events', "Events")
  display_count ||= 3
  display_count += 1 if event_list.length == display_count + 1
  period ||= nil
  show_context ||= false
  show_more ||= true
  upcoming ||= false
  is_recent_feedback ||= false
  partial = is_recent_feedback ? 'courses/recent_feedback' : 'courses/recent_event' 
  contexts_to_link_to ||= nil
%>
<div class="events_list">
  <h2><% unless is_recent_feedback %><a class='event-list-view-calendar small-calendar' href='<%= calendar_url_for(contexts_to_link_to) %>'><%= t 'links.view_calendar', "View Calendar" %></a><% end %> <%= title %></h2>
  <ul class="right-side-list events">
  <% if !event_list || event_list.empty? %>
    <li>
      <small>
        <% if period == :one_week %>
          <%= t('nothing_one_week', 'Nothing for the next week') %>
        <% elsif period == :two_weeks && !is_recent_feedback %>
          <%= t('nothing_two_weeks', 'Nothing for the next two weeks') %>
        <% else %>
          <%= t('nothing_for_now', 'Nothing for now') %>
        <% end %>
      </small>
    </li>
  <% else %>    
{'fraction_non_alphanumeric': 0.17829457364341086, 'fraction_numerical': 0.004559963520291838, 'mean_word_length': 3.3445544554455444, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '7643274', 'n_tokens_mistral': 819, 'n_tokens_neox': 737, 'n_words': 164}