<commit_before>/*
 *
 * name: cookies-bar
 * description: Simple and non-annoying Cookie-bar for your webstite 
 * version: 1.2 (11.11.2014)
 * author: <NAME>
 * www: http://piotrpotera.com
 * github: https://github.com/arti040
 *
 */
var cookiesBar=function(e){function t(e,t){var n;if(e=="body"){n=document.body}else{n=document.getElementById(e)}var r;if(n.currentStyle){r=n.currentStyle[t]}else if(window.getComputedStyle){r=document.defaultView.getComputedStyle(n,null).getPropertyValue(t)}return r}function n(e,t,n){if(n){var r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);var i="; expires="+r.toGMTString()}else var i="";document.cookie=e+"="+t+i+"; path=/"}function r(e){var t=e+"=";var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)==" ")i=i.substring(1,i.length);if(i.indexOf(t)==0)return i.substring(t.length,i.length)}}function i(e){n(e,"",-1)}function s(){var e,t,n,r=arguments[0]||{},i=1,s=arguments.length;if(s===i){console.log("Only one argument passed. Returning...");return false}for(;i<s;++i){if((e=arguments[i])!=null){for(t in e){n=e[t];if(r===n){continue}if(n!==undefined){r[t]=n}}}}return r}function o(e){e=document.getElementById(e);elOpacity=e.style.opacity;var t=setInterval(function(){e.style.opacity=--elOpacity;if(--elOpacity==0){clearInterval(t);d.style.display="none"}},1e3)}var u=r(u);if(!u){var a,f,l={};var c=t("body","font-size");var h=Math.floor(window.innerWidth/parseFloat(c)*10)/10;var p={mainText:"We use cookies to track usage and preferences.",agreeLinkLabel:"I understand",declineLinkLabel:"Decline",detailsLinkLabel:"Cookies Policy »",declineURL:"",detailsURL:"",detailsLink:false,declineLink:false,expireDays:365,cookieEnabled:false,showSpeed:25,hideSpeed:5,position:"absolute",reverseMode:false};l=s({},p,e);if(l.detailsLink===true&&l.detailsURL.toString().length==0){l.mainText="Error: settings.detailsURL is empty. Check it!";l.detailsLink=false}if(l.declineLink===true&&l.declineURL.toString().length==0){l.mainText="Error: settings.declineURL is empty. Check it!";l.detailsLink=false}var d=document.createElement("div");d.setAttribute("id","cookies-bar");d.style.position=l.position;if(l.detailsLink){var v=document.createElement("a");v.setAttribute("href",l.detailsURL);v.innerHTML=l.detailsLinkLabel}if(!l.reverseMode){var m=document.createElement("a");m.setAttribute("id","accept-link");m.setAttribute("href","#");m.innerHTML=l.agreeLinkLabel}if(l.declineLink||l.reverseMode){var g=document.createElement("a");g.setAttribute("id","decline-link");g.setAttribute("href",l.declineURL);g.innerHTML=l.declineLinkLabel}var y=document.createElement("p");y.innerHTML=l.mainText;var b=window.addEventListener?"":"on";var w=window.addEventListener?"addEventListener":"attachEvent";if(!l.reverseMode){m[w](b+"click",function(e){e.preventDefault();if(h<64){d.style.display="none"}else{var r=parseInt(t("cookies-bar","top"));var i=parseInt(t("cookies-bar","height"));clearInterval(a);f=setInterval(function(){r=--r;d.style.top=r+"px";if(r==i){clearInterval(f);d.style.display="none"}},l.hideSpeed)}if(l.cookieEnabled){n(u,1,l.expireDays)}},false)}if(l.detailsLink){y.appendChild(v)}d.appendChild(y);if(l.declineLink||l.reverseMode){d.appendChild(g)}if(!l.reverseMode){d.appendChild(m)}document.body.appendChild(d)}else{return null}if(h<64){d.style.top=0}else{d.style.display="block";var E=parseInt(t("cookies-bar","height"));d.style.top=-E+"px";var S=parseInt(t("cookies-bar","top"));a=setInterval(function(){S=++S;d.style.top=S+"px";if(parseInt(d.style.top)==0){clearInterval(a)}},l.showSpeed)}if(l.reverseMode){}}<commit_msg>Minified version updated.<commit_after>/*
 * name: cookies-bar
 * description: Simple and non-annoying Cookie-bar for your webstite 
 * version: 1.2 (11.11.2014)
 * author: <NAME>
 * www: http://piotrpotera.com
 * github: https://github.com/arti040
 */
