<commit_before>/*
CSS Browser Selector v0.4.5 (Jan 21, 2012)

-- original --
<NAME> (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
-- /original --

Fork project: http://code.google.com/p/css-browser-selector/
<NAME> (shj at xenosi.de)
*/
function css_browser_selector(u) {
	var ua = u.toLowerCase(),
		is = function (t) {
			return ua.indexOf(t) > -1
		},
		g = 'gecko',
		w = 'webkit',
		s = 'safari',
		c = 'chrome',
		o = 'opera',
		m = 'mobile',
		r = window.devicePixelRatio ? (window.devicePixelRatio + '').replace('.', '_') : '1';
	return [
/* IE */
		(!(/opera|webtv/i.test(ua)) && /msie\s(\d+)/.test(ua) && (v = RegExp.$1 * 1)) ?
			('ie ie' + v + ((v == 6 || v == 7) ?
				' ie67 ie678 ie6789' : (v == 8) ?
					' ie678 ie6789' : (v == 9) ?
						' ie6789 ie9m' : (v > 9 ) ?
							' ie9m' : '')) :
/* FF */
		(/firefox\/(\d+)\.(\d+)/.test(ua) && (re = RegExp)) ? g + ' ff ff' + re.$1 + ' ff' + re.$1 + '_' + re.$2 :
			is('gecko/') ? g :
/* Opera */
		is('opera') ? o + (/version\/(\d+)/.test(ua) ? ' ' + o + RegExp.$1 :
			(/opera(\s|\/)(\d+)/.test(ua) ? ' ' + o + RegExp.$2 : '')) :
/* K */
		is('konqueror') ? 'konqueror' :
/* Black Berry */
		is('blackberry') ? m + ' blackberry' :
/* Android */
		is('android') ? m + ' android' :
/* Chrome */
		is(c) ? w + ' ' + c :
			is('crios') ? w + ' ' + c :
/* Iron */
		is('iron') ? w + ' iron' :
/* Safari */
		is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.$1 : '') :
/* Mozilla */
		is('mozilla/') ? g : '',
/* Machine */
		is('j2me') ? m + ' j2me' :
		is('iphone') ? m + ' iphone' :
		is('ipod') ? m + ' ipod' :
		is('ipad') ? m + ' ipad' :
		is('mac') ? 'mac' :
		is('darwin') ? 'mac' :
		is('webtv') ? 'webtv' :
		is('win') ? 'win' + (is('windows nt 6.0') ? ' vista' : '') :
		is('freebsd') ? 'freebsd' :
		(is('x11') || is('linux')) ? 'linux' : '',
/* Ratio (Retina) */
		(r != '1') ? ' retina ratio' + r : '',
		'js portrait'].join(' ');
};
(function(d, w) {
	var _c = css_browser_selector(navigator.userAgent);
	var h = d.documentElement;
	h.className += ' ' + _c;
	var _d = _c.replace(/^\s*|\s*$/g, '').split(/ +/);
	for(var i = 0; i < _d.length; i ++) {
		w['CSSBS_' + _d[i]] = 1;
	}
	if(w.jQuery) {
		(function($) {
			$(function() {
				var p = 'portarit', l = 'landscape';
				var m = 'smart', mw = 'smartwide', t = 'tablet', tw = 'tabletwide';
				var $h = $(h);
				function CSSSelectorUpdateOrientation() {
					switch(w.orientation) {
						case 90:
						case -90:
							$h.removeClass(p).addClass(l);
							break;
						default:
							$h.removeClass(l).addClass(p);
							break;
					}
				}
				if($h.hasClass('mobile') && w.orientation != undefined) {
					$(w).on('orientationchange', CSSSelectorUpdateOrientation);
					CSSSelectorUpdateOrientation();
				}
				function CSSSelectorUpdateSize() {
					try {
						var c = d.documentElement.clientWidth || d.body.clientWidth;
						$h.removeClass(m).removeClass(mw).removeClass(t).removeClass(tw).removeClass('pc');
						$h.addClass(
							(c <= 360) ? m :
							(c <= 640) ? mw :
							(c <= 768) ? t :
							(c <= 1024) ? tw : 'pc'
						);
					} catch(e) {}
				}
				$(w).on('resize', CSSSelectorUpdateSize);
				CSSSelectorUpdateSize();
			});
		})(w.jQuery);
	}
})(document, window);

