<commit_before>(function(m){function q(a,b,c){this.a=new h(a,b,c);this.e=[];this.k=[];this.options=w}function p(a,b,c){this.a=new h(a,b,c);this.options=x}function l(a,b,c){this.a=new h(a,b,c);this.e=[];this.options=z}function n(a,b,c){this.a=new h(a,b,c);this.a.h("ga:date");this.labels=[];this.options=y}function r(a,b,c){this.a=new h(a,b,c)}function h(a,b,c){function g(a){return/^([0-9]{4}-[0-9]{2}-[0-9]{2})$|^[0-9]+(m|d|w|y)$/.test(a)}function d(a){return/^[0-9]+(m|d|w|y)$/.test(a)}this.i=[];this.f=[];if(!a)throw Error("Profile argument required");
this.profile=a;b=b||new Date;c=c||new Date;b instanceof Date&&(b=u(b));c instanceof Date&&(c=u(c));if(!d(b)&&!g(b))throw Error("startDate parameter invalid");if(!d(c)&&!g(c))throw Error("endDate parameter invalid");if(d(b)&&d(c))throw Error("startDate and endDate cannot both be relative dates");this.B=b;this.v=c}function s(a){a=a.split("-");var b=new Date;b.setFullYear(a[0],a[1]-1,a[2]);b.setHours(0,0,0,0);return b}function u(a){var b=a.getFullYear().toString(),c=(a.getMonth()+1).toString();a=a.getDate().toString();
1===c.length&&(c="0"+c);1===a.length&&(a="0"+a);return b+"-"+c+"-"+a}function v(a){var b=m.createElement("script");b.type="text/javascript";b.src="https://www.google.com/jsapi";b.async=!1;b.onreadystatechange=b.onload=function(){var c=b.readyState;a.u||c&&!/loaded|complete/.test(c)||(a.u=!0,a())};var c=m.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}var t=void 0,y={},x={},w={},z={};h.prototype.q=function(){this.i=[]};h.prototype.p=function(){this.f=[]};h.prototype.c=function(a){this.i.push(a)};
h.prototype.h=function(a){this.f.push(a)};h.prototype.execute=function(a){var b={};b.key=t;b.profile=this.profile;if(0===this.i.length)throw Error("At least one metric is required");b.i=this.i.toString();b.start=this.B;b.end=this.v;0<this.f.length&&(b.f=this.f.toString());this.filters&&(b.filters=this.filters);this.sort&&(b.sort=this.sort);this.index&&(b.index=this.index);this.s&&(b.s=this.s);this.r&&(b.r=this.r);A.get("https://api.oocharts.com/v1/dynamic.jsonp",b,function(b){0===b.rows.length&&(b.rows=
[[]]);a(b)})};r.prototype.m=function(a){this.a.q();this.a.c(a)};r.prototype.b=function(a,b){this.a.execute(function(c){("string"===typeof a?m.getElementById(a):a).innerHTML="undefined"!==typeof c.rows[0][0]?c.rows[0][0].toString():"0";"undefined"!==typeof b&&b()})};n.prototype.c=function(a,b){this.labels.push(b);this.a.c(a)};n.prototype.b=function(a,b){var c=this;this.a.execute(function(g){g=g.rows;for(var d=0;d<g.length;d++)g[d][0]=s(g[d][0]);d=new google.d.n;d.g("date","Date");for(var e=0;e<c.labels.length;e++)d.g("number",
c.labels[e]);d.o(g);(new google.d.F("string"===typeof a?m.getElementById(a):a)).b(d,c.options);"undefined"!=typeof b&&b()})};l.prototype.c=function(a,b){this.e.push(b);this.a.c(a)};l.prototype.l=function(a){this.a.p();this.a.f.push(a);this.j=a};l.prototype.b=function(a,b){var c=this;this.a.execute(function(g){g=g.rows;var d=new google.d.n;d.g("string",c.j);for(var e=0;e<c.e.length;e++)d.g("number",c.e[e]);d.o(g);(new google.d.D("string"===typeof a?m.getElementById(a):a)).b(d,c.options);"undefined"!=
typeof b&&b()})};p.prototype.m=function(a,b){this.w=b;this.a.q();this.a.c(a)};p.prototype.l=function(a){this.a.p();this.a.j=a;this.a.h(a)};p.prototype.b=function(a,b){var c=this;this.a.execute(function(g){g=g.rows;var d=new google.d.n;d.g("string",c.j);d.g("number",c.w);d.o(g);(new google.d.I("string"===typeof a?m.getElementById(a):a)).b(d,c.options);"undefined"!=typeof b&&b()})};q.prototype.c=function(a,b){this.a.c(a);this.e.push(b)};q.prototype.h=function(a,b){this.a.h(a);this.k.push(b)};q.prototype.b=
function(a,b){var c=this;this.a.execute(function(g){g=g.rows;for(var d=[],e=0;e<c.k.length;e++)d.push(c.k[e]);for(e=0;e<c.e.length;e++)d.push(c.e[e]);g.splice(0,0,d);g=google.d.L(g);(new google.d.t("string"===typeof a?m.getElementById(a):a)).b(g,c.options);"undefined"!=typeof b&&b()})};return{J:h,K:n,C:l,G:r,H:p,t:q,load:function(a){function b(a){if("undefined"===typeof google.d)google.load("visualization","1",{A:["corechart","table"],callback:a});else{var b=[];"undefined"===typeof google.d.O&&b.push("corechart");
"undefined"===typeof google.d.table&&b.push("table");0<b.length&&google.load("visualization","1",{A:b,callback:a})}}if(!t)throw"Set APIKey with oo.setAPIKey before calling load";(function(a){"undefined"===typeof google?v(a):a()})(function(){b(function(){a&&a();for(var b=[],g=m.getElementsByTagName("*"),d=0;d<g.length;d++)g[d].getAttribute("data-oochart")&&b.push(g[d]);for(g=0;g<b.length;g++){var d=b[g],e=d.getAttribute("data-oochart"),k=d.getAttribute("data-oochart-start-date"),f=d.getAttribute("data-oochart-end-date"),
h=d.getAttribute("data-oochart-profile");if("metric"===e.toLowerCase())f=new r(h,k,f),f.m(d.getAttribute("data-oochart-metric")),f.b(d);else if("timeline"===e.toLowerCase()){k=new n(h,k,f);e=d.getAttribute("data-oochart-metrics");e=e.split(",");for(f=0;f<e.length;f++)k.c(e[f],e[f+1]),f+=1;k.b(d)}else if("bar"===e.toLowerCase()){k=new l(h,k,f);e=d.getAttribute("data-oochart-metrics");e=e.split(",");for(f=0;f<e.length;f++)k.c(e[f],e[f+1]),f+=1;e=d.getAttribute("data-oochart-dimension");k.l(e);k.b(d)}else if("pie"===
e.toLowerCase())k=new p(h,k,f),f=d.getAttribute("data-oochart-metric"),e=d.getAttribute("data-oochart-dimension"),f=f.split(","),k.m(f[0],f[1]),k.l(e),k.b(d);else if("table"===e.toLowerCase()){k=new q(h,k,f);f=d.getAttribute("data-oochart-metrics");h=d.getAttribute("data-oochart-dimensions");e=f.split(",");h=h.split(",");for(f=0;f<e.length;f++)k.c(e[f],e[f+1]),f+=1;for(e=0;e<h.length;e++)k.h(h[e],h[e+1]),e+=1;k.b(d)}}})})},P:u,Q:s,R:function(a){t=a},U:function(a){y=a},S:function(a){x=a},T:function(a){w=
a}}})(document);var A=function(m){var q=0,p={};return{get:function(l,n,r){r||(r=n,n={});l+=l.indexOf("?")+1?"&":"?";var h=m.getElementsByTagName("head")[0],s=m.createElement("script"),u=[],v=q,t;q++;n.M="JSONP.callbacks.request_"+v;p["request_"+v]=function(l){h.removeChild(s);delete p["request_"+v];r(l)};for(t in n)u.push(t+"="+encodeURIComponent(n[t]));l+=u.join("&");s.type="text/javascript";s.src=l;h.appendChild(s)},N:p}}(document);
<commit_msg>Added column chart to minified js<commit_after>var oo=function(a){var b="https://api.oocharts.com/v1/dynamic.jsonp",c=void 0,d={},e={},f={},g={},h={},i=function(){for(var b=function(b){for(var c=[],d=a.getElementsByTagName("*"),e=0;e<d.length;e++)d[e].getAttribute(b)&&c.push(d[e]);return c},c=b("data-oochart"),d=0;d<c.length;d++){var e=c[d],f=e.getAttribute("data-oochart"),g=e.getAttribute("data-oochart-start-date"),h=e.getAttribute("data-oochart-end-date"),i=e.getAttribute("data-oochart-profile");if("metric"===f.toLowerCase()){var j=new t(i,g,h);j.setMetric(e.getAttribute("data-oochart-metric")),j.draw(e)}else if("column"===f.toLowerCase()){for(var k=new u(i,g,h),l=e.getAttribute("data-oochart-metrics"),m=l.split(","),n=0;n<m.length;n++)k.addMetric(m[n],m[n+1]),n+=1;var o=e.getAttribute("data-oochart-dimension");k.setDimension(o),k.draw(e)}else if("timeline"===f.toLowerCase()){for(var p=new v(i,g,h),l=e.getAttribute("data-oochart-metrics"),m=l.split(","),n=0;n<m.length;n++)p.addMetric(m[n],m[n+1]),n+=1;p.draw(e)}else if("bar"===f.toLowerCase()){for(var q=new w(i,g,h),l=e.getAttribute("data-oochart-metrics"),m=l.split(","),n=0;n<m.length;n++)q.addMetric(m[n],m[n+1]),n+=1;var o=e.getAttribute("data-oochart-dimension");q.setDimension(o),q.draw(e)}else if("pie"===f.toLowerCase()){var r=new x(i,g,h),s=e.getAttribute("data-oochart-metric"),o=e.getAttribute("data-oochart-dimension"),j=s.split(",");r.setMetric(j[0],j[1]),r.setDimension(o),r.draw(e)}else if("table"===f.toLowerCase()){for(var z=new y(i,g,h),s=e.getAttribute("data-oochart-metrics"),A=e.getAttribute("data-oochart-dimensions"),m=s.split(","),B=A.split(","),n=0;n<m.length;n++)z.addMetric(m[n],m[n+1]),n+=1;for(var C=0;C<B.length;C++)z.addDimension(B[C],B[C+1]),C+=1;z.draw(e)}}},j=function(b,c){var d=a.createElement("script");d.type="text/javascript",d.src=b,d.async=!1,d.onreadystatechange=d.onload=function(){var a=d.readyState;c.done||a&&!/loaded|complete/.test(a)||(c.done=!0,c())};var e=a.getElementsByTagName("script")[0];e.parentNode.insertBefore(d,e)},k=function(a){if(!c)throw"Set APIKey with oo.setAPIKey before calling load";var b=function(a){"undefined"==typeof google?j("https://www.google.com/jsapi",a):a()},d=function(a){if("undefined"==typeof google.visualization)google.load("visualization","1",{packages:["corechart","table"],callback:a});else{var b=[];"undefined"==typeof google.visualization.corechart&&b.push("corechart"),"undefined"==typeof google.visualization.table&&b.push("table"),b.length>0&&google.load("visualization","1",{packages:b,callback:a})}},e=a;b(function(){d(function(){e&&e(),i()})})},l=function(a){c=a},m=function(a){h=a},n=function(a){d=a},o=function(a){e=a},p=function(a){f=a},q=function(a){var b=a.getFullYear().toString(),c=(a.getMonth()+1).toString(),a=a.getDate().toString();return 1===c.length&&(c="0"+c),1===a.length&&(a="0"+a),b+"-"+c+"-"+a},r=function(a){a=a.split("-");var b=new Date;return b.setFullYear(a[0],a[1]-1,a[2]),b.setHours(0,0,0,0),b},s=function(a,b,c){if(this.metrics=[],this.dimensions=[],!a)throw new Error("Profile argument required");this.profile=a,b=b||new Date,c=c||new Date,b instanceof Date&&(b=q(b)),c instanceof Date&&(c=q(c));var d=function(a){return/^[0-9]+(m|d|w|y)$/.test(a)},e=function(a){return/^([0-9]{4}-[0-9]{2}-[0-9]{2})$|^[0-9]+(m|d|w|y)$/.test(a)};if(!d(b)&&!e(b))throw new Error("startDate parameter invalid");if(!d(c)&&!e(c))throw new Error("endDate parameter invalid");if(d(b)&&d(c))throw new Error("startDate and endDate cannot both be relative dates");this.startDate=b,this.endDate=c};s.prototype.clearMetrics=function(){this.metrics=[]},s.prototype.clearDimensions=function(){this.dimensions=[]},s.prototype.addMetric=function(a){this.metrics.push(a)},s.prototype.addDimension=function(a){this.dimensions.push(a)},s.prototype.setFilter=function(a){this.filters=a},s.prototype.setSort=function(a){this.sort=a},s.prototype.setSegment=function(a){this.segment=a},s.prototype.setIndex=function(a){this.index=a},s.prototype.setMaxResults=function(a){this.maxResults=a},s.prototype.execute=function(a){var d={};if(d.key=c,d.profile=this.profile,0===this.metrics.length)throw new Error("At least one metric is required");d.metrics=this.metrics.toString(),d.start=this.startDate,d.end=this.endDate,this.dimensions.length>0&&(d.dimensions=this.dimensions.toString()),this.filters&&(d.filters=this.filters),this.sort&&(d.sort=this.sort),this.index&&(d.index=this.index),this.segment&&(d.segment=this.segment),this.maxResults&&(d.maxResults=this.maxResults),JSONP.get(b,d,function(b){0===b.rows.length&&(b.rows=[[]]),a(b)})};var t=function(a,b,c){this.query=new s(a,b,c)};t.prototype.setMetric=function(a){this.query.clearMetrics(),this.query.addMetric(a)},t.prototype.draw=function(b,c){this.query.execute(function(d){var e;e="string"==typeof b?a.getElementById(b):b,e.innerHTML="undefined"!=typeof d.rows[0][0]?d.rows[0][0].toString():"0","undefined"!=typeof c&&c()})};var u=function(a,b,c){this.query=new s(a,b,c),this.metricLabels=[],this.options=h};u.prototype.setOptions=function(a){this.options=a},u.prototype.addMetric=function(a,b){this.metricLabels.push(b),this.query.addMetric(a)},u.prototype.setDimension=function(a){this.query.clearDimensions(),this.query.dimensions.push(a),this.dimensionLabel=a},u.prototype.draw=function(b,c){var d=this;this.query.execute(function(e){var f=e.rows,g=new google.visualization.DataTable;g.addColumn("string",d.dimensionLabel);for(var h=0;h<d.metricLabels.length;h++)g.addColumn("number",d.metricLabels[h]);g.addRows(f);var i;i="string"==typeof b?a.getElementById(b):b;var j=new google.visualization.ColumnChart(i);j.draw(g,d.options),"undefined"!=typeof c&&c()})};var v=function(a,b,c){this.query=new s(a,b,c),this.query.addDimension("ga:date"),this.labels=[],this.options=d};v.prototype.setOptions=function(a){this.options=a},v.prototype.addMetric=function(a,b){this.labels.push(b),this.query.addMetric(a)},v.prototype.draw=function(b,c){var d=this;this.query.execute(function(e){for(var f=e.rows,g=0;g<f.length;g++)f[g][0]=r(f[g][0]);var h=new google.visualization.DataTable;h.addColumn("date","Date");for(var i=0;i<d.labels.length;i++)h.addColumn("number",d.labels[i]);h.addRows(f);var j;j="string"==typeof b?a.getElementById(b):b;var k=new google.visualization.LineChart(j);k.draw(h,d.options),"undefined"!=typeof c&&c()})};var w=function(a,b,c){this.query=new s(a,b,c),this.metricLabels=[],this.options=g};w.prototype.setOptions=function(a){this.options=a},w.prototype.addMetric=function(a,b){this.metricLabels.push(b),this.query.addMetric(a)},w.prototype.setDimension=function(a){this.query.clearDimensions(),this.query.dimensions.push(a),this.dimensionLabel=a},w.prototype.draw=function(b,c){var d=this;this.query.execute(function(e){var f=e.rows,g=new google.visualization.DataTable;g.addColumn("string",d.dimensionLabel);for(var h=0;h<d.metricLabels.length;h++)g.addColumn("number",d.metricLabels[h]);g.addRows(f);var i;i="string"==typeof b?a.getElementById(b):b;var j=new google.visualization.BarChart(i);j.draw(g,d.options),"undefined"!=typeof c&&c()})};var x=function(a,b,c){this.query=new s(a,b,c),this.options=e};x.prototype.setMetric=function(a,b){this.metricLabel=b,this.query.clearMetrics(),this.query.addMetric(a)},x.prototype.setDimension=function(a){this.query.clearDimensions(),this.query.dimensionLabel=a,this.query.addDimension(a)},x.prototype.setOptions=function(a){this.options=a},x.prototype.draw=function(b,c){var d=this;this.query.execute(function(e){var f=e.rows,g=new google.visualization.DataTable;g.addColumn("string",d.dimensionLabel),g.addColumn("number",d.metricLabel),g.addRows(f);var h;h="string"==typeof b?a.getElementById(b):b;var i=new google.visualization.PieChart(h);i.draw(g,d.options),"undefined"!=typeof c&&c()})};var y=function(a,b,c){this.query=new s(a,b,c),this.metricLabels=[],this.dimensionLabels=[],this.options=f};return y.prototype.addMetric=function(a,b){this.query.addMetric(a),this.metricLabels.push(b)},y.prototype.addDimension=function(a,b){this.query.addDimension(a),this.dimensionLabels.push(b)},y.prototype.setOptions=function(a){this.options=a},y.prototype.draw=function(b,c){var d=this;this.query.execute(function(e){for(var f=e.rows,g=[],h=0;h<d.dimensionLabels.length;h++)g.push(d.dimensionLabels[h]);for(var i=0;i<d.metricLabels.length;i++)g.push(d.metricLabels[i]);f.splice(0,0,g);var k,j=google.visualization.arrayToDataTable(f);k="string"==typeof b?a.getElementById(b):b;var l=new google.visualization.Table(k);l.draw(j,d.options),"undefined"!=typeof c&&c()})},{Query:s,Timeline:v,Column:u,Bar:w,Metric:t,Pie:x,Table:y,load:k,formatDate:q,parseDate:r,setAPIKey:l,setColumnDefaults:m,setTimelineDefaults:n,setPieDefaults:o,setTableDefaults:p}}(document),JSONP=function(a){var b=0,c={};return{get:function(d,e,f){arguments[2]||(f=arguments[1],e={}),d+=d.indexOf("?")+1?"&":"?";var k,g=a.getElementsByTagName("head")[0],h=a.createElement("script"),i=[],j=b;b++,e.callback="JSONP.callbacks.request_"+j,c["request_"+j]=function(a){g.removeChild(h),delete c["request_"+j],f(a)};for(k in e)i.push(k+"="+encodeURIComponent(e[k]));d+=i.join("&"),h.type="text/javascript",h.src=d,g.appendChild(h)},callbacks:c}}(document);

{'fraction_non_alphanumeric': 0.28521241298549216, 'fraction_numerical': 0.00949840608938911, 'mean_word_length': 13.246524559777573, 'pattern_counts': {'":': 2, '<': 29, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '1823513', 'n_tokens_mistral': 6448, 'n_tokens_neox': 6478, 'n_words': 282}