<commit_before>// listen for the request to show the extension as active and 
// forward it to the U/I

chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
  if (request.action == "show") {
    chrome.tabs.query({
      active: true,
      currentWindow: true
    }, function(tabs) {
      chrome.pageAction.show(tabs[0].id);
    });
  }
});<commit_msg>version 1.0.0 commit unsaved file. (oops)<commit_after>// listen for the request to show the extension as active and 
// forward it to the U/I

chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
  if (request.action == "show") {
    chrome.tabs.query({
      active: true,
      currentWindow: true
    }, function(tabs) {
      chrome.pageAction.show(tabs[0].id);
    });
  }
});

// chrome.runtime.onInstalled should be available but sanity check it
if (chrome.runtime.onInstalled) {
  // show the welcome page on first time install
  chrome.runtime.onInstalled.addListener(function (details) {
      if (details.reason == "install") {
        chrome.tabs.create({url: "http://hollies.pw/static/ffh/v100/welcome/"}, function (tab) {});
      }
  });
}
{'fraction_non_alphanumeric': 0.14125753660637383, 'fraction_numerical': 0.0068906115417743325, 'mean_word_length': 3.2878228782287824, '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': '6289308', 'n_tokens_mistral': 371, 'n_tokens_neox': 358, 'n_words': 92}