var cookiesBar=function(e){function t(e,t){var n;if(e=="body"){n=document.body}else{n=document.getElementById(e)}var r;if(n.currentStyle){r=n.currentStyle[t]}else if(window.getComputedStyle){r=document.defaultView.getComputedStyle(n,null).getPropertyValue(t)}return r}function n(e,t,n){if(n){var r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);var i="; expires="+r.toGMTString()}else var i="";document.cookie=e+"="+t+i+"; path=/"}function r(e){var t=e+"=";var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)==" ")i=i.substring(1,i.length);if(i.indexOf(t)==0)return i.substring(t.length,i.length)}}function i(e){n(e,"",-1)}function s(){var e,t,n,r=arguments[0]||{},i=1,s=arguments.length;if(s===i){console.log("Only one argument passed. Returning...");return false}for(;i<s;++i){if((e=arguments[i])!=null){for(t in e){n=e[t];if(r===n){continue}if(n!==undefined){r[t]=n}}}}return r}function o(e){e=document.getElementById(e);elOpacity=e.style.opacity;var t=setInterval(function(){e.style.opacity=--elOpacity;if(--elOpacity==0){clearInterval(t);d.style.display="none"}},1e3)}var u=r(u);if(!u){var a,f,l={};var c=t("body","font-size");var h=Math.floor(window.innerWidth/parseFloat(c)*10)/10;var p={mainText:"We use cookies to track usage and preferences.",agreeLinkLabel:"I understand",declineLinkLabel:"Decline",detailsLinkLabel:"Cookies Policy »",declineURL:"",detailsURL:"",detailsLink:false,declineLink:false,expireDays:365,cookieEnabled:false,showSpeed:25,hideSpeed:5,position:"absolute",reverseMode:false};l=s({},p,e);if(l.detailsLink===true&&l.detailsURL.toString().length==0){l.mainText="Error: settings.detailsURL is empty. Check it!";l.detailsLink=false}if(l.declineLink===true&&l.declineURL.toString().length==0){l.mainText="Error: settings.declineURL is empty. Check it!";l.detailsLink=false}var d=document.createElement("div");d.setAttribute("id","cookies-bar");d.style.position=l.position;if(l.detailsLink){var v=document.createElement("a");v.setAttribute("href",l.detailsURL);v.innerHTML=l.detailsLinkLabel}if(!l.reverseMode){var m=document.createElement("a");m.setAttribute("id","accept-link");m.setAttribute("href","#");m.innerHTML=l.agreeLinkLabel}if(l.declineLink||l.reverseMode){var g=document.createElement("a");g.setAttribute("id","decline-link");g.setAttribute("href",l.declineURL);g.innerHTML=l.declineLinkLabel}var y=document.createElement("p");y.innerHTML=l.mainText;var b=window.addEventListener?"":"on";var w=window.addEventListener?"addEventListener":"attachEvent";if(!l.reverseMode){m[w](b+"click",function(e){e.preventDefault?e.preventDefault():e.returnValue=false;if(h<64){d.style.display="none"}else{var r=parseInt(t("cookies-bar","top"));var i=parseInt(t("cookies-bar","height"));clearInterval(a);f=setInterval(function(){r=--r;d.style.top=r+"px";if(r==i){clearInterval(f);d.style.display="none"}},l.hideSpeed)}if(l.cookieEnabled){n(u,1,l.expireDays)}},false)}if(l.detailsLink){y.appendChild(v)}d.appendChild(y);if(l.declineLink||l.reverseMode){d.appendChild(g)}if(!l.reverseMode){d.appendChild(m)}document.body.appendChild(d)}else{return null}if(h<64){d.style.top=0}else{d.style.display="block";var E=d.offsetHeight;d.style.top=-E+"px";var S=parseInt(t("cookies-bar","top"));a=setInterval(function(){S=++S;d.style.top=S+"px";if(parseInt(d.style.top)==0){clearInterval(a)}},l.showSpeed)}if(l.reverseMode){}}
{'fraction_non_alphanumeric': 0.23783858485351023, 'fraction_numerical': 0.013819789939192924, 'mean_word_length': 12.811068702290076, 'pattern_counts': {'":': 4, '<': 13, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1739191', 'n_tokens_mistral': 2685, 'n_tokens_neox': 2656, 'n_words': 187}