<commit_before>if (typeof(messages) === "undefined") {
  var messages = {};
}
else {
  console.error("There is already a global variable called \"messages\".");
}

function aMsg(key, message){
  if (arguments.length === 2 && typeof(key) === "string" && iStr(message)) {
    messages[key] = message;
  }
  else
  if (arguments.length === 1 && typeof(key) === "object"){
    var p;
    for (p in key) {
      aMsg(p, key[p]);
    }
  }
}

function gMsg(key, args){
  if (!key) {
    throw "No message key specified";
  }
  var msg = messages[key] || key;
  var n = arguments.length, msgArgs;
  if (n > 2) {
    msgArgs = {};
    for (i = 1; i < n; i++){
      msgArgs[i] = arguments[i];
    }
  }
  else
  if (n === 2) {
    msgArgs = args;
    if (typeof(msgArgs) !== "object") {
      msgArgs = {"1": msgArgs}
    }
  }
  var msgArg;
  for (msgArg in msgArgs) {
    var re = new RegExp("\\$\\{" + msgArg + "\\}", "ig");
    msg = msg.replace(re, msgArgs[msgArg]);
  }
  return msg;<commit_msg>Add debugger to stop at edge case point.<commit_after>if (typeof(messages) === "undefined") {
  var messages = {};
}
else {
  console.error("There is already a global variable called \"messages\".");
}

function aMsg(key, message){
  if (arguments.length === 2 && typeof(key) === "string" && iStr(message)) {
    messages[key] = message;
  }
  else
  if (arguments.length === 1 && typeof(key) === "object"){
    var p;
    for (p in key) {
      aMsg(p, key[p]);
    }
  }
}

function gMsg(key, args){
  if (!key) {
    throw "No message key specified";
    debugger;
  }
  var msg = messages[key] || key;
  var n = arguments.length, msgArgs;
  if (n > 2) {
    msgArgs = {};
    for (i = 1; i < n; i++){
      msgArgs[i] = arguments[i];
    }
  }
  else
  if (n === 2) {
    msgArgs = args;
    if (typeof(msgArgs) !== "object") {
      msgArgs = {"1": msgArgs}
    }
  }
  var msgArg;
  for (msgArg in msgArgs) {
    var re = new RegExp("\\$\\{" + msgArg + "\\}", "ig");
    msg = msg.replace(re, msgArgs[msgArg]);
  }
  return msg;
{'fraction_non_alphanumeric': 0.19634928465712875, 'fraction_numerical': 0.0059200789343857915, 'mean_word_length': 2.6214285714285714, 'pattern_counts': {'":': 2, '<': 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': '612916', 'n_tokens_mistral': 754, 'n_tokens_neox': 738, 'n_words': 203}