<commit_before>var CSSDetect = function() {  
    var 
        props = ["textShadow", "boxShadow", "borderRadius", "opacity"], 
        CSSprefix = ["Webkit", "Moz", "O", "ms", "Khtml"], 
        d = document.createElement("detect"), 
        test = [], 
        p, pty; 
    // test prefixed code  
    function TestPrefixes(prop) { 
        var 
            n, np,
            Uprop = prop.charAt(0).toUpperCase() + prop.substr(1), 
            All = (prop + ' ' + CSSprefix.join(Uprop + ' ') + Uprop).split(' '); 
        for (n = 0, np = All.length; n < np; n++) { 
            if (d.style[All[n]] === "") {
                return true; 
            }
        } 
        return false; 
    } 
    for (p in props) { 
        pty = props[p]; 
        if (new TestPrefixes(pty) === false) {
			return false;
        }
    }
    return true;
};

var JSDetect = function() {
	var list = [
		localStorage, 
		history.pushState,
		JSON.parse,
		JSON.stringify
	], i;
	for (i = 0; i < list.length; i++) {
		//alert('typeof ' + typeof list[i]);
		if (typeof list[i] === 'undefined') {
			return false;
		}
	}
	return true;
};

function checkBrowser() {
	if (new CSSDetect() === false || new JSDetect() === false) {
		window.location = '/yourbrowsersucks';
        return false;
	} else {
        return true;
    }
}<commit_msg>Fixed bug caused by JS lint check<commit_after>var CSSDetect = function() {  
    var 
        props = ["textShadow", "boxShadow", "borderRadius", "opacity"], 
        CSSprefix = ["Webkit", "Moz", "O", "ms", "Khtml"], 
        d = document.createElement("detect"), 
        test = [], 
        p, pty; 
    // test prefixed code  
    function TestPrefixes(prop) { 
        var 
            n, np,
            Uprop = prop.charAt(0).toUpperCase() + prop.substr(1), 
            All = (prop + ' ' + CSSprefix.join(Uprop + ' ') + Uprop).split(' '); 
        for (n = 0, np = All.length; n < np; n++) { 
            if (d.style[All[n]] === "") {
                return true; 
            }
        } 
        return false; 
    } 
    for (p in props) { 
        pty = props[p]; 
        if (new TestPrefixes(pty) === false) {
			return false;
        }
    }
    return true;
};

var JSDetect = function() {
	var list = [
		localStorage, 
		history.pushState,
		JSON.parse,
		JSON.stringify
	], i;
	for (i = 0; i < list.length; i++) {
		//alert('typeof ' + typeof list[i]);
		if (typeof list[i] === 'undefined') {
			return false;
		}
	}
	return true;
};

function checkBrowser() {
	if (CSSDetect() === false || JSDetect() === false) {
		window.location = '/yourbrowsersucks';
        return false;
	} else {
        return true;
    }
}
{'fraction_non_alphanumeric': 0.16842105263157894, 'fraction_numerical': 0.0030075187969924814, 'mean_word_length': 1.8829902491874322, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7632054', 'n_tokens_mistral': 942, 'n_tokens_neox': 872, 'n_words': 216}