<commit_before>// numeral.js
// version : 1.2.6
// author : <NAME>
// license : MIT
// http://adamwdraper.github.com/Numeral-js/
(function(){function u(e){this._n=e}function a(e,t,n){var r=Math.pow(10,t),i;i=(Math.round(e*r)/r).toFixed(t);if(n){var s=new RegExp("0{1,"+n+"}$");i=i.replace(s,"")}return i}function f(e,t){var n;t.indexOf("$")>-1?n=c(e,t):t.indexOf("%")>-1?n=h(e,t):t.indexOf(":")>-1?n=p(e,t):n=v(e,t);return n}function l(e,t){if(t.indexOf(":")>-1)e._n=d(t);else{i[s].delimiters.decimal!=="."&&(t=t.replace(/\./g,"").replace(i[s].delimiters.decimal,"."));var n=new RegExp(i[s].abbreviations.thousand+"(?:\\)|\\"+i[s].currency.symbol+"?)$"),r=new RegExp(i[s].abbreviations.million+"(?:\\)|\\"+i[s].currency.symbol+"?)$"),o=["KB","MB","GB","TB","PB","EB","ZB","YB"],u=!1;for(var a=0;a<=o.length;a++){u=t.indexOf(o[a])>-1?Math.pow(1024,a+1):!1;if(u)break}e._n=(u?u:1)*(t.match(n)?1e3:1)*(t.match(r)?1e6:1)*(t.indexOf("%")>-1?.01:1)*Number((t.indexOf("(")>-1?"-":"")+t.replace(/[^0-9\.'-]+/g,""));e._n=u?Math.ceil(e._n):e._n}return e._n}function c(e,t){var n=t.indexOf("$")<=1?!0:!1;t=t.replace("$","");var r=f(e,t);if(n)if(r.indexOf("(")>-1||r.indexOf("-")>-1){r=r.split("");r.splice(1,0,i[s].currency.symbol);r=r.join("")}else r=i[s].currency.symbol+r;else if(r.indexOf(")")>-1){r=r.split("");r.splice(-1,0,i[s].currency.symbol);r=r.join("")}else r+=i[s].currency.symbol;return r}function h(e,t){t=t.replace("%","");e._n=e._n*100;var n=f(e,t);if(n.indexOf(")")>-1){n=n.split("");n.splice(-1,0,"%");n=n.join("")}else n+="%";return n}function p(e,t){var n=Math.floor(e._n/60/60),r=Math.floor((e._n-n*60*60)/60),i=Math.round(e._n-n*60*60-r*60);return n+":"+(r<10?"0"+r:r)+":"+(i<10?"0"+i:i)}function d(e){var t=e.split(":"),n=0;if(t.length===3){n+=Number(t[0])*60*60;n+=Number(t[1])*60;n+=Number(t[2])}else if(t.lenght===2){n+=Number(t[0])*60;n+=Number(t[1])}return Number(n)}function v(e,t){var n=!1,r=!1,o=!1,u=!1;if(t.indexOf("(")>-1){n=!0;t=t.slice(1,-1)}if(t.indexOf("a")>-1){t=t.replace("a","");if(e._n>1e6){r=i[s].abbreviations.million;e._n=e._n/1e6}else{r=i[s].abbreviations.thousand;e._n=e._n/1e3}}if(t.indexOf("b")>-1){t=t.replace("b","");var f=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],l,c;for(var h=0;h<=f.length;h++){l=Math.pow(1024,h);c=Math.pow(1024,h+1);if(e._n>l&&e._n<c){o=f[h];l>0&&(e._n=e._n/l);break}}}if(t.indexOf("o")>-1){t=t.replace("o","");u=i[s].ordinal(e._n)}var p=e._n.toString().split(".")[0],d=t.split(".")[1],v=t.indexOf(","),m="",g=!1;if(e._n<0){p=p.slice(1);g=!0}v>-1&&(p=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i[s].delimiters.thousands));t.indexOf(".")===0&&(p="");if(d){if(d.indexOf("[")>-1){d=d.replace("]","");d=d.split("[");m=a(e._n,d[0].length+d[1].length,d[1].length).split(".")[1]}else m=a(e._n,d.length).split(".")[1];m&&(m=i[s].delimiters.decimal+m)}return(n&&g?"(":"")+(!n&&g?"-":"")+p+m+(u?u:"")+(r?r:"")+(o?o:"")+(n&&g?")":"")}function m(e,t){i[e]=t}var e,t="1.2.6",n=Math.round,r,i={},s="en",o=typeof module!="undefined"&&module.exports;e=function(t){e.isNumeral(t)?t=t.value():Number(t)||(t=0);return new u(Number(t))};e.isNumeral=function(e){return e instanceof u};e.version=t;e.isNumeral=function(e){return e instanceof u};e.language=function(e,t){if(!e)return s;e&&!t&&(s=e);(t||!i[e])&&m(e,t);return i};e.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m"},ordinal:function(e){var t=e%10;return~~(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"},currency:{symbol:"$"}});e.fn=u.prototype={clone:function(){return e(this)},format:function(t){return f(this,t?t:e.defaultFormat)},unformat:function(t){return l(this,t?t:e.defaultFormat)},value:function(){return this._n},set:function(e){this._n=Number(e);return this},add:function(e){this._n=this._n+Number(e);return this},subtract:function(e){this._n=this._n-Number(e);return this},multiply:function(e){this._n=this._n*Number(e);return this},divide:function(e){this._n=this._n/Number(e);return this},difference:function(e){var t=this._n-Number(e);t<0&&(t=-t);return t}};o&&(module.exports=e);typeof ender=="undefined"&&(this.numeral=e);typeof define=="function"&&define.amd&&define([],function(){return e})}).call(this);<commit_msg>forgot to commit minified version<commit_after>(function(){function h(a){this._n=a}function i(a,b,c){var d=Math.pow(10,b),e;e=(Math.round(a*d)/d).toFixed(b);if(c){var f=new RegExp("0{1,"+c+"}$");e=e.replace(f,"")}return e}function j(a,b){var c;return b.indexOf("$")>-1?c=l(a,b):b.indexOf("%")>-1?c=m(a,b):b.indexOf(":")>-1?c=n(a,b):c=p(a,b),c}function k(a,b){if(b.indexOf(":")>-1)a._n=o(b);else{e[f].delimiters.decimal!=="."&&(b=b.replace(/\./g,"").replace(e[f].delimiters.decimal,"."));var c=new RegExp(e[f].abbreviations.thousand+"(?:\\)|\\"+e[f].currency.symbol+"?)$"),d=new RegExp(e[f].abbreviations.million+"(?:\\)|\\"+e[f].currency.symbol+"?)$"),g=["KB","MB","GB","TB","PB","EB","ZB","YB"],h=!1;for(var i=0;i<=g.length;i++){h=b.indexOf(g[i])>-1?Math.pow(1024,i+1):!1;if(h)break}a._n=(h?h:1)*(b.match(c)?1e3:1)*(b.match(d)?1e6:1)*(b.indexOf("%")>-1?.01:1)*Number((b.indexOf("(")>-1?"-":"")+b.replace(/[^0-9\.'-]+/g,"")),a._n=h?Math.ceil(a._n):a._n}return a._n}function l(a,b){var c=b.indexOf("$")<=1?!0:!1;b=b.replace("$","");var d=j(a,b);return c?d.indexOf("(")>-1||d.indexOf("-")>-1?(d=d.split(""),d.splice(1,0,e[f].currency.symbol),d=d.join("")):d=e[f].currency.symbol+d:d.indexOf(")")>-1?(d=d.split(""),d.splice(-1,0,e[f].currency.symbol),d=d.join("")):d=d+e[f].currency.symbol,d}function m(a,b){b=b.replace("%",""),a._n=a._n*100;var c=j(a,b);return c.indexOf(")")>-1?(c=c.split(""),c.splice(-1,0,"%"),c=c.join("")):c=c+"%",c}function n(a,b){var c=Math.floor(a._n/60/60),d=Math.floor((a._n-c*60*60)/60),e=Math.round(a._n-c*60*60-d*60);return c+":"+(d<10?"0"+d:d)+":"+(e<10?"0"+e:e)}function o(a){var b=a.split(":"),c=0;return b.length===3?(c=c+Number(b[0])*60*60,c=c+Number(b[1])*60,c=c+Number(b[2])):b.lenght===2&&(c=c+Number(b[0])*60,c=c+Number(b[1])),Number(c)}function p(a,b){var c=!1,d=!1,g=!1,h=!1;b.indexOf("(")>-1&&(c=!0,b=b.slice(1,-1)),b.indexOf("a")>-1&&(b=b.replace("a",""),a._n>1e6?(d=e[f].abbreviations.million,a._n=a._n/1e6):(d=e[f].abbreviations.thousand,a._n=a._n/1e3));if(b.indexOf("b")>-1){b=b.replace("b","");var j=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],k,l;for(var m=0;m<=j.length;m++){k=Math.pow(1024,m),l=Math.pow(1024,m+1);if(a._n>k&&a._n<l){g=j[m],k>0&&(a._n=a._n/k);break}}}b.indexOf("o")>-1&&(b=b.replace("o",""),h=e[f].ordinal(a._n));var n=a._n.toString().split(".")[0],o=b.split(".")[1],p=b.indexOf(","),q="",r=!1;return o||(n=i(a._n,null)),a._n<0&&(n=n.slice(1),r=!0),p>-1&&(n=n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+e[f].delimiters.thousands)),b.indexOf(".")===0&&(n=""),o&&(o.indexOf("[")>-1?(o=o.replace("]",""),o=o.split("["),q=i(a._n,o[0].length+o[1].length,o[1].length).split(".")[1]):q=i(a._n,o.length).split(".")[1],q&&(q=e[f].delimiters.decimal+q)),(c&&r?"(":"")+(!c&&r?"-":"")+n+q+(h?h:"")+(d?d:"")+(g?g:"")+(c&&r?")":"")}function q(a,b){e[a]=b}var a,b="1.2.6",c=Math.round,d,e={},f="en",g=typeof module!="undefined"&&module.exports;a=function(b){return a.isNumeral(b)?b=b.value():Number(b)||(b=0),new h(Number(b))},a.isNumeral=function(a){return a instanceof h},a.version=b,a.isNumeral=function(a){return a instanceof h},a.language=function(a,b){return a?(a&&!b&&(f=a),(b||!e[a])&&q(a,b),e):f},a.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m"},ordinal:function(a){var b=a%10;return~~(a%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th"},currency:{symbol:"$"}}),a.fn=h.prototype={clone:function(){return a(this)},format:function(b){return j(this,b?b:a.defaultFormat)},unformat:function(b){return k(this,b?b:a.defaultFormat)},value:function(){return this._n},set:function(a){return this._n=Number(a),this},add:function(a){return this._n=this._n+Number(a),this},subtract:function(a){return this._n=this._n-Number(a),this},multiply:function(a){return this._n=this._n*Number(a),this},divide:function(a){return this._n=this._n/Number(a),this},difference:function(a){var b=this._n-Number(a);return b<0&&(b=-b),b}},g&&(module.exports=a),typeof ender=="undefined"&&(this.numeral=a),typeof define=="function"&&define.amd&&define([],function(){return a})}).call(this);
{'fraction_non_alphanumeric': 0.3800386193579532, 'fraction_numerical': 0.03536084962587497, 'mean_word_length': 12.409385113268609, 'pattern_counts': {'":': 26, '<': 20, '<?xml version=': 0, '>': 44, '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': '306215', 'n_tokens_mistral': 4134, 'n_tokens_neox': 3992, 'n_words': 142}