<commit_before>self.importScripts('/socket.io/socket.io.js');

const CACHE_NAME = 'v1';
const urlsToCache = ['/api/keys', '/api/search-index', '/api/types', '/api/context-schema'];

function getUrl(request) {
  const url = new URL(request.url).pathname;
  return url.replace(/\/$/, '');
}

async function install() {
  const cache = await caches.open(CACHE_NAME);<commit_msg>add api/tags to cache<commit_after>self.importScripts('/socket.io/socket.io.js');

const CACHE_NAME = 'v1';
const urlsToCache = [
  '/api/keys',
  '/api/search-index',
  '/api/types',
  '/api/context-schema',
  '/api/tags',
];

function getUrl(request) {
  const url = new URL(request.url).pathname;
  return url.replace(/\/$/, '');
}

async function install() {
  const cache = await caches.open(CACHE_NAME);
{'fraction_non_alphanumeric': 0.1951530612244898, 'fraction_numerical': 0.002551020408163265, 'mean_word_length': 4.233333333333333, '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': '6261682', 'n_tokens_mistral': 279, 'n_tokens_neox': 278, 'n_words': 53}