<commit_before>/**
	headjs CSS3 feature detector
	
	copyright: "tipiirai" / <NAME>
	license: MIT
*/

/*
	To add a new test:
	
	head.feature("video", function() {
		var tag = document.createElement('video');
		return !!tag.canPlayType;	
	});

	Good place to grab more tests
	
	https://github.com/Modernizr/Modernizr/blob/master/modernizr.js
*/
(function(api) {
		
	/* CSS modernizer */
	var el = document.createElement("i"),
		 style = el.style,
		 prefs = ' -o- -moz- -ms- -webkit- -khtml- '.split(' ');
		 
	/* 
		runs a vendor property test (-moz, ...)  
		
		testAll("box-shadow: 0 0 0 red;");
	*/
	function testAll(definition)  {
		style.cssText = prefs.join(definition + ";");
		var len = style.cssText ? style.cssText.length : 0;
		return len > 0 && !style.cssText.split(";")[1];
	}

	var tests = {
		
		gradient: function() {			
			var s1 = 'background-image:',
				 s2 = 'gradient(linear,left top,right bottom,from(#9f9),to(#fff));',
				 s3 = 'linear-gradient(left top,#eee,#fff);';	
		
			style.cssText = (s1 + prefs.join(s2 + s1) + prefs.join(s3 + s1)).slice(0,-s1.length);		
			return !!style.backgroundImage;
		},
		
		rgba: function() {
			style.cssText = "background-color:rgba(0,0,0,0.5)";		
			return !!style.backgroundColor;
		},
		
		boxshadow: function() {
			return testAll("box-shadow: 0 0 0 red");	
		},
		
		textshadow: function() {			
			return style.textShadow === '';	
		},
		<commit_msg>Issue 22: CSS detection now works correctly.<commit_after>/**
	headjs CSS3 feature detector
	
	copyright: "tipiirai" / <NAME>
	license: MIT
*/

/*
	To add a new test:
	
	head.feature("video", function() {
		var tag = document.createElement('video');
		return !!tag.canPlayType;	
	});

	Good place to grab more tests
	
	https://github.com/Modernizr/Modernizr/blob/master/modernizr.js
*/
(function(api) {
		
	/* CSS modernizer */
	var el = document.createElement("i"),
		 style = el.style,
		 prefs = ' -o- -moz- -ms- -webkit- -khtml- '.split(' ');
		 
	/* 
		runs a vendor property test (-moz, ...)  
		
		testAll("box-shadow: 0 0 0 red;");
	*/
	function testAll(definition)  {
		style.cssText = prefs.join(definition + ";");
		var val = style.cssText;
		if (val.indexOf("-o") != -1 && val.indexOf("-ms") != -1) { return false; }
		return !!val;
	}

	var tests = {
		
		gradient: function() {			
			var s1 = 'background-image:',
				 s2 = 'gradient(linear,left top,right bottom,from(#9f9),to(#fff));',
				 s3 = 'linear-gradient(left top,#eee,#fff);';	
		
			style.cssText = (s1 + prefs.join(s2 + s1) + prefs.join(s3 + s1)).slice(0,-s1.length);		
			return !!style.backgroundImage;
		},
		
		rgba: function() {
			style.cssText = "background-color:rgba(0,0,0,0.5)";		
			return !!style.backgroundColor;
		},
		
		boxshadow: function() {
			return testAll("box-shadow: 0 0 0 red");	
		},
		
		textshadow: function() {			
			return style.textShadow === '';	
		},
		
{'fraction_non_alphanumeric': 0.18491484184914841, 'fraction_numerical': 0.019117135905457074, 'mean_word_length': 2.9751381215469612, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '5067266', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1030, 'n_words': 225}