<commit_before>/*
 * Javascript for handling the doors of the QEMU advent calendar.
 *
 * Copyright (c) 2016 <NAME>
 *
 * Licensed under the MIT license.
 */

function set_door_cookie(val) {
    var date = new Date();
    date.setTime(date.getTime() + (26 * 24 * 60 * 60 * 1000));
    document.cookie = "doors=" + val + ";" + "expires="+ date.toUTCString();
}

function get_door_cookie() {
     var ca = document.cookie.split(';');
     for (var i = 0; i < ca.length; i++) {
          var c = ca[i];
          while (c.charAt(0)==' ') {
               c = c.substring(1);
          }
          if (c.indexOf("doors") == 0) {
               return c.substring(6, c.length);
          }
     }
     return 0;
}<commit_msg>Use a different cookie value for 2018<commit_after>/*
 * Javascript for handling the doors of the QEMU advent calendar.
 *
 * Copyright (c) 2018 <NAME>
 *
 * Licensed under the MIT license.
 */

function set_door_cookie(val) {
    var date = new Date();
    date.setTime(date.getTime() + (26 * 24 * 60 * 60 * 1000));
    document.cookie = "doors2018=" + val + ";" + "expires="+ date.toUTCString();
}

function get_door_cookie() {
     var ca = document.cookie.split(';');
     for (var i = 0; i < ca.length; i++) {
          var c = ca[i];
          while (c.charAt(0)==' ') {
               c = c.substring(1);
          }
          if (c.indexOf("doors2018") == 0) {
               return c.substring(10, c.length);
          }
     }
     return 0;
}
{'fraction_non_alphanumeric': 0.16429056347589951, 'fraction_numerical': 0.038696537678207736, 'mean_word_length': 2.116279069767442, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4385065', 'n_tokens_mistral': 534, 'n_tokens_neox': 481, 'n_words': 134}