<commit_before><?python
import tg
?>

<div xmlns="http://www.w3.org/1999/xhtml" 
     xmlns:py="http://genshi.edgewall.org/"
     id="${id}">

  <div class="list header-list" py:if="builds_list">
     <h3>Builds</h3>
     ${children.pager.display(value_for(children.pager), 
                              **args_for(children.pager))}
     <table>
        <thead>
          <tr>
            <th>Build ID</th>
            <th>Name</th>
            <th>Built By</th>
            <th>Time</th>
            <th>Finished</th>
            <th>State</th>
            <th>Release</th>
          </tr>
        </thead>
        <tbody>         
         <span py:for="i, build in enumerate(builds_list)" 
              py:with="build_id=str(build['build_id']); 
                       build_state=str(build['state']); 
                       task_id=str(build['task_id']); 
                       message_id='message_' + build_id;
                       nvr=str(build['nvr']);
                       odd_or_even=i%2 and 'row-odd' or 'row-even'"
                       >
            <tr class="${odd_or_even}">
              <td>${build_id}</td>
          
    	      <td py:with="menu_id='menu_' + build_id" id="${build_id}_name_col"> 
                  <div class="${odd_or_even}">
                    <span class="package-name"> 
                      <a href="https://koji.fedoraproject.org/koji/buildinfo?buildID=${build_id}" target="_blank">${nvr}</a>
                    </span>
                      <ul id="${menu_id}" class="hover_menu">
                        <li><a href="https://koji.fedoraproject.org/koji/buildinfo?buildID=${build_id}" target="_blank">View package details in Koji</a></li>
                      </ul>
                    <script type="text/x-myfedora-extpoint">
                    {
                      'type': 'build_details',
                      'placeholder_id': '${menu_id}',
                      'build_id': '${build_id}',
                      'task_id': '${task_id}',
                      'package_nvr':'${nvr}',
                      'build_state': ${build_state},
                      'ui': 'hover_menu',
                      'show_effect': 'slideDown("fast")',
                      'hide_effect': 'slideUp("fast")',
                      'run': 'whenReady'
                    }
                    </script>
                  </div>
                  
    	      </td>
              <td py:with="user = str(build['owner_name'])" ><commit_msg>link to koji via http instead of https because of wierd certificate interactions<commit_after><?python
import tg
?>

<div xmlns="http://www.w3.org/1999/xhtml" 
     xmlns:py="http://genshi.edgewall.org/"
     id="${id}">

  <div class="list header-list" py:if="builds_list">
     <h3>Builds</h3>
     ${children.pager.display(value_for(children.pager), 
                              **args_for(children.pager))}
     <table>
        <thead>
          <tr>
            <th>Build ID</th>
            <th>Name</th>
            <th>Built By</th>
            <th>Time</th>
            <th>Finished</th>
            <th>State</th>
            <th>Release</th>
          </tr>
        </thead>
        <tbody>         
         <span py:for="i, build in enumerate(builds_list)" 
              py:with="build_id=str(build['build_id']); 
                       build_state=str(build['state']); 
                       task_id=str(build['task_id']); 
                       message_id='message_' + build_id;
                       nvr=str(build['nvr']);
                       odd_or_even=i%2 and 'row-odd' or 'row-even'"
                       >
            <tr class="${odd_or_even}">
              <td>${build_id}</td>
          
    	      <td py:with="menu_id='menu_' + build_id" id="${build_id}_name_col"> 
                  <div class="${odd_or_even}">
                    <span class="package-name"> 
                      <a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=${build_id}" target="_blank">${nvr}</a>
                    </span>
                      <ul id="${menu_id}" class="hover_menu">
                        <li><a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=${build_id}" target="_blank">View package details in Koji</a></li>
                      </ul>
                    <script type="text/x-myfedora-extpoint">
                    {
                      'type': 'build_details',
                      'placeholder_id': '${menu_id}',
                      'build_id': '${build_id}',
                      'task_id': '${task_id}',
                      'package_nvr':'${nvr}',
                      'build_state': ${build_state},
                      'ui': 'hover_menu',
                      'show_effect': 'slideDown("fast")',
                      'hide_effect': 'slideUp("fast")',
                      'run': 'whenReady'
                    }
                    </script>
                  </div>
                  
    	      </td>
              <td py:with="user = str(build['owner_name'])" >
{'fraction_non_alphanumeric': 0.15974567852175642, 'fraction_numerical': 0.0031790184780449036, 'mean_word_length': 1.3144827586206898, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '4260471', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1457, 'n_words': 208}