{"size": 1208, "ext": "js", "max_stars_repo_path": "assets/js/countUp.js-master/dist/angular-countUp.min.js", "max_stars_repo_name": "MTminded/JBGrammerTest", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/js/countUp.js-master/dist/angular-countUp.min.js", "max_issues_repo_name": "MTminded/JBGrammerTest", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/js/countUp.js-master/dist/angular-countUp.min.js", "max_forks_repo_name": "MTminded/JBGrammerTest", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 1208.0, "max_line_length": 1208, "alphanum_fraction": 0.6473509934}
!function(n){"use strict";var t=n.module("countUpModule",[]);t.directive("countUp",["$filter",function(t){return{restrict:"A",scope:{startVal:"=?",endVal:"=",duration:"=?",decimals:"=?",reanimateOnClick:"=?",filter:"@",options:"=?"},link:function(a,e,r){function i(){var n=a.filter.split(":"),e=n.shift();return function(a){var r=[a];Array.prototype.push.apply(r,n);var a=t(e).apply(null,r);return a}}function l(n,t,a,r){n=n||0,isNaN(n)&&(n=Number(n.match(/[\d\-\.]+/g).join(""))),t=t||0,isNaN(t)&&(t=Number(t.match(/[\d\-\.]+/g).join(""))),r=Number(r)||2,a=Number(a)||0;var i=new CountUp(e[0],n,t,a,r,c);return t>999&&(i=new CountUp(e[0],n,t-100,a,r/2,c)),i}function u(){s.reset(),a.endVal>999?s.start(function(){s.update(a.endVal)}):s.start()}var o=null;null!=a.filter&&(o=i());var c={postFormatter:o};null!=a.options&&n.extend(c,a.options);var s=l(a.startVal,a.endVal,a.decimals,a.duration);r.scrollSpyEvent?a.$on(r.scrollSpyEvent,function(n,t){t===r.id&&u()}):u();var d=n.isDefined(a.reanimateOnClick)?a.reanimateOnClick:!0;d&&e.on("click",function(){u()}),a.$watch("endVal",function(n,t){null!=n&&n!==t&&(null!=s?s.update(a.endVal):(s=l(a.startVal,a.endVal,a.decimals,a.duration),u()))})}}}])}(angular);