<commit_before>/*!
 * mor.js v1.0.2
 * http://forchoon.com/projects/javascript/mor-js/
 *
 * Copyright 2011, <NAME>
 * Licensed under the GPL Version 3 license.
 */
(function(a){function m(a,b){var c=typeof b==="function";try{var d=a();if(c){return b(null,d)}else{return d}}catch(e){if(c){return b(e)}else{throw e}}}function l(a,b){var c="";for(var d=0;d<b;d++){c+=a}return c}function k(a,b,c,d){if(typeof a!=="string"){throw new TypeError("Invalid value type: "+typeof a)}var e=typeof d!=="undefined",f=a.trim().split(b);for(var g=0;g<f.length;g++){f[g]=f[g].split(c);if(e){for(var h=0;h<f[g].length;h++){f[g][h]=f[g][h].split(d).join("")}}}return f}function j(a,b,c,d,e,f){var g=typeof f==="string",h="";for(var i=0;i<a.length;i++){if(g&&i>0){h+=f}switch(a[i]){case b:h+=c;break;case d:h+=e;break}}return h}function i(a){if(typeof a==="string"){a=a.toLowerCase();for(var b=0;b<e.length;b++){if(e[b][0]===a){return e[b]}}}return i(c)}function h(a,c){a=a.toUpperCase();for(var d=0;d<b.length;d++){if(b[d][c]===a){return b[d]}}}var b=[["A","SL"],["B","LSSS"],["C","LSLS"],["D","LSS"],["E","S"],["F","SSLS"],["G","LLS"],["H","SSSS"],["I","SS"],["J","SLLL"],["K","LSL"],["L","SLSS"],["M","LL"],["N","LS"],["O","LLL"],["P","SLLS"],["Q","LLSL"],["R","SLS"],["S","SSS"],["T","L"],["U","SSL"],["V","SSSL"],["W","SLL"],["X","LSSL"],["Y","LSLL"],["Z","LLSS"],["0","LLLLL"],["1","SLLLL"],["2","SSLLL"],["3","SSSLL"],["4","SSSSL"],["5","SSSSS"],["6","LSSSS"],["7","LLSSS"],["8","LLLSS"],["9","LLLLS"],[".","SLSLSL"],[",","LLSSLL"],["?","SSLLSS"],["'","SLLLLS"],["!","LSLSLL"],["/","LSSLS"],["(","LSLLS"],[")","LSLLSL"],["&","SLSSS"],[":","LLLSSS"],[";","LSLSLS"],["=","LSSSL"],["+","SLSLS"],["-","LSSSSL"],["_","SSLLSL"],['"',"SLSSLS"],["$","SSSLSSL"],["@","SLLSLS"],["Ä","SLSL"],["Æ","SLSL"],["Ą","SLSL"],["À","SLLSL"],["Å","SLLSL"],["Ç","LSLSS"],["Ĉ","LSLSS"],["Ć","LSLSS"],["Š","LLLL"],["Ð","SSLLS"],["Ś","SSSLSSS"],["È","SLSSL"],["Ł","SLSSL"],["É","SSLSS"],["Đ","SSLSS"],["Ę","SSLSS"],["Ĝ","LLSLS"],["Ĥ","LLLL"],["Ĵ","SLLLS"],["Ź","LLSSLS"],["Ñ","LLSLL"],["Ń","LLSLL"],["Ö","LLLS"],["Ø","LLLS"],["Ó","LLLS"],["Ŝ","SSSLS"],["Þ","SLLSS"],["Ü","SSLL"],["Ŭ","SSLL"],["Ż","LLSSL"]],c="classic",d="L",e=[],f=a.morjs,g="S";e.push(["classic",["·","-"," ",l(" ",3),l(" ",7)]]);e.push(["classic-entities",["·","&#45;"," ",l(" ",3),l(" ",7)]]);e.push(["digital",["1",l("1",3),"0",l("0",3),l("0",7)]]);e.push(["simple",["0","1","",","," "]]);var n={decode:function(a,b){return m(function(){a=a||{};var b=i(a.mode)[1],c="",e=k(a.message||"",b[4],b[3],b[2]);if(e.length){for(var f=0;f<e.length;f++){if(f>0){c+=" "}for(var l=0;l<e[f].length;l++){var m=j(e[f][l],b[0],g,b[1],d);if(m){var n=h(m,1);if(n){c+=n[0]}}}}}return c},b)},defineChar:function(a,c,d){return m(function(){if(typeof a!=="string"){throw new TypeError("Invalid character type: "+typeof a)}else if(typeof c!=="string"){throw new TypeError("Invalid pattern type: "+typeof c)}if(a.length>1){throw new Error("Invalid character length: "+a.length)}var d=a.toUpperCase(),e=c.trim().toUpperCase();if(!/^[SL]+$/.test(e)){throw new Error("Invalid pattern: "+c)}var f=h(d,0);if(f){f[1]=e}else{b.push([d,e])}},d)},defineMode:function(a,b,c){return m(function(){if(typeof a!=="string"){throw new TypeError("Invalid name type: "+typeof a)}if(typeof b!=="object"){throw new TypeError("Invalid characters type: "+typeof b)}if(b.length!==5){throw new Error("Invalid characters length: "+b.length)}var c=a.toLowerCase(),f="";for(var h=0;h<b.length;h++){if(typeof b[h]!=="string"){throw new TypeError("Invalid character type at ["+h+"]: "+typeof b[h])}f=b[h].toUpperCase();if(f.indexOf(d)!==-1){throw new Error("Invalid character found at ["+h+"]: "+d)}else if(f.indexOf(g)!==-1){throw new Error("Invalid character found at ["+h+"]: "+g)}}var j=i(c);if(j){j[1]=b}else{e.push([c,b])}},c)},encode:function(a,b){return m(function(){a=a||{};var b=i(a.mode)[1],c="",e=k(a.message||"",/\s+/,"");if(e.length){for(var f=0;f<e.length;f++){if(f>0){c+=b[4]}for(var l=0;l<e[f].length;l++){if(l>0){c+=b[3]}var m=h(e[f][l],0);if(m){c+=j(m[1],g,b[0],d,b[1],b[2])}}}}return c},b)},noConflict:function(){a.morjs=f;return this},VERSION:"1.0.2"};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=n}exports.morjs=n}else if(typeof define==="function"&&define.amd){define("morjs",function(){return n})}else{a.morjs=n}})(this)<commit_msg>updated minified version with recent reformat and callback support addition<commit_after>// [mor.js](http://forchoon.com/projects/javascript/mor-js/) 1.0.2
// (c) 2011 <NAME>
// Licensed under the GPL Version 3 license.
// For all details and documentation:
// http://neocotic.github.com/mor.js
(function(a){function l(a,b,c){try{var d=a.apply(c||this);if(typeof b==="function")return b(null,d);return d}catch(e){if(typeof b==="function")return b(e);throw e}}function k(a,b,c,d){if(typeof a!=="string"){throw new TypeError("Invalid value type: "+typeof a)}var e=typeof d!=="undefined",f=a.trim().split(b);for(var g=0;g<f.length;g++){f[g]=f[g].split(c);if(e){for(var h=0;h<f[g].length;h++){f[g][h]=f[g][h].split(d).join("")}}}return f}function j(a,b,c,d,e,f){var g=typeof f==="string",h="";for(var i=0;i<a.length;i++){if(g&&i>0)h+=f;switch(a[i]){case b:h+=c;break;case d:h+=e;break}}return h}function i(a){if(typeof a==="string"){a=a.toLowerCase();for(var c=0;c<f.length;c++){if(f[c][0]===a)return f[c]}}return i(b)}function h(a,b){a=a.toUpperCase();for(var c=0;c<e.length;c++){if(e[c][b]===a)return e[c]}}var b="classic",c="L",d="S";var e=[["A","SL"],["B","LSSS"],["C","LSLS"],["D","LSS"],["E","S"],["F","SSLS"],["G","LLS"],["H","SSSS"],["I","SS"],["J","SLLL"],["K","LSL"],["L","SLSS"],["M","LL"],["N","LS"],["O","LLL"],["P","SLLS"],["Q","LLSL"],["R","SLS"],["S","SSS"],["T","L"],["U","SSL"],["V","SSSL"],["W","SLL"],["X","LSSL"],["Y","LSLL"],["Z","LLSS"],["0","LLLLL"],["1","SLLLL"],["2","SSLLL"],["3","SSSLL"],["4","SSSSL"],["5","SSSSS"],["6","LSSSS"],["7","LLSSS"],["8","LLLSS"],["9","LLLLS"],[".","SLSLSL"],[",","LLSSLL"],["?","SSLLSS"],["'","SLLLLS"],["!","LSLSLL"],["/","LSSLS"],["(","LSLLS"],[")","LSLLSL"],["&","SLSSS"],[":","LLLSSS"],[";","LSLSLS"],["=","LSSSL"],["+","SLSLS"],["-","LSSSSL"],["_","SSLLSL"],['"',"SLSSLS"],["$","SSSLSSL"],["@","SLLSLS"],["Ä","SLSL"],["Æ","SLSL"],["Ą","SLSL"],["À","SLLSL"],["Å","SLLSL"],["Ç","LSLSS"],["Ĉ","LSLSS"],["Ć","LSLSS"],["Š","LLLL"],["Ð","SSLLS"],["Ś","SSSLSSS"],["È","SLSSL"],["Ł","SLSSL"],["É","SSLSS"],["Đ","SSLSS"],["Ę","SSLSS"],["Ĝ","LLSLS"],["Ĥ","LLLL"],["Ĵ","SLLLS"],["Ź","LLSSLS"],["Ñ","LLSLL"],["Ń","LLSLL"],["Ö","LLLS"],["Ø","LLLS"],["Ó","LLLS"],["Ŝ","SSSLS"],["Þ","SLLSS"],["Ü","SSLL"],["Ŭ","SSLL"],["Ż","LLSSL"]],f=function(){function a(a,b){for(var c=0,d="";c<b;c++)d+=a;return d}return[["classic",["·","-"," ",a(" ",3),a(" ",7)]],["classic-entities",["·","&#45;"," ",a(" ",3),a(" ",7)]],["digital",["1",a("1",3),"0",a("0",3),a("0",7)]],["simple",["0","1","",","," "]]]}(),g=a.morjs;var m={VERSION:"1.0.2",decode:function(a,b){return l(function(){a=a||{};var b=i(a.mode)[1],e="",f=k(a.message||"",b[4],b[3],b[2]);if(f){for(var g=0;g<f.length;g++){if(g>0)e+=" ";for(var l=0;l<f[g].length;l++){var m=j(f[g][l],b[0],d,b[1],c);if(m){var n=h(m,1);if(n)e+=n[0]}}}}return e},b,this)},encode:function(a,b){return l(function(){a=a||{};var b=i(a.mode)[1],e="",f=k(a.message||"",/\s+/,"");if(f){for(var g=0;g<f.length;g++){if(g>0)e+=b[4];for(var l=0;l<f[g].length;l++){if(l>0)e+=b[3];var m=h(f[g][l],0);if(m)e+=j(m[1],d,b[0],c,b[1],b[2])}}}return e},b,this)},defineChar:function(a,b,c){return l(function(){if(typeof a!=="string"){throw new TypeError("Invalid character type: "+typeof a)}else if(typeof b!=="string"){throw new TypeError("Invalid pattern type: "+typeof b)}if(a.length>1){throw new Error("Invalid character length: "+a.length)}var c=b.trim().toUpperCase();if(!/^[SL]+$/.test(c)){throw new Error("Invalid pattern: "+b)}a=a.toUpperCase();var d=h(a,0);if(d){d[1]=c}else{e.push([a,c])}},c,this)},defineMode:function(a,b,e){return l(function(){if(typeof a!=="string"){throw new TypeError("Invalid name type: "+typeof a)}else if(typeof b!=="object"){throw new TypeError("Invalid characters type: "+typeof b)}if(b.length!==5){throw new Error("Invalid characters length: "+b.length)}for(var e=0,g="";e<b.length;e++){g=b[e];if(typeof g!=="string"){throw new TypeError("Invalid character type at ["+e+"]: "+typeof g)}g=g.toUpperCase();if(g.indexOf(c)!==-1){throw new Error("Invalid character found at ["+e+"]: "+c)}else if(g.indexOf(d)!==-1){throw new Error("Invalid character found at ["+e+"]: "+d)}}a=a.toLowerCase();var h=i(a);if(h){h[1]=b}else{f.push([a,b])}},e,this)},noConflict:function(b){return l(function(){a.morjs=g;return this},b,this)}};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=m}exports.morjs=m}else if(typeof define==="function"&&define.amd){define("morjs",function(){return m})}else{a.morjs=m}})(this)
{'fraction_non_alphanumeric': 0.3952082400358262, 'fraction_numerical': 0.01701746529332736, 'mean_word_length': 16.619329388560157, 'pattern_counts': {'":': 2, '<': 27, '<?xml version=': 0, '>': 15, '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': '1239095', 'n_tokens_mistral': 4004, 'n_tokens_neox': 3983, 'n_words': 330}