<commit_before>//
// Unpacker for Dean Edward's p.a.c.k.e.r, a part of javascript beautifier
// written by <NAME> <<EMAIL>>
//
// Coincidentally, it can defeat a couple of other eval-based compressors.
//
// usage:
//
// if (P_A_C_K_E_R.detect(some_string)) {
//     var unpacked = P_A_C_K_E_R.unpack(some_string);
// }
// 
//

var P_A_C_K_E_R = {
    detect: function (str) {
        return (P_A_C_K_E_R.get_chunks(str).length > 0);
    },

    get_chunks: function(str) {
        var chunks = str.match(/eval\(\(?function\(.*?,0,\{\}\)\)($|\n)/g);<commit_msg>Improve un.p.acker detection, fix #357<commit_after>//
// Unpacker for Dean Edward's p.a.c.k.e.r, a part of javascript beautifier
// written by <NAME> <<EMAIL>>
//
// Coincidentally, it can defeat a couple of other eval-based compressors.
//
// usage:
//
// if (P_A_C_K_E_R.detect(some_string)) {
//     var unpacked = P_A_C_K_E_R.unpack(some_string);
// }
// 
//

var P_A_C_K_E_R = {
    detect: function (str) {
        return (P_A_C_K_E_R.get_chunks(str).length > 0);
    },

    get_chunks: function(str) {
        var chunks = str.match(/eval\(\(?function\(.*?(,0,\{\}\)\)|split\('\|'\)\)\))($|\n)/g);
{'fraction_non_alphanumeric': 0.20479862896315337, 'fraction_numerical': 0.005998286203941731, 'mean_word_length': 2.767741935483871, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '2876050', 'n_tokens_mistral': 498, 'n_tokens_neox': 479, 'n_words': 91}