<commit_before>function startup() {
  // Set the time zone to UTC.
  var env = Components.classes["@mozilla.org/process/environment;1"]
                            .getService(Components.interfaces.nsIEnvironment);
  env.set('TZ', 'UTC');

  var prefs = Components.classes["@mozilla.org/preferences-service;1"]
                    .getService(Components.interfaces.nsIPrefBranch);
  prefs.setIntPref("mailnews.reply_header_type", 1);
  prefs.setCharPref("mailnews.reply_header_authorwrote", "%s");

  var myPanel = document.getElementById("my-panel");
  if (prefs.getBoolPref("extensions.torbirdy.protected"))
  {
    if (prefs.getIntPref("extensions.torbirdy.proxy") == 0) 
    {
      myPanel.label = "Tor Enabled";
      myPanel.style.color = "green";
    } else {
      myPanel.label = "JonDo Enabled";
      myPanel.style.color = "green";
    }
  } else {
    myPanel.label = "Tor Disabled!";
    myPanel.style.color = "red";
  }
}

function onClickHandler(event) {
  switch(event.which) {
    case 1:
      alert("Torbutton for Thunderbird is currently enabled and is helping protect your anonymity.\n" +
              "\nTo disable Torbutton, go to Tools > Add-ons.");
      break;
  }
}

window.addEventListener("load", startup, false);
<commit_msg>We are Tor and JonDos aware now<commit_after>function startup() {
  // Set the time zone to UTC.
  var env = Components.classes["@mozilla.org/process/environment;1"]
                            .getService(Components.interfaces.nsIEnvironment);
  env.set('TZ', 'UTC');

  var prefs = Components.classes["@mozilla.org/preferences-service;1"]
                    .getService(Components.interfaces.nsIPrefBranch);
  prefs.setIntPref("mailnews.reply_header_type", 1);
  prefs.setCharPref("mailnews.reply_header_authorwrote", "%s");

  var myPanel = document.getElementById("my-panel");
  if (prefs.getBoolPref("extensions.torbirdy.protected"))
  {
    if (prefs.getIntPref("extensions.torbirdy.proxy") == 0) 
    {
      myPanel.label = "TorBirdy Enabled:   Tor";
      myPanel.style.color = "green";
    } else {
      myPanel.label = "TorBirdy Enabled: JonDo";
      myPanel.style.color = "green";
    }
  } else {
    myPanel.label = "TorBirdy Disabled!";
    myPanel.style.color = "red";
  }
}

function onClickHandler(event) {
  switch(event.which) {
    case 1:
      alert("Torbutton for Thunderbird is currently enabled and is helping protect your anonymity.\n" +
              "\nTo disable Torbutton, go to Tools > Add-ons.");
      break;
  }
}

window.addEventListener("load", startup, false);

{'fraction_non_alphanumeric': 0.13833528722157093, 'fraction_numerical': 0.003907776475185619, 'mean_word_length': 3.1223832528180355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5597522', 'n_tokens_mistral': 826, 'n_tokens_neox': 800, 'n_words': 158}