<commit_before>/*
 * <property name>: A jQuery cssHooks adding a cross browser <property name> property to $.fn.css() and $.fn.animate()
 * 
 * limitations:
 * - requires jQuery 1.4.3+
 * - compatible with Firefox <version>, Chrome <version>, Safari <version>, Opera <version>, Internet Explorer <version>
 * - <additional limitations>
 * 
 * Copyright
 * License
 */
(function( $ ) {

var div = document.createElement('div'),
	divStyle = div.style,
	propertyName = '<property name>',
	suffix = propertyName[0].toUpperCase() + propertyName.slice(1),
	testProperties = [
		'O' + suffix,
		// 'ms', not 'Ms'
		'ms' + suffix,
		'Webkit' + suffix,
		'Moz' + suffix,
		// prefix-less property
		propertyName
	],
	i = testProperties.length,
	// use local variables instead of jQuery.support and jQuery.cssHooks
	// throughout the plugin to reduce file size once minified
	supportProperty,
	supportMsAlternative,
	propertyHook;

// test different vendor prefixes of this property
while ( i-- ) {
	if ( testProperties[i] in divStyle ) {
		$.support[propertyName] = supportProperty = testProperties[i];
		continue;
	}
}
// If a proprietary alternative exists for IE678, include another test for it
if ( !supportProperty ) {
	$.support.MsAlternative = supportMsAlternative = divStyle['<IE alternative>'] === '';
}
// prevent IE memory leak
div = divStyle = null;

// the following line should be removed if 'px' is the default unit for this property
$.cssNumber[propertyName] = true;

// prefix-less property will likely not need a hook
if ( supportProperty && supportProperty != propertyName ) {
	propertyHook = {
		get: function( elem, computed, extra ) {
			return computed ?
				// the availability of getComputedStyle can be infered from the CSS3 feature test
				getComputedStyle(elem).getPropertyValue( supportProperty ):
				elem.style[ supportProperty ];
		},
		set: function( elem, value ) {
			elem[supportProperty] = value;
		}
	};
// If a proprietary alternative exists for IE678, implement a special hook for it
} else if ( supportMsAlternative ) {
	propertyHook = {
		get: function( elem, computed, extra ) {
			// Handle crazy conversion from the proprietary alternative 
		},
		set: function( elem, value ) {
			// Handle crazy conversion to the proprietary alternative
		}
	}
}
// populate jQuery.cssHooks with the appropriate hook
$.cssHooks[propertyName] = propertyHook;

// animation for simple values
$.fx.step[propertyName] = function( fx ) {
	var value = fx.now + fx.unit;
	supportProperty ?
		// skip one useless function call if the value doesn't need extra processing
		fx.elem[supportProperty] = value:
		// use the hook otherwise
		propertyHook.set( fx.elem, value );
}
// The following code can be used as a base to animate more complex values
/*$.fx.step[propertyName] = function( fx ) {
	// fx.start and fx.end will probably be parsed on the first step to be computable
	if ( !fx.start || typeof fx.start === 'string' ) {
		// fix fx.start value
		if ( !fx.start ) {
			fx.start =  propertyHook.get( fx.elem, true );
		}
		fx.start = parse(fx.start);
		fx.end = parse(fx.end);
	}

	// the code that calculates the value or components of it, is specific to the property
	// but it is likely to look like the following
	var value = fx.start + ( fx.end - fx.start ) * fx.pos;

	// set the value once it has been calculated
	supportProperty ?
		fx.elem[supportProperty] = value:
		propertyHook.set( fx.elem, value );
}*/

})( jQuery );<commit_msg>skeletons.js: Fix Opera prefix, add IE9 compatibility and mention basic jQuery.cssProps based hooks<commit_after>/*
 * <property name>: A jQuery cssHooks adding a cross browser <property name> property to $.fn.css() and $.fn.animate()
 * 
 * limitations:
 * - requires jQuery 1.4.3+
 * - compatible with Firefox <version>, Chrome <version>, Safari <version>, Opera <version>, Internet Explorer <version>
 * - <additional limitations>
 * 
 * Copyright
 * License
 */
