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

$(function() {

  var age = <%= @kata.age %>; // in seconds

  var sep = '&thinsp;:&thinsp;';

  var zeroed = function(n) {
    return ('00' + n).slice(-2);
  };
  
  var ageDivMod = function(div,mod) {
    return Math.floor((age / div) % mod);
  };
  
  var hoursPerDay = 24;
  var minutesPerHour = 60  
  var secondsPerMinute = 60;
  var secondsPerHour = secondsPerMinute * minutesPerHour;
  var secondsPerDay = secondsPerHour * hoursPerDay;

  var display = function(name,div,mod) {
    var n = Math.floor((age / div) % mod);
    $('#' + name + '-label').html(name + sep);
    $('#' + name).text(zeroed(n));    
  };

  if (age > secondsPerDay) {<commit_msg>refactoring<commit_after><script type="text/javascript"><!--

$(function() {

  var age = <%= @kata.age %>; // in seconds

  var hoursPerDay = 24;
  var minutesPerHour = 60  
  var secondsPerMinute = 60;
  var secondsPerHour = secondsPerMinute * minutesPerHour;
  var secondsPerDay = secondsPerHour * hoursPerDay;

  var display = function(name,div,mod) {
    var n = Math.floor((age / div) % mod);
    var sep = '&thinsp;:&thinsp;';
    var zeroed = function(n) {
      return ('00' + n).slice(-2);
    };    
    $('#' + name + '-label').html(name + sep);
    $('#' + name).text(zeroed(n));    
  };

  if (age > secondsPerDay) {
{'fraction_non_alphanumeric': 0.18229166666666666, 'fraction_numerical': 0.013392857142857142, 'mean_word_length': 3.100609756097561, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2955281', 'n_tokens_mistral': 508, 'n_tokens_neox': 482, 'n_words': 105}