<commit_before>/* 
	hotlinkr 
	Version: 0.1
	Copyright 2009 <NAME> (digitalbush.com)	
	Licensed under the MIT license (http://github.com/digitalBush/hotlinkr/raw/master/LICENSE)
	
	If you are reading this because you were hotlinking to a script hoted on another site, then shame on you.  
	Please go get the script you need and host it from your own server using you own bandwidth.
	
	If you're not sure why what you're doing is wrong, please visit http://altlab.com/hotlinking.html
*/

(function(type,url) {
	var body=null;

	function doTags(tag,fn){
		var elms=document.getElementsByTagName(tag);
		for (var i = -1, len = elms.length; ++i < len; )
			fn.call(elms[i]);		
	}
	
	var isIE=(/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent));
	
	function chooseRandomly(obj,seed) {
		var index = -1, item = null;
		if( !seed ) {
			seed=[];
			for(var key in obj){
				if(obj.hasOwnProperty(key))
					seed.push(key);				
			}		
		}
		index=Math.floor(Math.random() * seed.length);
		if(typeof(console) !== 'undefined' && typeof(console.log) !== 'undefined')
			console.log("hotlinkr >> type = " + seed[index]);
		return obj[seed[index]];
	}
		
	var types={
		alert:function(){alert("Hotlinking is bad.  Please stop hotlinking to "+url);},
		redirect: function(){window.location.href="http://"+url;},
		link:function(){doTags("a",function(){this.href="http://"+url;});},
		hide:function(){body.style.display="none";},
		banner:function(){
			var banner=document.createElement("div");
			banner.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100px;border:1px solid #f00;line-height:100px;text-align:center;color:#f00;background:#fff");
			banner.innerText="Script Hosting provided courtesy of "+url+"<br/>To remove this message, please host scripts from "+url+" on your own server.";		
			body.appendChild(banner);
			body.style.paddingTop="100px";
		},
		cornify:function(){
			var s=document.createElement('script');
			s.src='http://cornify.com/js/cornify.js';
			body.appendChild(s);
			
			setInterval(function(){cornify_add();},5000);
		},
		translate:function(){
			window.location.href="http://translate.google.com/translate?tl=sw&u="+window.location.href;
		},
		pad:function(){doTags("div",function(){this.style.padding="300px";});},
		title:function(){document.title=url+" is my daddy!"},
		hasselhoff:function(){doTags("img",function(){this.src="http://farm1.static.flickr.com/54/127503978_0c1a5a0f4b_t.jpg"})},
		overlay:function(){
			var banner=document.createElement("img");
			banner.setAttribute("style",'position:absolute;top:0;width:100%;height:' + window.outerHeight + 'px;right:0;z-index:1000;');			
			body.appendChild(banner);
		},
		flip:function(){
			if( !isIE ) {
				body.setAttribute('style',body.getAttribute('style') + "; -moz-transform: scaleY(-1);-webkit-transform: scaleY(-1);transform: scaleY(-1);filter: FlipV;");
			} else {
				doTags("img",function() {
					this.setAttribute('style', this.getAttribute('style') + "; -moz-transform: scaleY(-1);-webkit-transform: scaleY(-1);transform: scaleY(-1);filter: FlipV;");
				});
			}
		},
		fail:function() {
			window.location.href = "http://farm4.static.flickr.com/3102/2780516431_28b7d23cfc.jpg";
		}
	};
	
	if( isIE ) {
		types.resize=function(x,y) {
			if(x && y) {
				window.resizeBy(x,y);
			}else {
				var local = types, v = new Date().getUTCMilliseconds()%2 == 0 ? -1 : 1;
				setInterval( function() { try{local.resize(v,v);}catch(e){} }, 10);
			}
		};
		types.spaz=function() {
			var local = types;
			setInterval( function() { var v = new Date().getUTCMilliseconds()%2 == 0 ? -1 : 1; try{local.resize(v,v);}catch(e){} }, 1);
		};
	}
	
	(window.addEventListener ? window.addEventListener : window.attachEvent)(isIE?"onload":"load",function(){
		body=document.body?document.body:document.getElementsByTagName("body")[0];
		(chooseRandomly( types, type === "random" ? undefined : type.split(',') ))();
	}, false);
})("random","digitalbush.com");<commit_msg>removing unnecessary css properties on flip<commit_after>/* 
	hotlinkr 
	Version: 0.1
	Copyright 2009 <NAME> (digitalbush.com)	
	Licensed under the MIT license (http://github.com/digitalBush/hotlinkr/raw/master/LICENSE)
	
	If you are reading this because you were hotlinking to a script hoted on another site, then shame on you.  
	Please go get the script you need and host it from your own server using you own bandwidth.
	
	If you're not sure why what you're doing is wrong, please visit http://altlab.com/hotlinking.html
*/

