<commit_before>importScripts('workbox-sw.prod.v2.1.2.js');

const workbox = new WorkboxSW({
  skipWaiting: true,
  clientsClaim: true,
});

self.addEventListener('push', function (evt) {
  const title = 'Welcome to Web Starter Kit';
  const options = {
    body: evt.data.text(),
  };
  evt.waitUntil(self.registration.showNotification(title, options));
});

// Do not remove! This is a placeholder keyword which Workbox injects
// list of files to cache into the array.
workbox.precache([]);<commit_msg>add listener for fetching assets in sw<commit_after>importScripts('workbox-sw.prod.v2.1.2.js');

const workbox = new WorkboxSW({
  skipWaiting: true,
  clientsClaim: true,
});

self.addEventListener('push', function (evt) {
  const title = 'Welcome to Web Starter Kit';
  const options = {
    body: evt.data.text(),
  };
  evt.waitUntil(self.registration.showNotification(title, options));
});

self.addEventListener('fetch', function (evt) {
  console.log('Fetching: ' + evt.request.url);
});

// Do not remove! This is a placeholder keyword which Workbox injects
// list of files to cache into the array.
workbox.precache([]);
{'fraction_non_alphanumeric': 0.14210061782877317, 'fraction_numerical': 0.00529567519858782, 'mean_word_length': 4.53170731707317, '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': '5784605', 'n_tokens_mistral': 358, 'n_tokens_neox': 364, 'n_words': 100}