<commit_before><% id       = @kata.id[0..5] %>
<% language = @kata.display_name.split(',')[0].strip %>
<% test     = @kata.display_name.split(',')[1].strip %>

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

$(function() {

  var optionsDialog = function() {
    var html = '';
    html += '<div id="options-dialog">';
    html += '<table style="border: 1px;">';
    html += tr('id', '<%= id %>');
    html += tr('language', '<%= language %>');
    html += tr('test', '<%= test %>');
    <% if @kata.exercise %>
    html += '<tr><td>exercise</td><td>:</td><td><%= @kata.exercise.gsub('_',' ') %></td></tr>';
    <% end %>
    html += '</table>';
    html += '</div>';

    var node = $(html);
    node.dialog({
        autoOpen: true,
        modal: true,
        title: cd.dialogTitle('options'),
      buttons: { close: function() { $(this).remove(); } },
        width: '350'
    });
  };

  var tr = function(key,value) {
    return '<tr><td>' + key + '</td><td>:</td><td>' + value + '</td></tr>';
  };

  $('#options-button').click(function() { optionsDialog(); });
});

//--></script><commit_msg>changed options wording to make it clear the id is a hex-id<commit_after><% id       = @kata.id[0..5] %>
<% language = @kata.display_name.split(',')[0].strip %>
<% test     = @kata.display_name.split(',')[1].strip %>

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

$(function() {

  var optionsDialog = function() {
    var html = '';
    html += '<div id="options-dialog">';
    html += '<table style="border: 1px;">';
    html += tr('hex-id', '<%= id %>');
    html += tr('language', '<%= language %>');
    html += tr('test', '<%= test %>');
    <% if @kata.exercise %>
    html += '<tr><td>exercise</td><td>:</td><td><%= @kata.exercise.gsub('_',' ') %></td></tr>';
    <% end %>
    html += '</table>';
    html += '</div>';

    var node = $(html);
    node.dialog({
        autoOpen: true,
        modal: true,
        title: cd.dialogTitle('options'),
      buttons: { close: function() { $(this).remove(); } },
        width: '350'
    });
  };

  var tr = function(key,value) {
    return '<tr><td>' + key + '</td><td>:</td><td>' + value + '</td></tr>';
  };

  $('#options-button').click(function() { optionsDialog(); });
});

//--></script>
{'fraction_non_alphanumeric': 0.2831541218637993, 'fraction_numerical': 0.007168458781362007, 'mean_word_length': 2.9038461538461537, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '2744065', 'n_tokens_mistral': 808, 'n_tokens_neox': 754, 'n_words': 150}