{"size": 2102, "ext": "js", "max_stars_repo_path": "example/codeBase64.min.js", "max_stars_repo_name": "WangYiyao/codeBase64", "max_stars_repo_stars_event_min_datetime": "2016-04-25T07:49:18.000Z", "max_stars_repo_stars_event_max_datetime": "2016-04-25T07:54:12.000Z", "max_issues_repo_path": "example/codeBase64.min.js", "max_issues_repo_name": "WangYiyao/codeBase64", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "example/codeBase64.min.js", "max_forks_repo_name": "WangYiyao/codeBase64", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 2102.0, "max_line_length": 2102, "alphanum_fraction": 0.6294005709}
var codeBase64=function(){var r="=";var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var e="",n="";function t(){try{return new DOMException(DOMException.INVALID_CHARACTER_ERR)}catch(r){var h=new Error("DOM Exception 5");h.code=h.number=5;h.name=h.description="INVALID_CHARACTER_ERR";return h}}function i(r,h){if(h<128){r.push(h)}else if(128<=h&&h<2048){r.push((h>>6&31)+192);r.push((h&63)+128)}else{r.push((h>>12&15)+224);r.push((h>>6&63)+128);r.push((h&63)+128)}}function u(u,f,s){if(f==undefined){f=""}if(s==undefined){s=""}f=String(f);s=String(s);u=f+u+s;n=s;e=f;var a=u.length;var p,c,o=[],l=[];if(3<arguments.length||arguments.length==0){throw t()}if(a==0){return u}for(p=0;p<a;p++){i(l,u.charCodeAt(p));while(3<=l.length){c=l[0]<<16|l[1]<<8|l[2];o.push(h.charAt(c>>18));o.push(h.charAt(c>>12&63));o.push(h.charAt(c>>6&63));o.push(h.charAt(c&63));l.splice(0,3)}}if(l.length==1){c=l[0]<<16;o.push(h.charAt(c>>18));o.push(h.charAt(c>>12&63));o.push(r);o.push(r)}else if(l.length==2){c=l[0]<<16|l[1]<<8;o.push(h.charAt(c>>18));o.push(h.charAt(c>>12&63));o.push(h.charAt(c>>6&63));o.push(r)}return o.join("")}function f(r,e){var n=h.indexOf(r[e]);if(n==-1){throw t()}return n}function s(r,h){while(0<r.length){var e=r[0];if(e<128){e=r.shift();h.push(String.fromCharCode(e))}else if((e&224)==192){if(r.length<2){break}e=r.shift();var n=r.shift();h.push(String.fromCharCode(((e&31)<<6)+(n&63)))}else{if(r.length<3){break}e=r.shift();var n=r.shift();var t=r.shift();h.push(String.fromCharCode(((e&15)<<12)+((n&63)<<6)+(t&63)))}}}function a(h,i,u){h=""+h;var a=0,p=h.length;var c,o,l=[],d=[];if(p==0){return h}if(p%4!=0){throw t()}if(h.charAt(p-1)==r){a=1;if(h.charAt(p-2)==r){a=2}p-=4}for(c=0;c<p;c+=4){o=f(h,c)<<18|f(h,c+1)<<12|f(h,c+2)<<6|f(h,c+3);d.push(o>>16);d.push(o>>8&255);d.push(o&255);s(d,l)}if(a==1){o=f(h,c)<<18|f(h,c+1)<<12|f(h,c+2)<<6;d.push(o>>16);d.push(o>>8&255)}else if(a==2){o=f(h,c)<<18|f(h,c+1)<<12;d.push(o>>16)}s(d,l);var g=l.join("");if(i==undefined){i=e}if(u==undefined){u=n}g=g.substring(i.length,g.length-u.length);return g}return{decode:a,encode:u}}();