<commit_before>/*
 * Copyright © 2013 VillageReach.  All Rights Reserved.  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
 *
 * If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

window.Select2.class.multi.prototype.clearSearch = function() {
  var placeholder = this.getPlaceholder();
  console.log(this.countSelectableResults());

  if (placeholder !== undefined && this.search.hasClass("select2-focused") === false && !this.opened()) {
    console.log(this.search.val());
    this.search.val(placeholder).addClass("select2-default");
    // stretch the search box to full width of the container so as much of the placeholder is visible as possible
    this.resizeSearch();
  } else {
    // we set this to " " instead of "" and later clear it on focus() because there is a firefox bug
    // that does not properly render the caret when the field starts out blank
    this.search.val(" ").width(10);
  }
}<commit_msg>#673|+Jaideep|Removing console logs<commit_after>/*
 * Copyright © 2013 VillageReach.  All Rights Reserved.  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
 *
 * If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

window.Select2.class.multi.prototype.clearSearch = function() {
  var placeholder = this.getPlaceholder();

  if (placeholder !== undefined && this.search.hasClass("select2-focused") === false && !this.opened()) {
    this.search.val(placeholder).addClass("select2-default");
    // stretch the search box to full width of the container so as much of the placeholder is visible as possible
    this.resizeSearch();
  } else {
    // we set this to " " instead of "" and later clear it on focus() because there is a firefox bug
    // that does not properly render the caret when the field starts out blank
    this.search.val(" ").width(10);
  }
}
{'fraction_non_alphanumeric': 0.11666666666666667, 'fraction_numerical': 0.014646464646464647, 'mean_word_length': 3.564516129032258, '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': '1089187', 'n_tokens_mistral': 574, 'n_tokens_neox': 541, 'n_words': 222}