<commit_before>self.addEventListener('install', function(e) {
e.waitUntil(
caches.open('shadowscript').then(function(cache) {
return cache.addAll([
'./',
'./index.html',
'./index.html?homescreen=1',
'./?homescreen=1',
'../css/master.css',
'../js/master.js',
'../assets/images/binary.jpg',
'../assets/images/binaryred.jpg'
]);
})
);
});

self.addEventListener('fetch', function(event) {
console.log(event.request.url);
event.respondWith(
caches.match(event.request).then(function(response) {
return response || fetch(event.request);
})
);
});<commit_msg>Service worker Fetch cached data<commit_after>self.addEventListener('install', function(e) {
e.waitUntil(
caches.open('shadowscript').then(function(cache) {
return cache.addAll([
'./',
'./index.html',
'./index.html?homescreen=1',
'./?homescreen=1',
'../css/master.css',
'../css/semantic.min.css',
'../js/master.js',
'../js/semantic.min.js',
'../js/typed.js',
'../assets/images/binary.jpg',
'../assets/images/binaryred.jpg'
]);
})
);
});

self.addEventListener('fetch', function(event) {
console.log(event.request.url);
event.respondWith(
caches.match(event.request).then(function(response) {
return response || fetch(event.request);
})
);
});
{'fraction_non_alphanumeric': 0.24435146443514644, 'fraction_numerical': 0.0033472803347280333, 'mean_word_length': 5.464864864864865, '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': '686760', 'n_tokens_mistral': 428, 'n_tokens_neox': 425, 'n_words': 49}