<commit_before>/*
	Using the navigator vendor and application name we can gather the information
	needed to determine which browser is being used.
*/

function getBrowser() {
	if (/Google Inc./.test(navigator.vendor)) {
		return 'Google Chrome';
	} else if (/Opera Software ASA/.test(navigator.vendor) || /Opera/.test(navigator.appName)) {
		return 'Opera';
	} else if (/Microsoft Internet Explorer/.test(navigator.appName)) {
		return 'Microsoft Internet Explorer';
	} else if (/Firefox/.test(navigator.userAgent) && !/PaleMoon/.test(navigator.userAgent) && !/SeaMonkey/.test(navigator.userAgent)) {
		return 'Mozilla Firefox';
	} else if (/K-Meleon/.test(navigator.vendor)) {
		return 'K-Meleon';
	} else if (/Maxthon Asia Ltd./.test(navigator.vendor)) {
		return 'Maxthon';
	} else if (/PaleMoon/.test(navigator.userAgent)) {
		return 'Pale Moon';
	} else if (/SeaMonkey/.test(navigator.userAgent)) {
		return 'SeaMonkey';
	} else if (/Arora/.test(navigator.userAgent)) {
		return 'Arora';
	} else if (/Safari/.test(navigator.userAgent) && !/Opera Software ASA/.test(navigator.vendor)) {
		return 'Safari';
	}else if (/Konqueror/.test(navigator.userAgent)) {
		return 'Konqueror';
	} else {
		return 'an unknown browser';
	}
}
<commit_msg>Fixed RegEx<commit_after>/*
	Using the navigator vendor and application name we can gather the information
	needed to determine which browser is being used.
*/

function getBrowser() {
	if (/Google Inc\./.test(navigator.vendor)) {
		return 'Google Chrome';
	} else if (/Opera Software ASA/.test(navigator.vendor) || /Opera/.test(navigator.appName)) {
		return 'Opera';
	} else if (/Microsoft Internet Explorer/.test(navigator.appName)) {
		return 'Microsoft Internet Explorer';
	} else if (/Firefox/.test(navigator.userAgent) && !/PaleMoon/.test(navigator.userAgent) && !/SeaMonkey/.test(navigator.userAgent)) {
		return 'Mozilla Firefox';
	} else if (/K-Meleon/.test(navigator.vendor)) {
		return 'K-Meleon';
	} else if (/Maxthon Asia Ltd\./.test(navigator.vendor)) {
		return 'Maxthon';
	} else if (/PaleMoon/.test(navigator.userAgent)) {
		return 'Pale Moon';
	} else if (/SeaMonkey/.test(navigator.userAgent)) {
		return 'SeaMonkey';
	} else if (/Arora/.test(navigator.userAgent)) {
		return 'Arora';
	} else if (/Safari/.test(navigator.userAgent) && !/Opera Software ASA/.test(navigator.vendor)) {
		return 'Safari';
	}else if (/Konqueror/.test(navigator.userAgent)) {
		return 'Konqueror';
	} else {
		return 'an unknown browser';
	}
}

{'fraction_non_alphanumeric': 0.1610305958132045, 'fraction_numerical': 0.0, 'mean_word_length': 4.198744769874477, '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': '1491075', 'n_tokens_mistral': 905, 'n_tokens_neox': 844, 'n_words': 201}