<commit_before>var ajaxWaitingGlobal = 0;

function beforeSendWaiting() {
  if (ajaxWaitingGlobal == 0) {
    $('body').addClass('waiting');
  }
  ajaxWaitingGlobal++;
}

function completeWaiting() {
  ajaxWaitingGlobal--;
  if (ajaxWaitingGlobal == 0) {
    $('body').removeClass('waiting');
  }
}

function ajaxError(request, status, error) {
  var otext = request.responseText;
  var text;
  try {
    text = "";
    $.each($.parseJSON(otext), function(i, e) {
      text += e;
    });
  } catch (e) {
    text = otext;
  }
  if (!text) {
    text = status;
  }
  $(".main .flash").prepend(
    '<div class="alert fade in alert-error">' +
    '<button class="close" data-dismiss="alert">×</button>' +
    $('<div/>').text(text).html() +
    '</div>');
}

function mustache_i18n() {
  return function (text) {
    return I18n.t(text);
  }
}

function progress_dialog(data, dialog, callback, load_url, stop_url) {<commit_msg>Fix error message bootstrap class<commit_after>var ajaxWaitingGlobal = 0;

function beforeSendWaiting() {
  if (ajaxWaitingGlobal == 0) {
    $('body').addClass('waiting');
  }
  ajaxWaitingGlobal++;
}

function completeWaiting() {
  ajaxWaitingGlobal--;
  if (ajaxWaitingGlobal == 0) {
    $('body').removeClass('waiting');
  }
}

function ajaxError(request, status, error) {
  var otext = request.responseText;
  var text;
  try {
    text = "";
    $.each($.parseJSON(otext), function(i, e) {
      text += e;
    });
  } catch (e) {
    text = otext;
  }
  if (!text) {
    text = status;
  }
  $(".main .flash").prepend(
    '<div class="alert fade in alert-danger">' +
    '<button class="close" data-dismiss="alert">×</button>' +
    $('<div/>').text(text).html() +
    '</div>');
}

function mustache_i18n() {
  return function (text) {
    return I18n.t(text);
  }
}

function progress_dialog(data, dialog, callback, load_url, stop_url) {
{'fraction_non_alphanumeric': 0.18686599038974908, 'fraction_numerical': 0.007474639615589963, 'mean_word_length': 3.430260047281324, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2737018', 'n_tokens_mistral': 681, 'n_tokens_neox': 666, 'n_words': 136}