(function( $ ) {

var div = document.createElement('div'),
	divStyle = div.style,
	propertyName = '<property name>',
	suffix = propertyName[0].toUpperCase() + propertyName.slice(1),
	testProperties = [
		'O' + suffix,
		// 'ms', not 'Ms'
		'ms' + suffix,
		'Webkit' + suffix,
		'Moz' + suffix,
		// prefix-less property
		propertyName
	],
	i = testProperties.length,
	// use local variables instead of jQuery.support and jQuery.cssHooks
	// throughout the plugin to reduce file size once minified
	supportProperty,
	supportMsAlternative,
	propertyHook;

// test different vendor prefixes of this property
while ( i-- ) {
	if ( testProperties[i] in divStyle ) {
		$.support[propertyName] = supportProperty = testProperties[i];
		continue;
	}
}
// If a proprietary alternative exists for IE678, include another test for it
if ( !supportProperty ) {
	$.support.MsAlternative = supportMsAlternative = divStyle['<IE alternative>'] === '';
}
// prevent IE memory leak
div = divStyle = null;

// the following line should be removed if 'px' is the default unit for this property
$.cssNumber[propertyName] = true;

// prefix-less property will likely not need a hook
if ( supportProperty && supportProperty != propertyName ) {
	// Modern browsers can use jQuery.cssProps as a basic hook
	$.cssProps[propertyName] = supportProperty;

	// Real cssHooks might be used to normalize implementations inconsistencies in some browsers
	// for example
	if ( supportProperty == 'Moz' + suffix ) {
		propertyHook = {
			set: function( elem, value ) {
				elem.style[ supportProperty ] = normalizeFirefoxSet( value );
			}
		};
	// getter always needs to be fixed for IE9, see http://jqbug.com/8346
	} else if ( supportProperty == 'ms' + suffix ) {
		propertyHook = {
			get: function( elem, computed ) {
				return (computed ?
					$.css( elem, 'Ms' + suffix ):
					elem.style[supportProperty]
				)
			}
		}
	}
// If a proprietary alternative exists for IE678, implement a complete cssHooks for it
} else if ( supportMsAlternative ) {
	propertyHook = {
		get: function( elem, computed, extra ) {
			// Handle crazy conversion from the proprietary alternative 
		},
		set: function( elem, value ) {
			// Handle crazy conversion to the proprietary alternative
		}
	}
}
// populate jQuery.cssHooks with the appropriate hook if necessary
if ( propertyHook ) {
	$.cssHooks[propertyName] = propertyHook;

// uncomment following block if the animation logic uses the getter
}/* else {
	propertyHook = {};
}
propertyHook.get = propertyHook.get || $.css;*/

// animation for simple values
$.fx.step[propertyName] = function( fx ) {
	var value = fx.now + fx.unit;
	propertyHook.set?
		// Use a getter hook if it exists
		propertyHook.set( elem, transform ):
		// Otherwise modify row DOM for maximum performances
		elem.style[supportProperty] = transform;
}
// The following code can be used as a base to animate more complex values
/*$.fx.step[propertyName] = function( fx ) {
	// fx.start and fx.end will probably be parsed on the first step to be computable
	if ( !fx.start || typeof fx.start === 'string' ) {
		// fix fx.start value
		if ( !fx.start ) {
			fx.start =  propertyHook.get( fx.elem, supportProperty );
		}
		fx.start = parse(fx.start);
		fx.end = parse(fx.end);
	}

	// the code that calculates the value or components of it, is specific to the property
	// but it is likely to look like the following
	var value = fx.start + ( fx.end - fx.start ) * fx.pos;

	// set the value once it has been calculated
	propertyHook.set?
		propertyHook.set( elem, transform ):
		elem.style[supportProperty] = transform;
}*/

})( jQuery );
{'fraction_non_alphanumeric': 0.11741319904585211, 'fraction_numerical': 0.003843095679830374, 'mean_word_length': 3.6074481074481075, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2789269', 'n_tokens_mistral': 2387, 'n_tokens_neox': 2214, 'n_words': 790}