<commit_before>function update_color(){
    // Current time in time units set by the update interval.
    var current_time = Math.floor(new Date().getTime() / interval).toString();

    var hex = '#' + current_time.substr(current_time.length - 6);

    document.body.style.background = hex;
    document.getElementById('current-color').innerHTML = hex;
}

// Update interval in milliseconds.
var interval = 100;

window.setInterval(
  'update_color()',
  interval
);<commit_msg>moved initial setup to window.onload<commit_after>function update_color(){
    // Current time in time units set by the update interval.
    var current_time = Math.floor(new Date().getTime() / interval).toString();

    var hex = '#' + current_time.substr(current_time.length - 6);

    document.body.style.background = hex;
    document.getElementById('current-color').innerHTML = hex;
}

// Update interval in milliseconds.
var interval = 100;

window.onload = function(e){
    window.setInterval(
      'update_color()',
      interval
    );
};
{'fraction_non_alphanumeric': 0.13047711781888996, 'fraction_numerical': 0.007789678675754625, 'mean_word_length': 3.737327188940092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1726921', 'n_tokens_mistral': 303, 'n_tokens_neox': 288, 'n_words': 76}