<commit_before>(function(f){var c=function(a){this.maxSize=a.maxSize||1E7};c.prototype.attachImage=function(a,b){var e=document.getElementById(a),d=document.createElement("input");this.setInput(d,e);d.addEventListener("change",function(){var a=d.files[0];if(a.type.match("image.*")){var e=new FileReader;e.onload=function(a){console.log(a.target);b.done&&b.done(a.target.result)};e.readAsDataURL(a)}else b.error&&b.error({code:1,error:"Not Image"})})};c.prototype.attachFile=function(a,b){var e=this,d=document.getElementById(a),
c=document.createElement("input");this.setInput(c,d);c.addEventListener("change",function(){var a=c.files[0],d=new FileReader;d.onload=function(c){console.log(a);b.done&&b.done(e.chunk(c.target.result))};d.readAsDataURL(a)})};c.prototype.setInput=function(a,b){a.type="file";a.style.opacity="0";a.style.position="absolute";a.style.cursor=this.getStyle(b,"cursor");a.style.height=this.getStyle(b,"height");a.style.width=this.getStyle(b,"width");a.style.top=this.getStyle(b,"top");a.style.left=this.getStyle(b,
"left");a.style.bottom=this.getStyle(b,"bottom");a.style.right=this.getStyle(b,"right");a.style.margin=this.getStyle(b,"margin");a.style.borderRadius=this.getStyle(b,"borderRadius");a.style.zIndex=1E4;console.log(b,a);b.parentNode.insertBefore(a,b)};c.prototype.getStyle=function(a,b){a.style.display="none";if(a.currentStyle)var c=a.currentStyle[b];else f.getComputedStyle&&(c=document.defaultView.getComputedStyle(a,null).getPropertyValue(b));a.style.display="block";return c};c.prototype.chunk=function(a){var b=
{header:"",data:[]},c=parseInt(a.length/3600);b.header=a.split(",")[0];var d=a.split(",")[1];if(0===c)return b.data=[a],b;for(a=0;a<c;a++)b.data.push(d.substr(3600*a,3600));return b};f.Filar=c})(window);<commit_msg>Made a finished minified version<commit_after>(function(g){var f=function(a){this.maxSize=a.maxSize||1E7};f.prototype.attachImage=function(a,b){var c=document.getElementById(a),d=document.createElement("input");this.setInput(d,c);d.addEventListener("change",function(){var a=d.files[0];if(a.type.match("image.*")){var c=new FileReader;c.onload=function(a){console.log(a.target);b.done&&b.done(a.target.result)};c.readAsDataURL(a)}else b.error&&b.error({code:1,error:"Not Image"})})};f.prototype.attachFile=function(a,b){var c=this,d=document.getElementById(a),
e=document.createElement("input");this.setInput(e,d);e.addEventListener("change",function(){var a=e.files[0],d=new FileReader;d.onload=function(d){b.done&&b.done(c.chunk(a,d.target.result))};d.readAsDataURL(a)})};f.prototype.setInput=function(a,b){a.type="file";a.style.opacity="0";a.style.position="absolute";a.style.cursor=this.getStyle(b,"cursor");a.style.height=this.getStyle(b,"height");a.style.width=this.getStyle(b,"width");a.style.top=this.getStyle(b,"top");a.style.left=this.getStyle(b,"left");
a.style.bottom=this.getStyle(b,"bottom");a.style.right=this.getStyle(b,"right");a.style.margin=this.getStyle(b,"margin");a.style.borderRadius=this.getStyle(b,"borderRadius");a.style.zIndex=1E4;console.log(b,a);b.parentNode.insertBefore(a,b)};f.prototype.getStyle=function(a,b){a.style.display="none";if(a.currentStyle)var c=a.currentStyle[b];else g.getComputedStyle&&(c=document.defaultView.getComputedStyle(a,null).getPropertyValue(b));a.style.display="block";return c};f.prototype.chunk=function(a,b){var c=
{name:a.name,size:a.size,chunkSize:3600,type:a.type,ext:""},d={header:c,data:[]},e=a.name.split(".");1<e.length&&(c.ext=e[e.length-1]);c.name=e[0];d.header=c;c=b.split(",")[1];e=parseInt(b.length/3600);if(0===e)return d.data=[b],d;for(var f=0;f<e;f++)d.data.push(c.substr(3600*f,3600));return d};g.Filar=f})(window);
{'fraction_non_alphanumeric': 0.24665391969407266, 'fraction_numerical': 0.014750068287353183, 'mean_word_length': 13.417322834645669, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, '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': '3770375', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1422, 'n_words': 45}