<commit_before>const cacheVersion = '1.0.1';
const staticCacheName = `musale-v${cacheVersion}`;
const filesToCache = [
  '/#/',
  './',
  '/(index)',
  '/styles/main.css',
  '/styles/bootstrap.min.css',
  '/images/3246305.jpg',
  '/images/001.svg',
  '/images/002.png',
  '/images/003.png',
  '/images/004.jpg',
  '/images/005.jpg',
  '/index.bundle.js',
  '/manifest.bundle.js',
  '/scripts/loadsw.js',
  '/scripts/bootstrap.min.js',
  '/scripts/jquery-3.1.1.slim.min.js',
  '/scripts/tether.min.js',
  'https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg',
  'https://fonts.gstatic.com/s/raleway/v11/yQiAaD56cjx1AooMTSghGfY6323mHUZFJMgTvxaG2iE.woff2',
  'https://fonts.gstatic.com/s/raleway/v11/0dTEPzkLWceF7z0koJaX1A.woff2',
  'https://placehold.it/355x250',
];

this.addEventListener('install', function(event) {
  event.waitUntil(caches.open(staticCacheName).then(function(cache) {
    return cache.addAll(filesToCache);
  }));
});


self.addEventListener('fetch', function(event) {
  event.respondWith(
    caches.match(event.request).then(function(response) {
      return response || fetch(event.request);
    })
  );
});

self.addEventListener('activate', function(event) {
  event.waitUntil(
    caches.keys().then(function(cacheNames) {
      return Promise.all(
        cacheNames.filter(function(cacheName) {
          return cacheName.startsWith('musale-v') &&
                 cacheName != staticCacheName;
        }).map(function(cacheName) {
          return caches.delete(cacheName);
        })
      );
    })
  );
});
<commit_msg>Added root url to SW.js<commit_after>const cacheVersion = '1.0.1';
const staticCacheName = `musale-v${cacheVersion}`;
const filesToCache = [
  '/',
  '/styles/main.css',
  '/styles/bootstrap.min.css',
  '/images/3246305.jpg',
  '/images/001.svg',
  '/images/002.png',
  '/images/003.png',
  '/images/004.jpg',
  '/images/005.jpg',
  '/index.bundle.js',
  '/manifest.bundle.js',
  '/scripts/loadsw.js',
  '/scripts/bootstrap.min.js',
  '/scripts/jquery-3.1.1.slim.min.js',
  '/scripts/tether.min.js',
  'https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg',
  'https://fonts.gstatic.com/s/raleway/v11/yQiAaD56cjx1AooMTSghGfY6323mHUZFJMgTvxaG2iE.woff2',
  'https://fonts.gstatic.com/s/raleway/v11/0dTEPzkLWceF7z0koJaX1A.woff2',
  'https://placehold.it/355x250',
];

this.addEventListener('install', function(event) {
  event.waitUntil(caches.open(staticCacheName).then(function(cache) {
    return cache.addAll(filesToCache);
  }));
});


self.addEventListener('fetch', function(event) {
  event.respondWith(
    caches.match(event.request).then(function(response) {
      return response || fetch(event.request);
    })
  );
});

self.addEventListener('activate', function(event) {
  event.waitUntil(
    caches.keys().then(function(cacheNames) {
      return Promise.all(
        cacheNames.filter(function(cacheName) {
          return cacheName.startsWith('musale-v') &&
                 cacheName != staticCacheName;
        }).map(function(cacheName) {
          return caches.delete(cacheName);
        })
      );
    })
  );
});

{'fraction_non_alphanumeric': 0.18508997429305912, 'fraction_numerical': 0.04884318766066838, 'mean_word_length': 3.5247093023255816, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '7518829', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1163, 'n_words': 109}