<commit_before>(function($) {
  'use strict';
  var slice = Array.prototype.slice;

  /**
  *
  */
  function PjaxTableSearch(el, options) {
    this._$el = $(el);
    this._$searchFilter = this._$el.find('input[type="search"]');
    
    this._init();
  }

  PjaxTableSearch.prototype._init = function() {
    this._$el.find('.ui-search').click(this._onClickSearch.bind(this));
    this._$el.find('.ui-close').click(this._onClickClose.bind(this));
    this._$searchFilter.keyup(this._onInputKeyup.bind(this));
  };

  PjaxTableSearch.prototype._onClickSearch = function(e) {
    this._$el.trigger('search:submit', $searchFilter.val());
  };

  PjaxTableSearch.prototype._onInputKeyup = function(e) {
    this._$el.find('.ui-close').removeClass('hidden');
    if (e.which === 13) {          //enter / return
      this._$el.trigger('search:submit', $(e.currentTarget).val());
    } else if (e.which == 27) {    //escape
      this._clearSearch();
    }
  };

  PjaxTableSearch.prototype._onClickClose = function(e) {
    this._clearSearch();
  };
<commit_msg>Fixes incorrect refeference to  in _onClickSearch method<commit_after>(function($) {
  'use strict';
  var slice = Array.prototype.slice;

  /**
  *
  */
  function PjaxTableSearch(el, options) {
    this._$el = $(el);
    this._$searchFilter = this._$el.find('input[type="search"]');
    
    this._init();
  }

  PjaxTableSearch.prototype._init = function() {
    this._$el.find('.ui-search').click(this._onClickSearch.bind(this));
    this._$el.find('.ui-close').click(this._onClickClose.bind(this));
    this._$searchFilter.keyup(this._onInputKeyup.bind(this));
  };

  PjaxTableSearch.prototype._onClickSearch = function(e) {
    this._$el.trigger('search:submit', this._$searchFilter.val());
  };

  PjaxTableSearch.prototype._onInputKeyup = function(e) {
    this._$el.find('.ui-close').removeClass('hidden');
    if (e.which === 13) {          //enter / return
      this._$el.trigger('search:submit', $(e.currentTarget).val());
    } else if (e.which == 27) {    //escape
      this._clearSearch();
    }
  };

  PjaxTableSearch.prototype._onClickClose = function(e) {
    this._clearSearch();
  };

{'fraction_non_alphanumeric': 0.18781725888324874, 'fraction_numerical': 0.0036917397323488694, 'mean_word_length': 3.4701030927835053, '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': '607615', 'n_tokens_mistral': 742, 'n_tokens_neox': 724, 'n_words': 90}