<commit_before>String.prototype.hashCode = function () {
  var hash = 0;
  if (this.length == 0) {
    return hash;
  }
  for (i = 0; i < this.length; i++) {
    char = this.charCodeAt(i);
    hash = (hash << 5) - hash + char;
    hash = hash & hash; // Convert to 32bit integer
  }
  return hash;
};

$(function () {
  "use strict";

  var constants = $("#data");
  var dxr = {},
    docElem = document.documentElement;

  dxr.wwwRoot = constants.data("root");
  dxr.baseUrl = location.protocol + "//" + location.host;
  dxr.icons = dxr.wwwRoot + "/static/icons/";
  dxr.views = dxr.wwwRoot + "/static/templates";
  dxr.searchUrl = constants.data("search");
  dxr.tree = constants.data("tree");

  var timeouts = {};
  timeouts.search = 300;
  // We start the history timeout after the search updates (i.e., after
  // timeouts.search has elapsed).
  timeouts.history = 2000 - timeouts.search;

  /**
   * Hang an advisory message off the search field.
   * @param {string} level - The seriousness: 'info', 'warning', or 'error'
   * @param {string} html - The HTML message to be displayed
   */
  function showBubble(level, html, which) {
    // If hideBubble() was already called, abort the hide animation:
    $(".bubble").stop();

    if (!which) {
      if ($("#path-bubble").is(":focus")) {
        which = "path";
      } else {<commit_msg>No bug - Remove an unused variable in dxr.js.<commit_after>String.prototype.hashCode = function () {
  var hash = 0;
  if (this.length == 0) {
    return hash;
  }
  for (i = 0; i < this.length; i++) {
    char = this.charCodeAt(i);
    hash = (hash << 5) - hash + char;
    hash = hash & hash; // Convert to 32bit integer
  }
  return hash;
};

$(function () {
  "use strict";

  var constants = $("#data");
  var dxr = {};

  dxr.wwwRoot = constants.data("root");
  dxr.baseUrl = location.protocol + "//" + location.host;
  dxr.icons = dxr.wwwRoot + "/static/icons/";
  dxr.views = dxr.wwwRoot + "/static/templates";
  dxr.searchUrl = constants.data("search");
  dxr.tree = constants.data("tree");

  var timeouts = {};
  timeouts.search = 300;
  // We start the history timeout after the search updates (i.e., after
  // timeouts.search has elapsed).
  timeouts.history = 2000 - timeouts.search;

  /**
   * Hang an advisory message off the search field.
   * @param {string} level - The seriousness: 'info', 'warning', or 'error'
   * @param {string} html - The HTML message to be displayed
   */
  function showBubble(level, html, which) {
    // If hideBubble() was already called, abort the hide animation:
    $(".bubble").stop();

    if (!which) {
      if ($("#path-bubble").is(":focus")) {
        which = "path";
      } else {
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.009672619047619048, 'mean_word_length': 2.8414285714285716, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '1254884', 'n_tokens_mistral': 918, 'n_tokens_neox': 873, 'n_words': 255}