<commit_before><table id="table-events" class="table table-hover table-sm">
  <thead class="thead-inverse">
    <tr>
      <th class="col-xs">Evento</th>
      <th class="col-xs">Quando</th>
      <th class="col-xs">Dove</th>
      <th class="col-xs">Chi</th>
      <th class="col-xs"></th>
    </tr>
  </thead>

  <tbody>
    <div class="event">
      <% events.each do |event| %>
        <% if event.current? %>
          <tr id="future" bgcolor="#FF8A65">
        <% elsif event_type == :future %>
          <tr id="future" class="table-success">
        <% elsif event_type == :old %>
          <tr id="old" class="table-warning">
        <% end %>

        <td class="col-xs">
          <%= link_to event.name, "#", { title: event.name, data: {toggle: "modal", target: '#' + event.uid}} %>
        </td>
        <% if event_type == :future %>
          <td class="col-xs"><%= l event.starts_at, format: :rfc822_short %> <br> <%= l event.ends_at, format: :rfc822_short %></td>
        <% elsif event_type == :old %>
          <td class="col-xs"><%= l event.starts_at, format: :rfc822 %></td>
        <% end %>

        <td class="col-xs"><%= event.location_name %></td>
        <td class="col-xs"><%= event.organiser %></td>
        <td class="col-xs">
          <%= link_to fa_icon("external-link"), event.external_link, :target => "_blank" %>
          <% if event_type == :future and event.coord %>
            <button coordinates-id="<%= event.coord %>" class="center_map_link"><i class="fa fa-map-marker"></i></button>
          <% end %><commit_msg>better colors for events tables<commit_after><table id="table-events" class="table table-striped table-hover table-sm">
  <thead class="thead-inverse">
    <tr>
      <th class="col-xs">Evento</th>
      <th class="col-xs">Quando</th>
      <th class="col-xs">Dove</th>
      <th class="col-xs">Chi</th>
      <th class="col-xs"></th>
    </tr>
  </thead>

  <tbody>
    <div class="event">
      <% events.each do |event| %>
        <% if event.current? %>
          <tr id="future" class="table-success"">
        <% elsif event_type == :future %>
          <tr id="future">
        <% elsif event_type == :old %>
          <tr id="old" >
        <% end %>

        <td class="col-xs">
          <%= link_to event.name, "#", { title: event.name, data: {toggle: "modal", target: '#' + event.uid}} %>
        </td>
        <% if event_type == :future %>
          <td class="col-xs"><%= l event.starts_at, format: :rfc822_short %> <br> <%= l event.ends_at, format: :rfc822_short %></td>
        <% elsif event_type == :old %>
          <td class="col-xs"><%= l event.starts_at, format: :rfc822 %></td>
        <% end %>

        <td class="col-xs"><%= event.location_name %></td>
        <td class="col-xs"><%= event.organiser %></td>
        <td class="col-xs">
          <%= link_to fa_icon("external-link"), event.external_link, :target => "_blank" %>
          <% if event_type == :future and event.coord %>
            <button coordinates-id="<%= event.coord %>" class="center_map_link"><i class="fa fa-map-marker"></i></button>
          <% end %>
{'fraction_non_alphanumeric': 0.2133676092544987, 'fraction_numerical': 0.006748071979434447, 'mean_word_length': 2.4550499445061043, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 113, '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': '1069576', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1051, 'n_words': 221}