<commit_before><html>
<title>Tools PRs that require review</title>
<head>
<script src='./web_libraries/jquery.min.js' type='text/javascript'></script>
<script src='./web_libraries/sorttable.js'></script><link rel='stylesheet' href='./web_libraries/bootstrap.min.css'>
<script src='./web_libraries/DataTables/datatables.js'></script><link rel='stylesheet' href='./web_libraries/DataTables/datatables.css'>
<script type="text/javascript">
    $(document).ready(function() {
    // Setup - add a text input to each footer cell
    $('#tools thead tr td').each( function () {
        var title = $(this).text();
        $(this).append( '<input class="something" type="text" placeholder="Search '+title+'" />' );
    } );
 
    // DataTable
    var table = $('#tools').DataTable();
 
    // Apply the search


    table.columns().every( function () {
        var that = this;
        $( 'input.something', this.header() ).on( 'keyup change clear', function () {
            if ( that.search() !== this.value ) {
                that
                    .search( this.value )
                    .draw();  
            }
        } );
    } );

    $( 'input.something' ).on('click', function(e){
      e.stopPropagation();
      e.preventDefault();
    })
} );
</script>
<style>
#tools {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
   font-size: 18px;
  border-collapse: collapse;
  width: 50%;


}
.word_break {
  word-break: break-all;
  width: auto;
}
.button {
         background-color: #ddd;
         border: none;
         color: white;
         padding: 10px 20px;
         text-align: center;
         text-decoration: none;
         display: inline-block;
         font-size: 20px;
         margin: 4px 2px;
         cursor: pointer;
         }



#tools td, #reviews th {
  border: 1px solid #ddd;
  padding: 8px;
}

#tools tr:nth-child(even){background-color: #f2f2f2;

 }

#tools tr:hover {background-color: #ddd;
 }

#tools th {
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: left;
  background-color: #cfcfcf;
  color: black;
 
}
</style>
</head>
<body>
<h1 style="text-align:center;">Tools PRs that require review</h1>
<table border='1' id='tools' style='width:100%' class='sortable table table-hover'> 
 <a href="https://puppetlabs.github.io/community_management/report_tools60.html" class="button">30 Days</a>
 <a href="https://puppetlabs.github.io/community_management/report_tools60.html" class="button">60 Days</a>
 <a href="https://puppetlabs.github.io/community_management/report_tools90.html" class="button">90 Days</a>
<tr>
<% open_prs.first.keys.each do |header| %>
  <% if header != :address %>
    <td> <%= header %></td> 
  <% end %> 
<% end %>
</tr>

<% open_prs.each do |row| %>
  <tr>
  <% row.each do |key, value| %>
  <%  if key == :pr %>
      <td><a target ="_blank" href='<%= row[:address] %>/pull/<%= value %>'><%= value %></a></td>
  <%  elsif key == :tool%>
      <td><a target ="_blank" href='<%= row[:address] %>'><%= value %></a></td>
  <%  else %>
      <% if key != :address %>
        <td><%= value %></td>
      <% end %>
  <%  end %>
  <% end %>
  </tr>
<% end %> 
</table>
</body>
</html><commit_msg>Solve nil issue for tools_report<commit_after><html>
<title>Tools PRs that require review</title>
<head>
<script src='./web_libraries/jquery.min.js' type='text/javascript'></script>
<script src='./web_libraries/sorttable.js'></script><link rel='stylesheet' href='./web_libraries/bootstrap.min.css'>
<script src='./web_libraries/DataTables/datatables.js'></script><link rel='stylesheet' href='./web_libraries/DataTables/datatables.css'>
<script type="text/javascript">
    $(document).ready(function() {
    // Setup - add a text input to each footer cell
    $('#tools thead tr td').each( function () {
        var title = $(this).text();
        $(this).append( '<input class="something" type="text" placeholder="Search '+title+'" />' );
    } );
 
    // DataTable
    var table = $('#tools').DataTable();
 
    // Apply the search


    table.columns().every( function () {
        var that = this;
        $( 'input.something', this.header() ).on( 'keyup change clear', function () {
            if ( that.search() !== this.value ) {
                that
                    .search( this.value )
                    .draw();  
            }
        } );
    } );

    $( 'input.something' ).on('click', function(e){
      e.stopPropagation();
      e.preventDefault();
    })
} );
</script>
<style>
#tools {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
   font-size: 18px;
  border-collapse: collapse;
  width: 50%;


}
.word_break {
  word-break: break-all;
  width: auto;
}
.button {
         background-color: #ddd;
         border: none;
         color: white;
         padding: 10px 20px;
         text-align: center;
         text-decoration: none;
         display: inline-block;
         font-size: 20px;
         margin: 4px 2px;
         cursor: pointer;
         }



#tools td, #reviews th {
  border: 1px solid #ddd;
  padding: 8px;
}

#tools tr:nth-child(even){background-color: #f2f2f2;

 }

#tools tr:hover {background-color: #ddd;
 }

#tools th {
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: left;
  background-color: #cfcfcf;
  color: black;
 
}
</style>
</head>
<body>
<h1 style="text-align:center;">Tools PRs that require review</h1>
<table border='1' id='tools' style='width:100%' class='sortable table table-hover'> 
 <a href="https://puppetlabs.github.io/community_management/report_tools30.html" class="button">30 Days</a>
 <a href="https://puppetlabs.github.io/community_management/report_tools60.html" class="button">60 Days</a>
 <a href="https://puppetlabs.github.io/community_management/report_tools90.html" class="button">90 Days</a>
<tr>

<% if open_prs.empty?  %>
<% puts "nothing to do here, no prs found" %>
<% else %>
<% open_prs.first.keys.each do |header| %>
  <% if header != :address %>
    <td> <%= header %></td> 
     <% end %>
  <% end %> 
  <% end %>
</tr>
<% open_prs.each do |row| %>
  <tr>
  <% row.each do |key, value| %>

  <%  if key == :pr %>
      <td><a target ="_blank" href='<%= row[:address] %>/pull/<%= value %>'><%= value %></a></td>
  <%  elsif key == :tool%>
      <td><a target ="_blank" href='<%= row[:address] %>'><%= value %></a></td>
  <%  else %>
      <% if key != :address %>
        <td><%= value %></td>
      <% end %>
  <%  end %>
  <% end %>
  </tr>
<% end %> 
</table>
</body>
</html>
{'fraction_non_alphanumeric': 0.19736842105263158, 'fraction_numerical': 0.011455108359133126, 'mean_word_length': 2.820816085156712, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 143, 'https://': 6, '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': '454763', 'n_tokens_mistral': 2386, 'n_tokens_neox': 2206, 'n_words': 481}