<commit_before>
<%= render :partial => 'test_button_handler' %>
<%= render :partial => 'filename_support' %>

<script type="text/javascript"><!--

$(function() {

  cd.storeIncomingFileHashes();
  cd.storeOutgoingFileHashes();

  var filenames = cd.filenames();
  $.each(filenames, function(index,filename) {
    var file = cd.fileContentFor(filename);
    cd.bindHotKeys(file);
    if (filename !== 'output') {
      cd.tabber(file);
    }
  });
  cd.bindAllLineNumbers();
  cd.rebuildFilenameList();

  var filename = filenames[cd.nonBoringFilenameIndex(filenames)];
  cd.loadFile(filename);

});

//--></script>

<%= form_tag( { :action => 'run_tests',
                :id     => @kata.id,
                :avatar => @avatar.name
              } ) do %>

  <div id="kata-page">

    <%= render :partial => 'test_spinner' %>
    <%= render :partial => 'current_filename' %>
    <%= render :partial => 'file_hashes_incoming' %>
    <%= render :partial => 'file_hashes_outgoing' %>

    <table>

      <tr class="valign-top">
        <td>
          <%= render :partial => 'test_button' %>
        </td>
        <td>
          <div id="traffic-lights">
            <%= render :partial => 'traffic_lights' %>
          </div>
        </td>
      </tr>

      <tr class="valign-top"><commit_msg>right align the test button<commit_after>
<%= render :partial => 'test_button_handler' %>
<%= render :partial => 'filename_support' %>

<script type="text/javascript"><!--

$(function() {

  cd.storeIncomingFileHashes();
  cd.storeOutgoingFileHashes();

  var filenames = cd.filenames();
  $.each(filenames, function(index,filename) {
    var file = cd.fileContentFor(filename);
    cd.bindHotKeys(file);
    if (filename !== 'output') {
      cd.tabber(file);
    }
  });
  cd.bindAllLineNumbers();
  cd.rebuildFilenameList();

  var filename = filenames[cd.nonBoringFilenameIndex(filenames)];
  cd.loadFile(filename);

});

//--></script>

<%= form_tag( { :action => 'run_tests',
                :id     => @kata.id,
                :avatar => @avatar.name
              } ) do %>

  <div id="kata-page">

    <%= render :partial => 'test_spinner' %>
    <%= render :partial => 'current_filename' %>
    <%= render :partial => 'file_hashes_incoming' %>
    <%= render :partial => 'file_hashes_outgoing' %>

    <table>

      <tr class="valign-top">
        <td align="right">
          <%= render :partial => 'test_button' %>
        </td>
        <td>
          <div id="traffic-lights">
            <%= render :partial => 'traffic_lights' %>
          </div>
        </td>
      </tr>

      <tr class="valign-top">
{'fraction_non_alphanumeric': 0.18644716692189892, 'fraction_numerical': 0.0, 'mean_word_length': 2.5991735537190084, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 71, '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': '6931758', 'n_tokens_mistral': 925, 'n_tokens_neox': 864, 'n_words': 150}