<commit_before>'use strict';
importScripts('/lib/serviceworker-cache-polyfill.js/index.js');

var CACHE_VERSION = '__CACHE_VERSION__';
var CURRENT_CACHES = {
  prefetch: 'prefetch-cache-v' + CACHE_VERSION
};

self.addEventListener('install', function(event) {
  var urlsToPrefetch = [
    '/download',
    '/download/index.html',
    '/css/main.css',
    '/css/builder.css',
    '/js/prod.js',
    '/lib/r.js/dist/r.js',
    '/js/lodash.custom.js',
    '/js/modernizr.custom.js',
    '/js/download/downloader.js',
    '/lib/modernizr/lib/build.js',
    '/lib/zeroclipboard/dist/ZeroClipboard.js',
    '/img/logo.svg',
    '/img/menu.svg'
  ];

  event.waitUntil(
    caches.open(CURRENT_CACHES['prefetch']).then(function(cache) {
      return cache.addAll(urlsToPrefetch.map(function(urlToPrefetch) {
        return new Request(urlToPrefetch, {mode: 'no-cors'});
      }));
    }).catch(function(error) {<commit_msg>remove dev files from the service worker cache builder<commit_after>'use strict';
importScripts('/lib/serviceworker-cache-polyfill.js/index.js');

var CACHE_VERSION = '__CACHE_VERSION__';
var CURRENT_CACHES = {
  prefetch: 'prefetch-cache-v' + CACHE_VERSION
};

self.addEventListener('install', function(event) {
  var urlsToPrefetch = [
    '/download',
    '/download/index.html',
    '/css/main.css',
    '/css/builder.css',
    '/js/prod.js',
    '/lib/r.js/dist/r.js',
    '/js/lodash.custom.js',
    '/lib/modernizr/lib/build.js',
    '/img/logo.svg',
    '/img/menu.svg'
  ];

  event.waitUntil(
    caches.open(CURRENT_CACHES['prefetch']).then(function(cache) {
      return cache.addAll(urlsToPrefetch.map(function(urlToPrefetch) {
        return new Request(urlToPrefetch, {mode: 'no-cors'});
      }));
    }).catch(function(error) {
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 3.50383631713555, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2131152', 'n_tokens_mistral': 642, 'n_tokens_neox': 639, 'n_words': 81}