<commit_msg>in ie7, flexslider crash fix<commit_after>/*
CSS Browser Selector v0.4.5 (Jan 21, 2012)

-- original --
<NAME> (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
-- /original --

Fork project: http://code.google.com/p/css-browser-selector/
<NAME> (shj at xenosi.de)
*/
function css_browser_selector(u) {
	var ua = u.toLowerCase(),
		is = function (t) {
			return ua.indexOf(t) > -1
		},
		g = 'gecko',
		w = 'webkit',
		s = 'safari',
		c = 'chrome',
		o = 'opera',
		m = 'mobile',
		r = window.devicePixelRatio ? (window.devicePixelRatio + '').replace('.', '_') : '1';
	return [
/* IE */
		(!(/opera|webtv/i.test(ua)) && /msie\s(\d+)/.test(ua) && (v = RegExp.$1 * 1)) ?
			('ie ie' + v + ((v == 6 || v == 7) ?
				' ie67 ie678 ie6789' : (v == 8) ?
					' ie678 ie6789' : (v == 9) ?
						' ie6789 ie9m' : (v > 9 ) ?
							' ie9m' : '')) :
/* FF */
		(/firefox\/(\d+)\.(\d+)/.test(ua) && (re = RegExp)) ? g + ' ff ff' + re.$1 + ' ff' + re.$1 + '_' + re.$2 :
			is('gecko/') ? g :
/* Opera */
		is('opera') ? o + (/version\/(\d+)/.test(ua) ? ' ' + o + RegExp.$1 :
			(/opera(\s|\/)(\d+)/.test(ua) ? ' ' + o + RegExp.$2 : '')) :
/* K */
		is('konqueror') ? 'konqueror' :
/* Black Berry */
		is('blackberry') ? m + ' blackberry' :
/* Android */
		is('android') ? m + ' android' :
/* Chrome */
		is(c) ? w + ' ' + c :
			is('crios') ? w + ' ' + c :
/* Iron */
		is('iron') ? w + ' iron' :
/* Safari */
		is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.$1 : '') :
/* Mozilla */
		is('mozilla/') ? g : '',
/* Machine */
		is('j2me') ? m + ' j2me' :
		is('iphone') ? m + ' iphone' :
		is('ipod') ? m + ' ipod' :
		is('ipad') ? m + ' ipad' :
		is('mac') ? 'mac' :
		is('darwin') ? 'mac' :
		is('webtv') ? 'webtv' :
		is('win') ? 'win' + (is('windows nt 6.0') ? ' vista' : '') :
		is('freebsd') ? 'freebsd' :
		(is('x11') || is('linux')) ? 'linux' : '',
/* Ratio (Retina) */
		(r != '1') ? ' retina ratio' + r : '',
		'js portrait'].join(' ');
};
(function(d, w) {
	var _c = css_browser_selector(navigator.userAgent);
	var h = d.documentElement;
	h.className += ' ' + _c;
	var _d = _c.replace(/^\s*|\s*$/g, '').split(/ +/);
	for(var i = 0; i < _d.length; i ++) {
		w['CSSBS_' + _d[i]] = 1;
	}
	if(w.jQuery) {
		(function($) {
			$(w).load(function() {
				var p = 'portarit', l = 'landscape';
				var m = 'smart', mw = 'smartwide', t = 'tablet', tw = 'tabletwide';
				var $h = $(h);
				function CSSSelectorUpdateOrientation() {
					switch(w.orientation) {
						case 90:
						case -90:
							$h.removeClass(p).addClass(l);
							break;
						default:
							$h.removeClass(l).addClass(p);
							break;
					}
				}
				if($h.hasClass('mobile') && w.orientation != undefined) {
					$(w).on('orientationchange', CSSSelectorUpdateOrientation);
					CSSSelectorUpdateOrientation();
				}
				function CSSSelectorUpdateSize() {
					try {
						var c = d.documentElement.clientWidth || d.body.clientWidth;
						$h.removeClass(m).removeClass(mw).removeClass(t).removeClass(tw).removeClass('pc');
						$h.addClass(
							(c <= 360) ? m :
							(c <= 640) ? mw :
							(c <= 768) ? t :
							(c <= 1024) ? tw : 'pc'
						);
					} catch(e) {}
				}
				/* ie7 cpu 100% fix */
				setTimeout(function() {
					$(w).on('resize', CSSSelectorUpdateSize);
					CSSSelectorUpdateSize();
				}, 500);
			});
		})(w.jQuery);
	}
})(document, window);


{'fraction_non_alphanumeric': 0.25220153024397285, 'fraction_numerical': 0.02252057167605024, 'mean_word_length': 2.5274949083503055, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2936635', 'n_tokens_mistral': 3368, 'n_tokens_neox': 2791, 'n_words': 538}