<commit_before>/*
 * 
 * preload
 * 
 * ---
 * @Copyright(c) 2014, falsandtru
 * @license MIT http://opensource.org/licenses/mit-license.php
 * @version 0.1.2
 * @updated 2014/02/23
 * @author falsandtru https://github.com/falsandtru/
 * @Compressor Closure Compiler
 */
(function(f,n,m,p){function q(a,b,h,f,c,d){var k=this;switch(!0){case "string"===typeof d:d={link:d};default:k=k instanceof a?k:a(h),k=c.setProperties.call(k,null,null)}var e;e=a.extend(!0,{gns:c.name,ns:f,link:"a:not([target])",filter:function(){return/(\/|\.html?|\.php)([#?].*)?$/.test(this.href)},lock:1E3,forward:null,interval:1E3,limit:2,cooldown:1E4,query:null,fix:!1,ajax:{dataType:"text",async:!0,timeout:1500}},d);e.nss={array:[c.name].concat(e.ns&&String(e.ns).split(".")||[])};a.extend(!0,
e=e.scope&&c.scope(e)||e,{id:0,nss:{name:e.ns||"",alias:c.alias?[c.alias].concat(e.nss.array.slice(1)).join("."):!1,event:e.nss.array.join("."),data:e.nss.array.join("-"),class4html:e.nss.array.join("-"),click:["click"].concat(e.nss.array.join(":")).join("."),mousemove:["mousemove"].concat(e.nss.array.join(":")).join("."),mouseover:["mouseover"].concat(e.nss.array.join(":")).join("."),mouseout:["mouseout"].concat(e.nss.array.join(":")).join(".")},target:null,volume:0,points:[],queue:[],xhr:null,timestamp:0,
option:d});a(function(){c.registrate.call(k,a,b,h,f,c,e)});return k}var g;g={name:"preload",alias:"",ids:[],settings:[0],count:0,parseHTML:null,setAlias:function(a){g.alias="string"===typeof a?a:g.alias;g.name===g.alias||f[g.alias]||(f[g.name][g.alias]=f.fn[g.name],f.fn[g.alias]=f[g.alias]=f.fn[g.name])},setProperties:function(a,b){var h=this;if(h instanceof f||h===f[g.name])h=h instanceof f&&b!==p?h.add(b):h,h[g.name]=f[g.name];return h},loaded:{},registrate:function(a,b,f,g,c,d){d.id=c.settings.length;
c.ids.push(d.id);c.settings[d.id]=d;b=d.fix?c.canonicalizeURL(b.location.href):b.location.href;c.loaded[b.replace(/#.*/,"")]=!0;this.find(d.link).filter(d.filter).unbind(d.nss.click).one(d.nss.click,d.id,function(b){var e=c.settings[b.data];b.timeStamp=(new Date).getTime();e.fix&&(this.href=c.canonicalizeURL(this.href));switch(!b.isDefaultPrevented()&&a.data(b.currentTarget,e.nss.data)){case "preload":case "lock":e.forward?(e.fix&&c.canonicalizeURL(b.currentTarget.href),!1===c.fire(e.forward,null,
[b,e.xhr,e.timeStamp])?"lock"===a.data(b.currentTarget,e.nss.data)?b.preventDefault():(c.click(e,b),a.removeData(b.currentTarget,e.nss.data)):(b.preventDefault(),a.removeData(b.currentTarget,e.nss.data))):"lock"===a.data(b.currentTarget,e.nss.data)?b.preventDefault():(c.click(e,b),a.removeData(b.currentTarget,e.nss.data));break;default:e.xhr&&4>e.xhr.readyState&&e.xhr.abort()}}).unbind(d.nss.mouseover).bind(d.nss.mouseover,d.id,function(a){c.settings[a.data].target=this}).unbind(d.nss.mouseout).bind(d.nss.mouseout,
d.id,function(a){c.settings[a.data].target=null}).unbind(d.nss.mousemove).bind(d.nss.mousemove,d.id,function(a){var b=c.settings[a.data];a.timeStamp=(new Date).getTime();b.points.unshift(a);b.points.splice(10,1);c.check(b,a,b.target)});setTimeout(function(){d.volume-=Number(!!d.volume);setTimeout(arguments.callee,d.cooldown)},d.cooldown)},check:function(a,b,h,r){var c,d,k;if(h)switch(c=a.fix?g.canonicalizeURL(b.currentTarget.href):b.currentTarget.href,d=a.queue,!0){case !g.settings[a.id]:case g.loaded[c.replace(/#.*/,
"")]:case 100<d.length:case a.interval?(new Date).getTime()-a.timestamp<a.interval:0:case a.volume>=a.limit:case a.target!==h:case a.target.protocol!==h.protocol:case a.target.host!==h.host:case f(h).is('[target="_blank"]'):case !function(a){if(3>a.length)return!1;var b,c,d;c=a[0].timeStamp-a[1].timeStamp;b=Math.pow(a[0].pageX-a[1].pageX,2)+Math.pow(a[0].pageY-a[1].pageY,2)/(c||1);d=a[1].timeStamp-a[2].timeStamp;a=Math.pow(a[1].pageX-a[2].pageX,2)+Math.pow(a[1].pageY-a[2].pageY,2)/(d||1);switch(!0){case 100<
c||100<d:return!1;case b<a+Math.pow(5,2)&&b<=Math.pow(25,2):return!0;default:return!1}}(a.points):break;default:for(;k=d.shift();)clearTimeout(k);k=setTimeout(function(){for(;k=d.shift();)clearTimeout(k);switch(!0){case !a.target:case b!==a.points[0]:case b.pageX!==a.points[0].pageX||b.pageY!==a.points[0].pageY:break;default:a.xhr&&4>a.xhr.readyState&&a.xhr.abort();g.loaded[c.replace(/#.*/,"")]=!0;++a.volume;a.timeStamp=b.timeStamp;f.data(a.target,a.nss.data,"preload");a.lock&&(f.data(a.target,a.nss.data,
"lock"),f(a.target).one(a.nss.click,b.timeStamp,function(b){if(f.data(b.currentTarget,a.nss.data)){f(this);var c=Math.max(a.lock-(new Date).getTime()+b.data,0);f.data(b.currentTarget,a.nss.data,"click");c&&(setTimeout(function(){"click"===f.data(b.currentTarget,a.nss.data)&&g.click(a,b);f.removeData(b.currentTarget,a.nss.data)},c),b.preventDefault())}}));var e=f.extend(!0,{},a.ajax,{success:function(){g.fire(a.ajax.success,this,arguments);g.loaded[this.url.replace(/#.*/,"")]=!0;a.volume-=Number(304===
arguments[2].status&&!!a.volume);"click"===f.data(b.currentTarget,a.nss.data)&&g.click(a,b);f.removeData(b.currentTarget,a.nss.data)},error:function(){g.fire(a.ajax.error,this,arguments);a.volume-=Number(!!a.volume);f.removeData(h,a.nss.data)}}),l=a.query;l&&(l=l.split("="),l=encodeURIComponent(l[0])+(0<l.length?"="+encodeURIComponent(l[1]):""));e.url=c.replace(/([^#]+)(#[^\s]*)?$/,"$1"+(l?(c.match(/\?/)?"&":"?")+l:"")+"$2");a.xhr=f.ajax(e)}},30);d.push(k)}},click:function(a,b){var h=b.currentTarget;
a.xhr&&4>a.xhr.readyState&&a.xhr.abort();f(b.currentTarget).removeData(a.nss.data);f(m).find(b.currentTarget)[0]&&(f(m).unbind(a.nss.click).one(a.nss.click,function(b){b.isDefaultPrevented()||(n.location.href=a.fix?g.canonicalizeURL(h.href):h.href)}),f(b.currentTarget).click());b.preventDefault()},canonicalizeURL:function(a){var b;b=g.trim(a);b=b.replace(/[<>"{}|\\^\[\]`\s].*/,"");b=/^https?:/i.test(b)?b:f("<a/>",{href:b})[0].href;b=encodeURI(decodeURI(b));return b=b.replace(/(?:%\w{2})+/g,function(b){return a.match(b.toLowerCase())||
b})},trim:function(a){if(String.prototype.trim)a=String(a).trim();else if(a=String(a).replace(/^\s+/,""))for(var b=a.length;--b;)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},fire:function(a,b,f,g){return"function"===typeof a?g?setTimeout(function(){a.apply(b,f)},0):a.apply(b,f):a}};(function(a,b,f,g,c){a.fn[c.name]=a[c.name]=function(){return q.apply(this,[a,b,f,g,c].concat([].slice.call(arguments)))};c.setProperties.call(a[c.name])}).apply(this,[].slice.call(arguments).concat([g]))})(jQuery,
window,document,void 0);<commit_msg>Compress: jquery.preload.js<commit_after>/*
 * 
 * preload
 * 
 * ---
 * @Copyright(c) 2014, falsandtru
 * @license MIT http://opensource.org/licenses/mit-license.php
 * @version 0.1.2
 * @updated 2014/02/23
 * @author falsandtru https://github.com/falsandtru/
 * @Compressor Closure Compiler
 */
(function(g,n,m,p){function q(a,b,c,g,d,f){var k=this;switch(!0){case "string"===typeof f:f={link:f};default:k=k instanceof a?k:a(c),k=d.setProperties.call(k,null,null)}var e;e=a.extend(!0,{gns:d.name,ns:g,link:"a:not([target])",filter:function(){return/(\/|\.html?|\.php)([#?].*)?$/.test(this.href)},lock:1E3,forward:null,interval:1E3,limit:2,cooldown:1E4,query:null,encode:!1,prefetch:null,ajax:{dataType:"text",async:!0,timeout:1500}},f);e.nss={array:[d.name].concat(e.ns&&String(e.ns).split(".")||
[])};a.extend(!0,e=e.scope&&d.scope(e)||e,{id:0,nss:{name:e.ns||"",alias:d.alias?[d.alias].concat(e.nss.array.slice(1)).join("."):!1,event:e.nss.array.join("."),data:e.nss.array.join("-"),class4html:e.nss.array.join("-"),click:["click"].concat(e.nss.array.join(":")).join("."),mousemove:["mousemove"].concat(e.nss.array.join(":")).join("."),mouseover:["mouseover"].concat(e.nss.array.join(":")).join("."),mouseout:["mouseout"].concat(e.nss.array.join(":")).join(".")},target:null,volume:0,points:[],queue:[],
xhr:null,timestamp:0,option:f});a(function(){d.registrate.call(k,a,b,c,g,d,e)});return k}var c;c={name:"preload",alias:"",ids:[],settings:[0],count:0,parseHTML:null,setAlias:function(a){c.alias="string"===typeof a?a:c.alias;c.name===c.alias||g[c.alias]||(g[c.name][c.alias]=g.fn[c.name],g.fn[c.alias]=g[c.alias]=g.fn[c.name])},setProperties:function(a,b){var h=this;if(h instanceof g||h===g[c.name])h=h instanceof g&&b!==p?h.add(b):h,h[c.name]=g[c.name];return h},req:{},loaded:{},registrate:function(a,
b,c,g,d,f){f.id=d.settings.length;d.ids.push(f.id);d.settings[f.id]=f;b=f.encode?d.canonicalizeURL(b.location.href):b.location.href;d.loaded[b.replace(/#.*/,"")]=!0;this.find(f.link).filter(f.filter).unbind(f.nss.click).one(f.nss.click,f.id,function(b){var e=d.settings[b.data];b.timeStamp=(new Date).getTime();e.encode&&(this.href=d.canonicalizeURL(this.href));switch(!b.isDefaultPrevented()&&a.data(b.currentTarget,e.nss.data)){case "preload":case "lock":e.forward?(e.encode&&d.canonicalizeURL(b.currentTarget.href),
!1===d.fire(e.forward,null,[b,e.xhr,e.timeStamp])?"lock"===a.data(b.currentTarget,e.nss.data)?b.preventDefault():(d.click(e,b),a.removeData(b.currentTarget,e.nss.data)):(b.preventDefault(),a.removeData(b.currentTarget,e.nss.data))):"lock"===a.data(b.currentTarget,e.nss.data)?b.preventDefault():(d.click(e,b),a.removeData(b.currentTarget,e.nss.data));break;default:e.xhr&&4>e.xhr.readyState&&e.xhr.abort()}}).unbind(f.nss.mouseover).bind(f.nss.mouseover,f.id,function(a){d.settings[a.data].target=this}).unbind(f.nss.mouseout).bind(f.nss.mouseout,
f.id,function(a){d.settings[a.data].target=null}).unbind(f.nss.mousemove).bind(f.nss.mousemove,f.id,function(a){var b=d.settings[a.data];a.timeStamp=(new Date).getTime();b.points.unshift(a);b.points.splice(10,1);d.check(b,a,b.target)});setTimeout(function(){f.volume-=Number(!!f.volume);setTimeout(arguments.callee,f.cooldown)},f.cooldown);f.prefetch&&a(f.prefetch).each(function(){d.prefetch.call(this)})},check:function(a,b,h,r){var d,f,k;if(h)switch(d=a.encode?c.canonicalizeURL(b.currentTarget.href):
b.currentTarget.href,f=a.queue,!0){case !c.settings[a.id]:case c.loaded[d.replace(/#.*/,"")]:case 100<f.length:case a.interval?(new Date).getTime()-a.timestamp<a.interval:0:case a.volume>=a.limit:case a.target!==h:case a.target.protocol!==h.protocol:case a.target.host!==h.host:case g(h).is('[target="_blank"]'):case !function(a){if(3>a.length)return!1;var b,c,d;c=a[0].timeStamp-a[1].timeStamp;b=Math.pow(a[0].pageX-a[1].pageX,2)+Math.pow(a[0].pageY-a[1].pageY,2)/(c||1);d=a[1].timeStamp-a[2].timeStamp;
a=Math.pow(a[1].pageX-a[2].pageX,2)+Math.pow(a[1].pageY-a[2].pageY,2)/(d||1);switch(!0){case 100<c||100<d:return!1;case b<a+Math.pow(5,2)&&b<=Math.pow(25,2):return!0;default:return!1}}(a.points):break;default:for(;k=f.shift();)clearTimeout(k);k=setTimeout(function(){for(;k=f.shift();)clearTimeout(k);switch(!0){case !a.target:case b!==a.points[0]:case b.pageX!==a.points[0].pageX||b.pageY!==a.points[0].pageY:break;default:a.xhr&&4>a.xhr.readyState&&a.xhr.abort();c.loaded[d.replace(/#.*/,"")]=!0;++a.volume;
a.timeStamp=b.timeStamp;g.data(a.target,a.nss.data,"preload");a.lock&&(g.data(a.target,a.nss.data,"lock"),g(a.target).one(a.nss.click,b.timeStamp,function(b){if(g.data(b.currentTarget,a.nss.data)){g(this);var d=Math.max(a.lock-(new Date).getTime()+b.data,0);g.data(b.currentTarget,a.nss.data,"click");d&&(setTimeout(function(){"click"===g.data(b.currentTarget,a.nss.data)&&c.click(a,b);g.removeData(b.currentTarget,a.nss.data)},d),b.preventDefault())}}));var e=g.extend(!0,{},a.ajax,{success:function(){c.fire(a.ajax.success,
this,arguments);c.loaded[this.url.replace(/#.*/,"")]=!0;for(var e in c.req){var f=c.req[e];f&&4>f.readyState&&(f.abort(),c.req[e]=null)}a.volume-=Number(304===arguments[2].status&&!!a.volume);if("click"===g.data(b.currentTarget,a.nss.data))c.click(a,b);else{var h;a.prefetch&&(h={async:!0,dataType:"text",success:function(){c.loaded[this.url]=!0;c.req[d]=null}},e=g(arguments[0]),e.filter(a.prefetch).add(e.find(a.prefetch)).each(function(){c.prefetch.call(this,h)}))}g.removeData(b.currentTarget,a.nss.data)},
error:function(){c.fire(a.ajax.error,this,arguments);a.volume-=Number(!!a.volume);g.removeData(h,a.nss.data)}}),l=a.query;l&&(l=l.split("="),l=encodeURIComponent(l[0])+(0<l.length?"="+encodeURIComponent(l[1]):""));e.url=d.replace(/([^#]+)(#[^\s]*)?$/,"$1"+(l?(d.match(/\?/)?"&":"?")+l:"")+"$2");a.xhr=g.ajax(e)}},30);f.push(k)}},click:function(a,b){var h=b.currentTarget;a.xhr&&4>a.xhr.readyState&&a.xhr.abort();g(b.currentTarget).removeData(a.nss.data);g(m).find(b.currentTarget)[0]&&(g(m).unbind(a.nss.click).one(a.nss.click,
function(b){b.isDefaultPrevented()||(n.location.href=a.encode?c.canonicalizeURL(h.href):h.href)}),g(b.currentTarget).click());b.preventDefault()},prefetch:function(a){var b;switch(this.tagName.toLowerCase()){case "link":b=this.href;break;case "script":case "img":case "iframe":b=this.src}a?b&&!c.loaded[b]&&(a.url=b,c.req[b]=g.ajax(a)):c.loaded[b]=!0},canonicalizeURL:function(a){var b;b=c.trim(a);b=b.replace(/[<>"{}|\\^\[\]`\s].*/,"");b=/^https?:/i.test(b)?b:g("<a/>",{href:b})[0].href;b=encodeURI(decodeURI(b));
return b=b.replace(/(?:%\w{2})+/g,function(b){return a.match(b.toLowerCase())||b})},trim:function(a){if(String.prototype.trim)a=String(a).trim();else if(a=String(a).replace(/^\s+/,""))for(var b=a.length;--b;)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},fire:function(a,b,c,g){return"function"===typeof a?g?setTimeout(function(){a.apply(b,c)},0):a.apply(b,c):a}};(function(a,b,c,g,d){a.fn[d.name]=a[d.name]=function(){return q.apply(this,[a,b,c,g,d].concat([].slice.call(arguments)))};
d.setProperties.call(a[d.name])}).apply(this,[].slice.call(arguments).concat([c]))})(jQuery,window,document,void 0);
{'fraction_non_alphanumeric': 0.3009208103130755, 'fraction_numerical': 0.01701657458563536, 'mean_word_length': 10.055374592833877, 'pattern_counts': {'":': 18, '<': 21, '<?xml version=': 0, '>': 18, 'https://': 2, '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': '5071455', 'n_tokens_mistral': 6098, 'n_tokens_neox': 6037, 'n_words': 179}