<commit_before>/*
 * jQuery Mass Animate, version 0.2 (2011-03-30)
 *
 * Copyright(c) 2011 <NAME>
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($) {
	// hack $.css for getting styles from CSS rule
	var oldCss = $.css;
	$.css = function(elem, name, extra) {
		if (!(elem.selectorText)) {
			return oldCss(elem, name, extra);
		}
		else {
			if (name == "opacity" && elem.style.filter) {
				// use hook for IE inside jQuery
				return oldCss(elem, name, extra);
			}
			else {
				var origName = $.camelCase(name),
				prop = $.cssProps[origName] || origName;
				return elem.style[prop];
			}
		}
	}

	// hack $.data for animations in IE 7, IE 8
	var cache = {};
	var mediator = function(original){
		return function (elem) {
			var id = elem.selectorText;
			if (id) {
				arguments[0] = cache[id] = cache[id] || {};
			}
			return original.apply($, arguments);
		};
	};
	$.data = mediator($.data);
	$.removeData = mediator($.removeData);

	// add additional style sheet that massanimate acts on
	var sheet = null;
	$(document).ready(function() {
		var elem = $('<style rel="mass-animate" type="text/css"></style>')
		.appendTo($('head'))[0];

		if (elem.sheet) {
			sheet = elem.sheet;
		}
		else {
			sheet = elem.styleSheet;
		}
	});

	function fetchRule(sheet, selector) {
		var rules = sheet.cssRules || sheet.rules;
		for (var i = 0, length = rules.length; i < length; i++) {
			// TODO: selectorText may not be correct in IE<9
			// as it splits selectors with ',' into multiple rules
			if (rules[i].selectorText.toLowerCase() == selector.toLowerCase()) {
				return rules[i];
			}
		}
		return null;
	}

	function insertRule(sheet, selector) {
		if (sheet.insertRule) {
			sheet.insertRule(selector + ' { }', 0);
		}
		else if (sheet.addRule) {
			sheet.addRule(selector, null, 0);<commit_msg>More concise.<commit_after>/*
 * jQuery Mass Animate, version 0.2 (2011-03-30)
 *
 * Copyright(c) 2011 <NAME>
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($) {
	// hack $.css for getting styles from CSS rule
	var oldCss = $.css;
	$.css = function(elem, name, extra) {
		if (!(elem.selectorText)) {
			return oldCss(elem, name, extra);
		}
		else {
			if (name == "opacity" && elem.style.filter) {
				// use hook for IE inside jQuery
				return oldCss(elem, name, extra);
			}
			else {
				var origName = $.camelCase(name),
				prop = $.cssProps[origName] || origName;
				return elem.style[prop];
			}
		}
	}

	// hack $.data for animations in IE 7, IE 8
	var cache = {};
	var mediator = function(original){
		return function (elem) {
			var id = elem.selectorText;
			if (id) {
				arguments[0] = cache[id] = cache[id] || {};
			}
			return original.apply($, arguments);
		};
	};
	$.data = mediator($.data);
	$.removeData = mediator($.removeData);

	// add additional style sheet that massanimate acts on
	var sheet = null;
	$(document).ready(function() {
		var elem = $('<style rel="mass-animate" type="text/css"></style>')
		.appendTo($('head'))[0];

		sheet = elem.sheet || elem.styleSheet;
	});

	function fetchRule(sheet, selector) {
		var rules = sheet.cssRules || sheet.rules;
		for (var i = 0, length = rules.length; i < length; i++) {
			// TODO: selectorText may not be correct in IE<9
			// as it splits selectors with ',' into multiple rules
			if (rules[i].selectorText.toLowerCase() == selector.toLowerCase()) {
				return rules[i];
			}
		}
		return null;
	}

	function insertRule(sheet, selector) {
		if (sheet.insertRule) {
			sheet.insertRule(selector + ' { }', 0);
		}
		else if (sheet.addRule) {
			sheet.addRule(selector, null, 0);
{'fraction_non_alphanumeric': 0.16688671771851069, 'fraction_numerical': 0.011618695537364668, 'mean_word_length': 3.1535087719298245, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '88373', 'n_tokens_mistral': 1473, 'n_tokens_neox': 1280, 'n_words': 346}