(function(type,url) {
	var body=null;

	function doTags(tag,fn){
		var elms=document.getElementsByTagName(tag);
		for (var i = -1, len = elms.length; ++i < len; )
			fn.call(elms[i]);		
	}
	
	var isIE=(/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent));
	
	function chooseRandomly(obj,seed) {
		var index = -1, item = null;
		if( !seed ) {
			seed=[];
			for(var key in obj){
				if(obj.hasOwnProperty(key))
					seed.push(key);				
			}		
		}
		index=Math.floor(Math.random() * seed.length);
		if(typeof(console) !== 'undefined' && typeof(console.log) !== 'undefined')
			console.log("hotlinkr >> type = " + seed[index]);
		return obj[seed[index]];
	}
		
	var types={
		alert:function(){alert("Hotlinking is bad.  Please stop hotlinking to "+url);},
		redirect: function(){window.location.href="http://"+url;},
		link:function(){doTags("a",function(){this.href="http://"+url;});},
		hide:function(){body.style.display="none";},
		banner:function(){
			var banner=document.createElement("div");
			banner.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100px;border:1px solid #f00;line-height:100px;text-align:center;color:#f00;background:#fff");
			banner.innerText="Script Hosting provided courtesy of "+url+"<br/>To remove this message, please host scripts from "+url+" on your own server.";		
			body.appendChild(banner);
			body.style.paddingTop="100px";
		},
		cornify:function(){
			var s=document.createElement('script');
			s.src='http://cornify.com/js/cornify.js';
			body.appendChild(s);
			
			setInterval(function(){cornify_add();},5000);
		},
		translate:function(){
			window.location.href="http://translate.google.com/translate?tl=sw&u="+window.location.href;
		},
		pad:function(){doTags("div",function(){this.style.padding="300px";});},
		title:function(){document.title=url+" is my daddy!"},
		hasselhoff:function(){doTags("img",function(){this.src="http://farm1.static.flickr.com/54/127503978_0c1a5a0f4b_t.jpg"})},
		overlay:function(){
			var banner=document.createElement("img");
			banner.setAttribute("style",'position:absolute;top:0;width:100%;height:' + window.outerHeight + 'px;right:0;z-index:1000;');			
			body.appendChild(banner);
		},
		flip:function(){
			if( !isIE ) {
				body.setAttribute('style',body.getAttribute('style') + ";-moz-transform: scaleY(-1);-webkit-transform: scaleY(-1);transform: scaleY(-1);");
			} else {
				doTags("img",function() {
					this.setAttribute('style', this.getAttribute('style') + ";filter: FlipV;");
				});
			}
		},
		fail:function() {
			window.location.href = "http://farm4.static.flickr.com/3102/2780516431_28b7d23cfc.jpg";
		}
	};
	
	if( isIE ) {
		types.resize=function(x,y) {
			if(x && y) {
				window.resizeBy(x,y);
			}else {
				var local = types, v = new Date().getUTCMilliseconds()%2 == 0 ? -1 : 1;
				setInterval( function() { try{local.resize(v,v);}catch(e){} }, 10);
			}
		};
		types.spaz=function() {
			var local = types;
			setInterval( function() { var v = new Date().getUTCMilliseconds()%2 == 0 ? -1 : 1; try{local.resize(v,v);}catch(e){} }, 1);
		};
	}
	
	(window.addEventListener ? window.addEventListener : window.attachEvent)(isIE?"onload":"load",function(){
		body=document.body?document.body:document.getElementsByTagName("body")[0];
		(chooseRandomly( types, type === "random" ? undefined : type.split(',') ))();
	}, false);
})("random","digitalbush.com");
{'fraction_non_alphanumeric': 0.19157523016773867, 'fraction_numerical': 0.024341026611174172, 'mean_word_length': 4.6927494615936824, 'pattern_counts': {'":': 2, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '58793', 'n_tokens_mistral': 3147, 'n_tokens_neox': 2725, 'n_words': 480}