<commit_before>(function(d) {
  var baseurl = 'https://api.github.com/', i;

  function querystring() {
    var href = window.location.href, kv;
    var params = href.slice(href.indexOf('?') + 1).split('&');
    var qs = [];

    for (i = 0; i < params.length; i++) {
      kv = params[i].split('=');
      qs.push(kv[0]);
      qs[kv[0]] = kv[1];
    }
    return qs;
  }

  function store(key, value) {
    if (window.localStorage) {
      if (value) {
        value._timestamp = new Date().valueOf();
        localStorage[key] = JSON.stringify(value);
      } else {
        var ret = localStorage[key];
        if (ret) {
          return JSON.parse(ret);
        }
        return null;
      }
    }
  }

  function valueof(data, key) {
    var ret = data;
    var bits = key.split('.');
    for (var j = 0; j < bits.length; j++) {
      if (ret) {
        ret = ret[bits[j]];
      } else {
        break;
      }
    }
    if (ret === undefined || ret === null) {
      return '';
    }
    return ret;<commit_msg>Fixed `localStorage` exception causing the entire widget to not appear.<commit_after>(function(d) {
  var baseurl = 'https://api.github.com/', i;

  function querystring() {
    var href = window.location.href, kv;
    var params = href.slice(href.indexOf('?') + 1).split('&');
    var qs = [];

    for (i = 0; i < params.length; i++) {
      kv = params[i].split('=');
      qs.push(kv[0]);
      qs[kv[0]] = kv[1];
    }
    return qs;
  }

  function store(key, value) {
    try {
      if (window.localStorage) {
        if (value) {
          value._timestamp = new Date().valueOf();
          localStorage[key] = JSON.stringify(value);
        } else {
          var ret = localStorage[key];
          if (ret) {
            return JSON.parse(ret);
          }
          return null;
        }
      }
    } catch(e) {}
  }

  function valueof(data, key) {
    var ret = data;
    var bits = key.split('.');
    for (var j = 0; j < bits.length; j++) {
      if (ret) {
        ret = ret[bits[j]];
      } else {
        break;
      }
    }
    if (ret === undefined || ret === null) {
      return '';
    }
    return ret;
{'fraction_non_alphanumeric': 0.17425650557620817, 'fraction_numerical': 0.0055762081784386614, 'mean_word_length': 1.818062827225131, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7074986', 'n_tokens_mistral': 741, 'n_tokens_neox': 719, 'n_words': 174}