<commit_before>(function() {

  var ranges = [];
  var botsVsWikipedians = {};

  var contentDiv = document.querySelector('#content');
  var considerWikidata = document.querySelector('#consider-wikidata');

  considerWikidata.addEventListener('change', function() {
    if (considerWikidata.checked) {
      document.querySelector('.wikidata').style.display = 'block';
    } else {
      document.querySelector('.wikidata').style.display = 'none';
    }
  });

  var createStatsPane = function(language, bots, wikipedians) {
    var div = document.createElement('div');
    if (language === 'global') {
      div.style.marginBottom = '2em';
    }
    if (language === 'wikidata') {
      div.setAttribute('class', 'wikidata');<commit_msg>Added existence check for Wikidata range.<commit_after>(function() {

  var ranges = [];
  var botsVsWikipedians = {};

  var contentDiv = document.querySelector('#content');
  var considerWikidata = document.querySelector('#consider-wikidata');

  considerWikidata.addEventListener('change', function() {
    if (!document.querySelector('.wikidata')) {
      return;
    }
    if (considerWikidata.checked) {
      document.querySelector('.wikidata').style.display = 'block';
    } else {
      document.querySelector('.wikidata').style.display = 'none';
    }
  });

  var createStatsPane = function(language, bots, wikipedians) {
    var div = document.createElement('div');
    if (language === 'global') {
      div.style.marginBottom = '2em';
    }
    if (language === 'wikidata') {
      div.setAttribute('class', 'wikidata');
{'fraction_non_alphanumeric': 0.15966921119592875, 'fraction_numerical': 0.001272264631043257, 'mean_word_length': 3.8549382716049383, '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': '735132', 'n_tokens_mistral': 476, 'n_tokens_neox': 468, 'n_words': 83}