<commit_before>(function($, $TD, TD){
  $(document).keydown(function(e){
    
    // ==============================
    // F4 key - simulate notification
    // ==============================
    
    if (e.keyCode === 115){
      var col = TD.controller.columnManager.getAllOrdered()[0];
      
      $.publish("/notifications/new",[{
        column: col,
        items: [
          col.updateArray[Math.floor(Math.random()*col.updateArray.length)]
        ]
      }]);
    }
  });
})($, $TD, TD);<commit_msg>Improve debug script for easier extendibility, add sound notification simulation<commit_after>(function($, $TD, $TDX, TD){
  var isDebugging = false;
  
  $(document).keydown(function(e){
    
    // ==========================
    // F4 key - toggle debug mode
    // ==========================
    
    if (e.keyCode === 115){
      isDebugging = !isDebugging;
      $(".app-title").first().css("background-color", isDebugging ? "#5A6B75" : "#292F33");
    }
    
    // Debug mode handling
    
    else if (isDebugging){
      e.preventDefault();
      
      // ===================================
      // N key - simulate popup notification
      // ===================================
      
      if (e.keyCode === 78){
        var col = TD.controller.columnManager.getAllOrdered()[0];

        $.publish("/notifications/new",[{
          column: col,
          items: [
            col.updateArray[Math.floor(Math.random()*col.updateArray.length)]
          ]
        }]);
      }
      
      // ===================================
      // S key - simulate sound notification
      // ===================================
      
      else if (e.keyCode === 83){
        if ($TDX.hasCustomNotificationSound){
          $TD.onTweetSound();
        }
        else{
          document.getElementById("update-sound").play();
        }
      }
    }
  });
})($, $TD, $TDX, TD);
{'fraction_non_alphanumeric': 0.27642706131078226, 'fraction_numerical': 0.012156448202959831, 'mean_word_length': 2.203045685279188, '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': '89158', 'n_tokens_mistral': 560, 'n_tokens_neox': 524, 'n_words': 91}