<commit_before><h1>Instrumentation</h1>

<p>Events (<%= @events.size %>)</p>

<table class="table">
  <tr>
    <th>Name</th>
    <th>Time</th>
    <th>Duration</th>
    <th>Payload</th>
    <th>TransactionID</th>
  </tr>
  <% @events.reverse.each do |event| -%>
      <tr>
        <td><%= event.name %></td>
        <td><%= event.time.to_s(:db) %></td>
        <td><%= number_with_precision(event.duration) %></td>
        <td><%= truncate(event.payload.to_s, length: 250) %></td>
        <td><%= event.transaction_id %></td>
      </tr>
  <% end -%>
</table><commit_msg>handle payload not captured case with a warning<commit_after><h1>Instrumentation</h1>

<p>Events (<%= @events.size %>)</p>

<table class="table">
  <tr>
    <th>Name</th>
    <th>Time</th>
    <th>Duration</th>
    <th>Payload</th>
    <th>TransactionID</th>
  </tr>
  <% @events.reverse.each do |event| -%>
      <tr>
        <td><%= event.name %></td>
        <td><%= event.time.to_s(:db) %></td>
        <td><%= number_with_precision(event.duration) %></td>
        <td><%= truncate(event.payload.to_s, length: 250) rescue 'Payload not captured' %></td>
        <td><%= event.transaction_id %></td>
      </tr>
  <% end -%>
</table>
{'fraction_non_alphanumeric': 0.24378109452736318, 'fraction_numerical': 0.008291873963515755, 'mean_word_length': 2.8685897435897436, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '5317383', 'n_tokens_mistral': 497, 'n_tokens_neox': 468, 'n_words': 84}