<commit_before>$(document).ready(function() {
  $("#gravatar-alert").tooltip();
  $('body').tooltip({selector: "[data-toggle~='tooltip']", html: true});

  setTimeout(function() {
    $(".alert").not('.alert-confirm').alert('close');
  }, 5000);
});

// Datatable extension for reseting sort order
$.fn.dataTableExt.oApi.fnSortNeutral = function ( oSettings ) {
    oSettings.aaSorting = [];
    oSettings.aiDisplay.sort( function (x,y) {
        return x-y;
    } );
    oSettings.aiDisplayMaster.sort( function (x,y) {<commit_msg>Fixes rapidly disappearing error alert<commit_after>$(document).ready(function() {
  $("#gravatar-alert").tooltip();
  $('body').tooltip({selector: "[data-toggle~='tooltip']", html: true});

  setTimeout(function() {
    $(".alert").not('.alert-confirm, .scheduling-error').alert('close');
  }, 5000);
});

// Datatable extension for reseting sort order
$.fn.dataTableExt.oApi.fnSortNeutral = function ( oSettings ) {
    oSettings.aaSorting = [];
    oSettings.aiDisplay.sort( function (x,y) {
        return x-y;
    } );
    oSettings.aiDisplayMaster.sort( function (x,y) {
{'fraction_non_alphanumeric': 0.20126353790613719, 'fraction_numerical': 0.007220216606498195, 'mean_word_length': 4.280952380952381, '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': '4528571', 'n_tokens_mistral': 362, 'n_tokens_neox': 351, 'n_words': 59}