<commit_before>/*
* jQuery Searchable - v0.1.1
* Search rows in a table.
* http://kylebjohnson.me
*
* Made by <NAME>
* Under MIT License
*/
(function( $ ) {
  $.fn.searchable = function(options) {

    var settings = $.extend({}, {
      search_class: '',
      search_placeholder: "search",
    }, options);

    return this.each(function() {

      var search_id = this.id + '_search';

      jQuery('<input/>', {
        id: search_id,
        class: settings.search_class,
        placeholder: settings.placeholder,
      }).insertBefore( $(this) );

      $( '#' + search_id ).keypress(function() {
        var search = $( this ).val();<commit_msg>make jquery :contains case-insensative for table search plugin<commit_after>/*
* jQuery Searchable - v0.1.1
* Search rows in a table.
* http://kylebjohnson.me
*
* Made by <NAME>
* Under MIT License
*/
(function( $ ) {
  $.fn.searchable = function(options) {

    var settings = $.extend({}, {
      search_class: '',
      search_placeholder: "search",
    }, options);

    //Make jQuery :contains Case-Insensitive
    //http://css-tricks.com/snippets/jquery/make-jquery-contains-case-insensitive/
  $.expr[":"].contains = $.expr.createPseudo(function(arg) {
    return function( elem ) {
      return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
    };
  });

    return this.each(function() {
      
      var search_id = this.id + '_search';

      jQuery('<input/>', {
        id: search_id,
        class: settings.search_class,
        placeholder: settings.placeholder,
      }).insertBefore( $(this) );

      $( '#' + search_id ).keypress(function() {
        var search = $( this ).val();
{'fraction_non_alphanumeric': 0.170760934691432, 'fraction_numerical': 0.004194128220491312, 'mean_word_length': 2.7193763919821827, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 8, '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': '2454951', 'n_tokens_mistral': 529, 'n_tokens_neox': 513, 'n_words': 113}