<commit_before>(function(global) {
  var Cc = Components.classes;
  var Ci = Components.interfaces;
  var Cu = Components.utils;
  var Cr = Components.results;

  function free() {
    free =
      Cc = Ci = Cu = Cr =
      messageListener =
        undefined;
  }

  var messageListener = function(aMessage) {
    switch (aMessage.json.command)
    {
      case 'reload':
        content.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).disableDialogs();
        // aTab.linkedBrowser.reloadWithFlags(Ci.nsIWebNavigation.LOAD_FLAGS_NONE);
        content.location.reload();
        return;

      case 'shutdown':
        global.removeMessageListener('<EMAIL>', messageListener);
        free();
        return;
    }
  };
  global.addMessageListener('<EMAIL>', messageListener);
})(this);<commit_msg>Reload page with chrome privileged feature<commit_after>(function(global) {
  var Cc = Components.classes;
  var Ci = Components.interfaces;
  var Cu = Components.utils;
  var Cr = Components.results;

  function free() {
    free =
      Cc = Ci = Cu = Cr =
      messageListener =
        undefined;
  }

  var messageListener = function(aMessage) {
    switch (aMessage.json.command)
    {
      case 'reload':
        content.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).disableDialogs();
        docShell.QueryInterface(Ci.nsIWebNavigation).reload(Ci.nsIWebNavigation.LOAD_FLAGS_NONE);
        return;

      case 'shutdown':
        global.removeMessageListener('<EMAIL>', messageListener);
        free();
        return;
    }
  };
  global.addMessageListener('<EMAIL>', messageListener);
})(this);
{'fraction_non_alphanumeric': 0.12004801920768307, 'fraction_numerical': 0.0, 'mean_word_length': 3.1160493827160494, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1273608', 'n_tokens_mistral': 502, 'n_tokens_neox': 488, 'n_words': 87}