<commit_before>/* global VERSION */
self.importScripts('js/settings.js');
const cacheName = `v${VERSION}::static`;

const fileList = `
./
css/main.css
images/icon.svg
js/app.js
js/config.js
js/controller.js
js/helpers.js
js/model.js
js/offline.js
js/settings.js
js/storage.js
js/template.js
js/view.js
vendor/moment-2.13.0.min.js
manifest.webmanifest
`
  .trim()
  .split('\n')
  .filter(Boolean);

self.addEventListener('install', (e) => {
  // once the SW is installed, go ahead and fetch the resources
  // to make this work offline
  e.waitUntil(
    caches
      .open(cacheName)
      .then((cache) => {
        return cache.addAll(fileList).then(() => {
          self.skipWaiting();
        });
      })
      .then(() => {
        console.log(`offline ${VERSION} ready 🎉`);
      })
  );
});<commit_msg>Updated sw with new files<commit_after>/* global VERSION */
self.importScripts('js/settings.js');
const cacheName = `v${VERSION}::static`;

const fileList = `
./
css/main.css
images/icon.svg
js/app.js
js/calendar.js
js/config.js
js/controller.js
js/dates.js
js/helpers.js
js/model.js
js/offline.js
js/settings.js
js/storage.js
js/template.js
js/view.js
vendor/moment-2.13.0.min.js
manifest.webmanifest
`
  .trim()
  .split('\n')
  .filter(Boolean);

self.addEventListener('install', (e) => {
  // once the SW is installed, go ahead and fetch the resources
  // to make this work offline
  e.waitUntil(
    caches
      .open(cacheName)
      .then((cache) => {
        return cache.addAll(fileList).then(() => {
          self.skipWaiting();
        });
      })
      .then(() => {
        console.log(`offline ${VERSION} ready 🎉`);
      })
  );
});
{'fraction_non_alphanumeric': 0.17438364401683704, 'fraction_numerical': 0.004810583283223091, 'mean_word_length': 2.7732426303854876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5942444', 'n_tokens_mistral': 595, 'n_tokens_neox': 596, 'n_words': 118}