<commit_before>function executeCopy(text) {
	var input = document.createElement('textarea');
	document.body.appendChild(input);
	input.value = text;
	input.focus(); input.select();
	document.execCommand('Copy');
	input.remove();
}

function getHostName(url) {
	try {
		var url = new URL(url);
		return url.hostname;
	} catch (err) {
		console.log(err);
		return null;
	}
}<commit_msg>fix chrome urls<commit_after>function executeCopy(text) {
	var input = document.createElement('textarea');
	document.body.appendChild(input);
	input.value = text;
	input.focus(); input.select();
	document.execCommand('Copy');
	input.remove();
}

function getHostName(url) {
	// Handle Chrome URLs
	if (/^chrome:\/\//.test(url)) { return; }

	try {
		var url = new URL(url);
		return url.hostname;
	} catch (err) {
		console.log(err);
	}
}
{'fraction_non_alphanumeric': 0.16909975669099755, 'fraction_numerical': 0.0, 'mean_word_length': 4.5608108108108105, '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': '3344087', 'n_tokens_mistral': 292, 'n_tokens_neox': 279, 'n_words': 58}