<commit_before>(function () {
  /*global $, $body*/
  'use strict';
  
  $('.toppanel-hide').click(function(event) {
    event.preventDefault();
    $body.removeClass('toppanel');
  });

}());<commit_msg>Better close function and esc keybindings<commit_after>(function () {
  /*global $, $body*/
  'use strict';

  var removeToppanel = function() {
  	$body.removeClass('toppanel');
  };
  
  $('.toppanel-hide').click(function(event) {
    event.preventDefault();
    removeToppanel();
  });

  // Escape
  $document.keydown(function (event) {
    if (event.which == 27) {
      removeToppanel();
    }
  });

}());
{'fraction_non_alphanumeric': 0.20454545454545456, 'fraction_numerical': 0.003246753246753247, 'mean_word_length': 3.4388489208633093, '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': '6173664', 'n_tokens_mistral': 206, 'n_tokens_neox': 218, 'n_words': 32}