<commit_before><%inherit file="local:templates.master"/>

%for user in data:
  ${user}'s data:
  <div>
    <div style='width:50%; display:inline-block'>
      Score:<br/>
      <span style='font-size:48px'>${'%.2f' % data[user]['score']}</span>
    </div>
    <div style='width:50%; float:right'>
      Average lifespan of a pack: ${'%.2f' % data[user]['lifespan']} days<br/>
      Cost per month: $${'%.2f' % data[user]['cost']}<br/>
      Time since last smoke: ${data[user]['now']}<br/>
      Longest time since between smokes: ${data[user]['best']}<br/>
    </div>
  </div>
  <table style='width:100%'><tr>
  <td style='width:30%'>
    <h2>Recent 5 Excuses:</h2>
    %for excuse in data[user]['latest']:
      ${excuse[0]} (${excuse[1]})<br/>
    %endfor
  </td>
  <td style='width:30%'>
    <h2>Random 5 Excuses:</h2>
    %for excuse in data[user]['random']:
      ${excuse[0]} (${excuse[1]})<br/>
    %endfor
  </td>
  <td style='width:30%'>
    <h2>Top 5 Excuses:</h2>
    %for count, excuses in data[user]['top']:
      ${', '.join(excuses)} (${count})<br/>
    %endfor
  </td>
  </tr></table><commit_msg>That's what <th> is for<commit_after><%inherit file="local:templates.master"/>

%for user in data:
  ${user}'s data:
  <div>
    <div style='width:50%; display:inline-block'>
      Score:<br/>
      <span style='font-size:48px'>${'%.2f' % data[user]['score']}</span>
    </div>
    <div style='width:50%; float:right'>
      Average lifespan of a pack: ${'%.2f' % data[user]['lifespan']} days<br/>
      Cost per month: $${'%.2f' % data[user]['cost']}<br/>
      Time since last smoke: ${data[user]['now']}<br/>
      Longest time since between smokes: ${data[user]['best']}<br/>
    </div>
  </div>
  <table style='width:100%'><tr>
    <th style='width:30%'>
      Recent 5 Excuses:
    </th>
    <th style='width:30%'>
      Random 5 Excuses:
    </th>
    <th style='width:30%'>
      Top 5 Excuses:
    </th>
  </tr><tr>
    <td>
      %for excuse in data[user]['latest']:
        ${excuse[0]} (${excuse[1]})<br/>
      %endfor
    </td>
    <td>
      %for excuse in data[user]['random']:
        ${excuse[0]} (${excuse[1]})<br/>
      %endfor
    </td>
    <td>
      %for count, excuses in data[user]['top']:
        ${', '.join(excuses)} (${count})<br/>
      %endfor
    </td>
  </tr></table>
{'fraction_non_alphanumeric': 0.24373379429559205, 'fraction_numerical': 0.024200518582541054, 'mean_word_length': 3.0401396160558463, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '3370985', 'n_tokens_mistral': 925, 'n_tokens_neox': 886, 'n_words': 188}