<commit_before>/**
 * @author <NAME>
 * @description A tiny script that takes care of all the cookie related problems in JavaScript
 * @license MIT
 */
var Cookie = (function () {
  var r = /=|;/, p = ';path=/' + (/\d+\.\d+\.\d+\.\d+/.test(document.domain) ? '' : ';domain=.' + location.host);
  function set(n, v, d) {
    var e = new Date;
    d && e.setDate(e.getDate() + d);
    document.cookie = [n, '=', v, ';expires=', e.toUTCString(), p].join('');
  }
  return {
    get: function (n) { return (n = (document.cookie + ';').match(new RegExp(n + '=.*;'))) && n[0].split(r)[1] },
    set: set,
    remove: function (n) { set(n, '', -1) }
  };
}());<commit_msg>more effective use of the document object<commit_after>/**
 * @author <NAME>
 * @description A tiny script that takes care of all the cookie related problems in JavaScript
 * @license MIT
 */
var Cookie = (function (d) {
  var r = /=|;/, p = ';path=/' + (/\d+\.\d+\.\d+\.\d+/.test(d.domain) ? '' : ';domain=.' + location.host);
  function set(n, v, t) {
    var e = new Date;
    t && e.setDate(e.getDate() + t);
    d.cookie = [n, '=', v, ';expires=', e.toUTCString(), p].join('');
  }
  return {
    get: function (n) { return (n = (d.cookie + ';').match(new RegExp(n + '=.*;'))) && n[0].split(r)[1] },
    set: set,
    remove: function (n) { set(n, '', -1) }
  };
}(document));
{'fraction_non_alphanumeric': 0.2540861812778603, 'fraction_numerical': 0.004457652303120356, 'mean_word_length': 2.9501466275659824, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3661946', 'n_tokens_mistral': 514, 'n_tokens_neox': 511, 'n_words': 136}