<commit_before>function() {

  $("#form-Flight").validator();

  $(this).show();
  $.tablesorter.addParser({
      id: 'surname',
      is: function(s) { return false; },
      format: function(s) {
        var names = s.trim().replace(/  +/g, " ").split(" ");
        var sortVal = names.length > 1 ? names[1] : s;
        return sortVal;
      },
      type: 'text'
  });
  $.tablesorter.addParser({
      id: 'checkboxes',
      is: function(s) { return false; },
      format: function(s, table, cell) {
        var checked = $(cell).children(":checkbox").get(0).checked;
        return checked ? 1 : 0;
      },
      type: 'numeric'
  });
  $("#fltdetail").tablesorter({
    headers: { 
      0: { sorter:"surname" }, 
      1: { sorter:"checkboxes" }, 
      2: { sorter:"checkboxes" }, 
      3: { sorter:"checkboxes" }, 
      6: { sorter:"checkboxes" }, 
      7: { sorter:"checkboxes" }, 
      8: { sorter:"checkboxes" }, 
      9: { sorter:"checkboxes" }, 
      10: { sorter:"checkboxes" }, 
      11: { sorter:"surname" } 
    },
    textExtraction: function(elem) {
      var $input = $("input", elem);

      return $input.val() || $(elem).text();
    }
  });
};
//@ sourceURL=/flight_other/after.js
<commit_msg>Fixed guardain name sorter.<commit_after>function() {

  $("#form-Flight").validator();

  $(this).show();
  $.tablesorter.addParser({
      id: 'surname',
      is: function(s) { return false; },
      format: function(s) {
        var names = s.trim().replace(/  +/g, " ").split(" ");
        var sortVal = names.length > 1 ? names[1] : s;
        return sortVal;
      },
      type: 'text'
  });
  $.tablesorter.addParser({
      id: 'checkboxes',
      is: function(s) { return false; },
      format: function(s, table, cell) {
        var checked = $(cell).children(":checkbox").get(0).checked;
        return checked ? 1 : 0;
      },
      type: 'numeric'
  });
  $("#fltdetail").tablesorter({
    headers: { 
      0: { sorter:"surname" }, 
      1: { sorter:"checkboxes" }, 
      2: { sorter:"checkboxes" }, 
      3: { sorter:"checkboxes" }, 
      6: { sorter:"checkboxes" }, 
      7: { sorter:"checkboxes" }, 
      8: { sorter:"checkboxes" }, 
      9: { sorter:"checkboxes" }, 
      10: { sorter:"checkboxes" }, 
      12: { sorter:"surname" } 
    },
    textExtraction: function(elem) {
      var $input = $("input", elem);

      return $input.val() || $(elem).text();
    }
  });
};
//@ sourceURL=/flight_other/after.js

{'fraction_non_alphanumeric': 0.20186084142394822, 'fraction_numerical': 0.013754045307443365, 'mean_word_length': 2.30173564753004, 'pattern_counts': {'":': 2, '<': 3, '<?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': '4539334', 'n_tokens_mistral': 874, 'n_tokens_neox': 827, 'n_words': 161}