<commit_before>var CACHE_NAME = 'my-site-cache-v1';
var urlsToCache = [
  '/',
  'index.html',
  'EnglishWebContent//2015/01/02/internet.html',
  'https://codehubplatform.github.io/EnglishWebContent//2015/01/02/internet.html'
];

self.addEventListener('install', function(event) {
  // Perform install steps
  event.waitUntil(
    caches.open(CACHE_NAME)
      .then(function(cache) {
        console.log('Opened cache');
        return cache.addAll(urlsToCache);
      })
  );
});

self.addEventListener('fetch', function(event) {
  event.respondWith(
    caches.match(event.request)
      .then(function(response) {
        // Cache hit - return response
        console.log('resoincesis');
        if (response) {
          return response;
        }
        return fetch(event.request);
      }<commit_msg>added service worker;<commit_after>var CACHE_NAME = 'my-site-cache-v1';
var urlsToCache = [
  
  'index.html',
  '/2015/01/02/internet.html',
  'https://codehubplatform.github.io/EnglishWebContent//2015/01/02/internet.html'
];

self.addEventListener('install', function(event) {
  // Perform install steps
  event.waitUntil(
    caches.open(CACHE_NAME)
      .then(function(cache) {
        console.log('Opened cache');
        return cache.addAll(urlsToCache);
      })
  );
});

self.addEventListener('fetch', function(event) {
  event.respondWith(
    caches.match(event.request)
      .then(function(response) {
        // Cache hit - return response
        console.log('resoincesis');
        if (response) {
          return response;
        }
        return fetch(event.request);
      }
{'fraction_non_alphanumeric': 0.14694894146948942, 'fraction_numerical': 0.021170610211706103, 'mean_word_length': 2.835322195704057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '147260', 'n_tokens_mistral': 530, 'n_tokens_neox': 509, 'n_words': 74}