<commit_before>(function ($) {
  // register namespace
  $.extend(true, window, {
    "Slick": {
      "RowSelectionModel": RowSelectionModel
    }
  });

  function RowSelectionModel(options) {
    var _grid;
    var _ranges = [];
    var _self = this;
    var _handler = new Slick.EventHandler();
    var _inHandler;
    var _options;
    var _defaults = {
      selectActiveRow: true
    };

    //////////////////////////////////////////////////////////////////////////////////////////////
    // Ekohe Modify
    //   1. Add clearing row selection processing

    function init(grid) {
      _options = $.extend(true, {}, _defaults, options);
      _grid = grid;
      _handler.subscribe(_grid.onActiveCellChanged,
          wrapHandler(handleActiveCellChange));
      _handler.subscribe(_grid.onKeyDown,
          wrapHandler(handleKeyDown));
      _handler.subscribe(_grid.onClick,
          wrapHandler(handleClick));

      // Ekohe Add: Clear row selection
      $('.grid-header .selection-info').click( function() {
        _self.onSelectedRangesChanged.notify([]);
        $(this).html('');
      })<commit_msg>FEATURE #67027 - MD inplemetation for ToolBar: Deactive cell when clear row selection<commit_after>(function ($) {
  // register namespace
  $.extend(true, window, {
    "Slick": {
      "RowSelectionModel": RowSelectionModel
    }
  });

  function RowSelectionModel(options) {
    var _grid;
    var _ranges = [];
    var _self = this;
    var _handler = new Slick.EventHandler();
    var _inHandler;
    var _options;
    var _defaults = {
      selectActiveRow: true
    };

    //////////////////////////////////////////////////////////////////////////////////////////////
    // Ekohe Modify
    //   1. Add clearing row selection processing

    function init(grid) {
      _options = $.extend(true, {}, _defaults, options);
      _grid = grid;
      _handler.subscribe(_grid.onActiveCellChanged,
          wrapHandler(handleActiveCellChange));
      _handler.subscribe(_grid.onKeyDown,
          wrapHandler(handleKeyDown));
      _handler.subscribe(_grid.onClick,
          wrapHandler(handleClick));

      // Ekohe Add: Clear row selection
      $('.grid-header .selection-info').click( function() {
        _self.onSelectedRangesChanged.notify([]);
        $(this).html('');
        $(grid.getActiveCellNode()).removeClass("active");
      })
{'fraction_non_alphanumeric': 0.19394194362641987, 'fraction_numerical': 0.002944888514934792, 'mean_word_length': 2.0216010165184244, 'pattern_counts': {'":': 4, '<': 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': '2147472', 'n_tokens_mistral': 638, 'n_tokens_neox': 630, 'n_words': 134}