<commit_before><div class="large-8 columns"><%= yield %></div>
<div class="large-4 columns">
  <section>
    <h2>Contact John</h2>
    <p>
      You can look for me as @jphager2 almost anywhere. 
      If you can't find me there, just 
      <%= mail_to "<EMAIL>", "send me an email" %>
      .
    </p>
  </section>

  <section>
    <h2>Github Activity</h2>
    
    <div class="row">
      <div class="large-12 columns">
        
        <table>
          <thead>
          </thead>
          <tbody>
            <% @events.each do |event| %>
              <tr>
                <% type = event['type'].sub('Event', '').downcase %>
                <% case type %>
                <% when /push/ %>
                  <% commit = event["payload"]["commits"].last %>
                  <% message = commit["message"] %>
                <% else %>
                  <% commit = event["payload"]["issue"] %>
                  <% message = "##{commit['number']}: #{commit['title']}" %>
                  <% message << "; labels: #{commit['labels'].join(', ')}" unless commit['labels'].empty? %>
                <% end %>

                <% commit_path = commit["url"].sub('//api','//www').sub('/repos/','/')%>

                <td class="code">
                  <% out = "" %>
                  <% out << DateTime.parse(event['created_at']).strftime("On %a, %d %b at %I:%M%p") << ",\s" %>
                  <% out << "<span class=\"red\">John</span>: <span class=\"yellow\">" << type << "</span>\s=><br><span class=\"green\">" %>
                  <% out << event["repo"]["name"] << "</span>" %>
<commit_msg>hot fix for switch for watch event in github<commit_after><div class="large-8 columns"><%= yield %></div>
<div class="large-4 columns">
  <section>
    <h2>Contact John</h2>
    <p>
      You can look for me as @jphager2 almost anywhere. 
      If you can't find me there, just 
      <%= mail_to "<EMAIL>", "send me an email" %>
      .
    </p>
  </section>

  <section>
    <h2>Github Activity</h2>
    
    <div class="row">
      <div class="large-12 columns">
        
        <table>
          <thead>
          </thead>
          <tbody>
            <% @events.each do |event| %>
              <tr>
                <% type = event['type'].sub('Event', '').downcase %>
                <% case type %>
                <% when /push/ %>
                  <% commit = event["payload"]["commits"].last %>
                  <% message = commit["message"] %>
                <% when /issue/ %>
                  <% commit = event["payload"]["issue"] %>
                  <% message = "##{commit['number']}: #{commit['title']}" %>
                  <% message << "; labels: #{commit['labels'].join(', ')}" unless commit['labels'].empty? %>
                <% else %>
                  <% commit = "" %>
                  <% message = "" %>
                  <% commit_path = '#' %>
                <% end %>

                <% commit_path ||= commit["url"].sub('//api','//www').sub('/repos/','/')%>

                <td class="code">
                  <% out = "" %>
                  <% out << DateTime.parse(event['created_at']).strftime("On %a, %d %b at %I:%M%p") << ",\s" %>
                  <% out << "<span class=\"red\">John</span>: <span class=\"yellow\">" << type << "</span>\s=><br><span class=\"green\">" %>
                  <% out << event["repo"]["name"] << "</span>" %>

{'fraction_non_alphanumeric': 0.22117369507519904, 'fraction_numerical': 0.005308168681804777, 'mean_word_length': 1.5893129770992367, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4531536', 'n_tokens_mistral': 1091, 'n_tokens_neox': 967, 'n_words': 211}