<commit_before>(function(a){a.fn.stupidtable=function(h){return this.each(function(){var c=a(this);h=h||{};h=a.extend({},{"int":function(a,b){return parseInt(a,10)-parseInt(b,10)},"float":function(a,b){return parseFloat(a)-parseFloat(b)},string:function(a,b){return a<b?-1:a>b?1:0}},h);c.on("click","th",function(){var n=c.children("tbody").children("tr"),b=a(this),j=0,m=a.fn.stupidtable.dir;c.find("th").slice(0,b.index()).each(function(){var b=a(this).attr("colspan")||1;j+=parseInt(b,10)});var l=b.data("sort-dir")===
m.ASC?m.DESC:m.ASC,p=l==m.DESC?b.data("sort-desc")||b.data("sort")||null:b.data("sort")||null;null!==p&&(c.trigger("beforetablesort",{column:j,direction:l}),c.css("display"),setTimeout(function(){var k=[],d=h[p];n.each(function(b,d){var c=a(d).children().eq(j),e=c.data("sort-value"),c="undefined"!==typeof e?e:c.text();k.push(c)});var e=[],f=0;if(b.data("sort-dir")&&!b.data("sort-desc"))for(d=k.length-1;0<=d;d--)e.push(d);else for(var g=k.slice(0).sort(d),d=0;d<k.length;d++){for(f=a.inArray(k[d],g);-1!=
a.inArray(f,e);)f++;e.push(f)}c.find("th").data("sort-dir",null).removeClass("sorting-desc sorting-asc");b.data("sort-dir",l).addClass("sorting-"+l);f=n.slice(0);for(g=d=0;g<e.length;g++)d=e[g],f[d]=n[g];e=a(f);c.children("tbody").append(e);c.trigger("aftertablesort",{column:j,direction:l});c.css("display")},10))})})};a.fn.stupidtable.dir={ASC:"asc",DESC:"desc"}})(jQuery);<commit_msg>Add minified code; fix #49<commit_after>(function(e){e.fn.stupidtable=function(j){return this.each(function(){var d=e(this);j=j||{};j=e.extend({},{"int":function(b,a){return parseInt(b,10)-parseInt(a,10)},"float":function(b,a){return parseFloat(b)-parseFloat(a)},string:function(b,a){return b<a?-1:b>a?1:0},"string-ins":function(b,a){b=b.toLowerCase();a=a.toLowerCase();return b<a?-1:b>a?1:0}},j);d.on("click","th",function(){var b=d.children("tbody").children("tr"),a=e(this),k=0,n=e.fn.stupidtable.dir;d.find("th").slice(0,a.index()).each(function(){var a=
e(this).attr("colspan")||1;k+=parseInt(a,10)});var m=a.data("sort-dir")===n.ASC?n.DESC:n.ASC,p=m==n.DESC?a.data("sort-desc")||a.data("sort")||null:a.data("sort")||null;null!==p&&(d.trigger("beforetablesort",{column:k,direction:m}),d.css("display"),setTimeout(function(){var l=[],c=j[p];b.each(function(a,b){var c=e(b).children().eq(k),d=c.data("sort-value"),c="undefined"!==typeof d?d:c.text();l.push(c)});var f=[],g=0;if(a.data("sort-dir")&&!a.data("sort-desc"))for(c=l.length-1;0<=c;c--)f.push(c);else for(var h=
l.slice(0).sort(c),c=0;c<l.length;c++){for(g=e.inArray(l[c],h);-1!=e.inArray(g,f);)g++;f.push(g)}d.find("th").data("sort-dir",null).removeClass("sorting-desc sorting-asc");a.data("sort-dir",m).addClass("sorting-"+m);g=b.slice(0);for(h=c=0;h<f.length;h++)c=f[h],g[c]=b[h];f=e(g);d.children("tbody").append(f);d.trigger("aftertablesort",{column:k,direction:m});d.css("display")},10))})})};e.fn.stupidtable.dir={ASC:"asc",DESC:"desc"}})(jQuery);
{'fraction_non_alphanumeric': 0.33310603477667916, 'fraction_numerical': 0.016706443914081145, 'mean_word_length': 14.606382978723405, 'pattern_counts': {'":': 5, '<': 12, '<?xml version=': 0, '>': 6, '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': '3054508', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1312, 'n_words': 40}