<commit_before>/* AUXILIARY FUNCTIONS */

var test_re = function(r) {
  var re = new RegExp(r);
  return function(line) {
    return re.test(line);
  };
};

var html_escape = function(t) {
  return $('<div/>').text(t).html();
  // return t.replace(/&/g, '&amp;')...;
};

var noop = function () {};

var debug = 0;

/* CONTEXT */

// TODO: pass in the closure?
var id_n = 1;

// TODO: this depends on formatting and should be a injected {
// TODO: which is faster?
var toggle1 = function(event) {
  debug && console.log("id clicked", ni);
  event.stopPropagation();<commit_msg>Fix variable name<commit_after>/* AUXILIARY FUNCTIONS */

var test_re = function(r) {
  var re = new RegExp(r);
  return function(line) {
    return re.test(line);
  };
};

var html_escape = function(t) {
  return $('<div/>').text(t).html();
  // return t.replace(/&/g, '&amp;')...;
};

var noop = function () {};

var debug = 0;

/* CONTEXT */

// TODO: pass in the closure?
var id_n = 1;

// TODO: this depends on formatting and should be a injected {
// TODO: which is faster?
var toggle1 = function(event) {
  var e = $(this);
  debug && console.log("id clicked", e);
  event.stopPropagation();
{'fraction_non_alphanumeric': 0.18654173764906304, 'fraction_numerical': 0.005110732538330494, 'mean_word_length': 3.304029304029304, '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': '7094217', 'n_tokens_mistral': 427, 'n_tokens_neox': 418, 'n_words': 122}