<commit_before>
function withConfig(mutateConfigCB) {
	chrome.storage.sync.get(["lively4"], function(configs) {
		mutateConfigCB(ensureConfig(configs), function() {
			chrome.storage.sync.set(configs) // for saving inbetween	
		})
		chrome.storage.sync.set(configs)
	})	
}

function ensureConfig(configs) {
	configs.lively4 = configs.lively4 || {}
	configs.lively4.location = configs.lively4.location || "http://localhost:8080/lively4-core/"
	configs.lively4.hosts = configs.lively4.hosts || {}
	return configs.lively4
}

function ensureHost(config, host) {
	config.hosts[host] = config.hosts[host] || {active: false}
	return config.hosts[host]
}

function setIconPath(path) {
	chrome.browserAction.setIcon({
        path: path
    });
}
<commit_msg>revert change to default lively4 URL<commit_after>
function withConfig(mutateConfigCB) {
	chrome.storage.sync.get(["lively4"], function(configs) {
		mutateConfigCB(ensureConfig(configs), function() {
			chrome.storage.sync.set(configs) // for saving inbetween	
		})
		chrome.storage.sync.set(configs)
	})	
}

function ensureConfig(configs) {
	configs.lively4 = configs.lively4 || {}
	configs.lively4.location = configs.lively4.location || "http://lively-kernel.org/lively4/lively4-stable/"
	configs.lively4.hosts = configs.lively4.hosts || {}
	return configs.lively4
}

function ensureHost(config, host) {
	config.hosts[host] = config.hosts[host] || {active: false}
	return config.hosts[host]
}

function setIconPath(path) {
	chrome.browserAction.setIcon({
        path: path
    });
}

{'fraction_non_alphanumeric': 0.14583333333333334, 'fraction_numerical': 0.015625, 'mean_word_length': 4.8, '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': '4753231', 'n_tokens_mistral': 565, 'n_tokens_neox': 540, 'n_words': 79}