<commit_before>/*! jQuery Event Based Animation - v1.0.0 - 2012-12-21
* https://github.com/DeuxHuitHuit/jQuery-event-based-animation
* Copyright (c) 2012 <NAME> ONF/NFB; Licensed MIT */
(function(a,b){"use strict",a.fn.eventAnimate=function(b){var c=a(this),d=a(window),e=function(){return(new Date).getTime()},f=function(a,b){return!a||!b?0:a/b},g=e(),h=g,i={x:0,y:0},j={x:0,y:0},k={x:0,y:0},l={x:0,y:0,force:!1},m={x:0,y:0},n=function(a,b){var c=window,d=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame||c.oRequestAnimationFrame||c.setTimeout;return d(a,d===c.setTimeout?b:D.container.get(0))},o=function(a){var b=window,c=b.cancelAnimationFrame||b.webkitCancelRequestAnimationFrame||b.mozCancelRequestAnimationFrame||b.oCancelRequestAnimationFrame||b.msCancelRequestAnimationFrame||b.clearTimeout;return c(a)},p=null,q=!1,r={left:0,top:0},s=function(a,b,c){c.x=b.container.scrollLeft(),c.y=b.container.scrollTop()},t=function(a,b,c){var d=b.container.offset()||r;c.x=a.pageX-d.left,c.y=a.pageY-d.top},u=function(a,b,c){var d=b.container.offset()||r,e=a.originalEvent.touches[0];c.x=e.pageX-d.left,c.y=e.pageY-d.top},v={scroll:s,click:t,mouseover:t,mousemove:t,touchmove:u},w=function(b){var d=v[D.event];if(a.isFunction(d)){d.call(c,b,D,k);if(!q||!!D.restartOnEvent)g=e()-1,D.delayStart?x():C()}else!window.console||console.err('No strategy found for event "'+D.event+'"')},x=function(){return B(D)?(o(p),p=null):p=n(C,D.tick),p},y=function(b,d,e,f){if(!a.isFunction(b.duration))return{x:(b.duration.x||b.duration||Math.abs(d.x))*b.durationRatio,y:(b.duration.y||b.duration||Math.abs(d.y))*b.durationRatio};var g=b.duration.call(c,b,d);return{x:Math.abs(g.x||g||d.x)*b.durationRatio,y:Math.abs(g.y||g||d.y)*b.durationRatio}},z=function(b){var c=null;return a.isFunction(b.startValues)&&(c=b.startValues(b)),c||(c=m),c},A=function(a){return{x:j.x+Math.min(1,f(a,i.x))*(k.x-j.x),y:j.y+Math.min(1,f(a,i.y))*(k.y-j.y)}},B=function(b){return a.isFunction(b.stop)?b.stop(b):!1},C=function(){if(!B(D)){l.x=k.x-m.x,l.y=k.y-m.y;if(l.x!==0||l.y!==0||l.force===!0){if(g>h){var b=z(D);l.x=k.x-b.x,l.y=k.y-b.y,i=y(D,l,b,k),j=b;if(!q||!!D.restartOnEvent)h=e()}var d=e()-h,f=A(d),n=D.easing||a.easing.def||"linear",o={x:a.easing[n](f.x,Math.min(d,i.x),j.x,k.x-j.x,i.x),y:a.easing[n](f.y,Math.min(d,i.y),j.y,k.y-j.y,i.y)};!!window.console&&!!D.debug&&((D.debug===!0||D.debug.x===!0)&&console.log(h+" Target X "+parseInt(k.x,10)+" - Start "+parseInt(j.x,10)+" - Linear "+parseInt(f.x,10)+" - Eased "+parseInt(o.x,10)+" - Time "+Math.min(d,i.x)+" - Duration "+i.x),(D.debug===!0||D.debug.y===!0)&&console.log(h+" Target Y "+parseInt(k.y,10)+" - Start "+parseInt(j.y,10)+" - Linear "+parseInt(f.y,10)+" - Eased "+parseInt(o.y,10)+" - Time "+Math.min(d,i.y)+" - Duration "+i.y)),a.isNumeric(o.x)&&a.isNumeric(o.y)&&(m=o),!q&&a.isFunction(D.start)&&D.start.call(c,d,m),q=!0,d<i.x||d<i.y?x():(p=null,q=!1),a.isFunction(D.step)&&D.step.call(c,d,m),p===null&&(a.isFunction(D.complete)&&D.complete.call(c,d,m),m=z(D)),l.force=!1}}else p=null,q=!1},D=a.extend({container:null,tick:16,event:"scroll",delayStart:!1,duration:0,durationRatio:1,restartOnEvent:!1,stop:null,step:null,complete:null,start:null,easing:null,strategy:null,startValues:null,debug:!1},b);return D.container=a(D.container||c),a.isFunction(D.strategy)?v[D.event]=D.strategy:a.type(D.strategy)=="string"&&(v[D.event]=v[D.strategy]),D.container.on(D.event,w),c}})(jQuery);<commit_msg>New release build<commit_after>/*! jQuery Event Based Animation - v1.1.0 - 2013-01-04
* https://github.com/DeuxHuitHuit/jQuery-event-based-animation
* Copyright (c) 2013 <NAME> Licensed MIT */
(function(e,t){"use strict";var n=e(window),r=function(e,t){return!e||!t?0:e/t},i=function(e){!!window.console&&!!console.err&&console.err("[eventAnimate] "+e)},s=function(t,n){e.each(t.properties,function(t,r){return n(r)})},o=function(t,n,r){s(t,function(i){n[i]=e.isFunction(r)?r(i):e.isArray(r)?r[i]:r})},u=function(e,t){return e&&t},a=function(e,t){return e||t},f=function(e,t,n){var r=!n,i=r?u:a,o=r;return s(e,function(n){o=i(o,t(n));if(r&&!o||!r&&o)return!1}),o},l=function(e,t){var n=window,r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame||n.oRequestAnimationFrame||n.setTimeout;return r(e,r===n.setTimeout?t.tick:t.container.get(0))},c=function(e){var t=window,n=t.cancelAnimationFrame||t.webkitCancelRequestAnimationFrame||t.mozCancelRequestAnimationFrame||t.oCancelRequestAnimationFrame||t.msCancelRequestAnimationFrame||t.clearTimeout;return n(e)};e.isFunction(e.isString)||(e.isString=function(t){return e.type(t)==="string"}),e.fn.eventAnimate=function(t){var n=e(this),u=e.now,a=u(),h=a,p={},d={},v={},m={},g={},y=function(e){o(e,p,0),o(e,d,0),o(e,v,0),o(e,m,0),o(e,g,0)},b=null,w=!1,E={left:0,top:0},S=function(e,t,n){n.x=t.container.scrollLeft(),n.y=t.container.scrollTop()},x=function(e,t,n){var r=t.container.offset()||E;n.x=e.pageX-r.left,n.y=e.pageY-r.top},T=function(e,t,n){var r=t.container.offset()||E,i=e.originalEvent.touches[0];n.x=i.pageX-r.left,n.y=i.pageY-r.top},N={scroll:S,click:x,mouseover:x,mousemove:x,touchmove:T},C=function(t){var r=t.type||H.event,s=N[r];if(e.isFunction(s)){s.call(n,t,H,v);if(!w||!!H.restartOnEvent)a=u()-1;w||(H.delayStart?k():P())}else i('No strategy found for event "'+r+'"')},k=function(){return _(H)?(c(b),b=null):b=l(P,H),b},L=function(t,r,i,s){var u=t.durationRatio||1,a={},f=function(e){return u[e]||u};e.isFunction(u)&&(u=u.call(n,t,r,i,s));if(e.isFunction(t.duration)){var l=t.duration.call(n,t,r,i,s);o(t,a,function(t){var n=l[t]||l||r[t];return Math.abs(n)*f(t)})}else o(t,a,function(n){var i=t.duration[n]||t.duration||r[n];return Math.abs(i)*f(n)});return a},A=function(t){var n=null;return e.isFunction(t.startValues)&&(n=t.startValues(t)),n||(n=g),n},O=function(e,t){var n={};return o(e,n,function(n){var i=v[n]-d[n],s=Math.min(1,r(t,p[n]));return d[n]+s*i}),n},M=function(e,t,n,r){!!window.console&&console.log&&!!e.debug&&s(e,function(s){(e.debug===!0||e.debug[s]===!0)&&console.log(h+" Target "+s+" "+parseInt(v[s],10)+" - Start "+parseInt(d[s],10)+" - Linear "+parseInt(t[s],10)+" - Eased "+parseInt(n[s],10)+" - Time "+Math.min(r,p[s])+" - Duration "+p[s])})},_=function(t){return e.isFunction(t.stop)?t.stop(t):!1},D=function(e){return m[e]!==0},P=function(){if(!_(H)){o(H,m,function(t){return v[t]-g[t]});if(f(H,D,!0)){if(a>h){var t=A(H);!H.restartOnEvent||o(H,m,function(n){return v[n]-t[n]}),p=L(H,m,t,v),d=t;if(!w||!!H.restartOnEvent)h=u()-1}var r=u()-h,i=function(e){return r<p[e]},s=O(H,r),l=H.easing||e.easing.def||"linear",c={},y=function(t){return e.isNumeric(c[t])};o(H,c,function(n){return e.easing[l](s[n],Math.min(r,p[n]),d[n],v[n]-d[n],p[n])}),M(H,s,c,r),f(H,y)&&(g=c),!w&&e.isFunction(H.start)&&H.start.call(n,r,g),w=!0,f(H,i,!0)?k():(b=null,w=!1),e.isFunction(H.step)&&H.step.call(n,r,g),b===null&&(e.isFunction(H.complete)&&H.complete.call(n,r,g),g=A(H))}else b=null,w=!1}else b=null,w=!1},H=e.extend({container:null,tick:16,event:"scroll",properties:"x y",delayStart:!1,duration:0,durationRatio:1,restartOnEvent:!1,stop:null,step:null,complete:null,start:null,easing:null,strategy:null,startValues:null,debug:!1},t),B=function(t){return t.container=e(t.container||n),t.container.length?(e.isFunction(t.strategy)?N[t.event]=t.strategy:e.isString(t.strategy)?N[t.event]=N[t.strategy]:e.isPlainObject(t.strategy)&&e.each(t.strategy,function(n,r){e.isString(r)?N[n]=N[r]:N[n]=r}),e.isString(t.properties)&&(t.properties=t.properties.split(" ")),!e.isArray(t.properties)||t.properties.length<1?(i("No animatable properties have been set."),n):(y(t),t.container.on(t.event,C),n)):(i("No container found"),n)};return B(H)},e._eventAnimate={_validateEach:f}})(jQuery);
{'fraction_non_alphanumeric': 0.302793439261917, 'fraction_numerical': 0.01627370579190159, 'mean_word_length': 12.550347222222221, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '4810381', 'n_tokens_mistral': 3718, 'n_tokens_neox': 3681, 'n_words': 156}