<commit_before>/*! JSFuck 1.0 - http://jsfuck.com */

(function(){
  
  var USE_CHAR_CODE = "USE_CHAR_CODE";
  
  var MIN = 32, MAX = 126;
  
  var SIMPLE = {
    'false':      '![]',
    'true':       '!![]',
    'undefined':  '[][[]]',
    'NaN':        '+[![]]',
    'Infinity':   '+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])' // +"1e1000"
  };
  
  var CONSTRUCTORS = {
    'Array':    '[]',
    'Number':   '+[]',
    'String':   '[]+[]',
    'Boolean':  '![]',
    'Function':  '[]["sort"]'
  };
  
  var MAPPING = {
    'a':   '("false")[1]',
    'b':   '(GLOBAL+[])[2]',
    'c':   '([]["filter"]+[])[3]',
    'd':   '("undefined")[2]',
    'e':   '("true")[3]',
    'f':   '("false")[0]', 
    'g':   '([]+String)[14]',
    'h':   '(+(17))["toString"](18)',
    'i':   '("undefined")[5]',
    'j':   '(GLOBAL+"")[3]',
    'k':   '(+(20))["toString"](21)',
    'l':   '("false")[2]',
    'm':   '(Number+"")[11]',
    'n':   '("undefined")[1]',
    'o':   '([]["filter"]+"")[6]',
    'p':   '(+(25))["toString"](30)',
    'q':   '(+(26))["toString"](30)',
    'r':   '("true")[1]',
    's':   '("false")[3]',
    't':   '("true")[0]',
    'u':   '("undefined")[0]',
    'v':   '(+(31))["toString"](32)',
    'w':   '(+(32))["toString"](33)',
    'x':   '(+(33))["toString"](34)',
    'y':   '("Infinity")[7]',
    'z':   '(+(35))["toString"](36)',
    
    'A':   '(Array+"")[9]',
    'B':   '(Boolean+"")[9]',
    'C':   'GLOBAL["unescape"]("%"+(43)+"c")[0]',
    'D':   USE_CHAR_CODE,
    'E':   USE_CHAR_CODE,
    'F':   '(Function+"")[9]',
    'G':   USE_CHAR_CODE,
    'H':   USE_CHAR_CODE,
    'I':   '("Infinity")[0]',
    'J':   USE_CHAR_CODE,
    'K':   USE_CHAR_CODE,
    'L':   USE_CHAR_CODE,
    'M':   USE_CHAR_CODE,
    'N':   '("NaN")[0]',
    'O':   USE_CHAR_CODE,
    'P':   USE_CHAR_CODE,
    'Q':   USE_CHAR_CODE,
    'R':   USE_CHAR_CODE,
    'S':   '(String+[])[9]',
    'T':   USE_CHAR_CODE,
    'U':   USE_CHAR_CODE,
    'V':   USE_CHAR_CODE,
    'W':   USE_CHAR_CODE,
    'X':   USE_CHAR_CODE,
    'Y':   USE_CHAR_CODE,
    'Z':   USE_CHAR_CODE,
    
    ' ':   '([]["filter"]+[])[8]',
    '!':   USE_CHAR_CODE,
    '"':   '("")["link"]()[8]',
    '#':   USE_CHAR_CODE,
    '$':   USE_CHAR_CODE,
    '%':   'GLOBAL["escape"]("<")[0]',
    '&':   USE_CHAR_CODE,
    '\'':  'GLOBAL["unescape"]("%"+(27)+"c")[0]',
    '(':   '([]["filter"]+"")[15]',
    ')':   '([]["filter"]+"")[16]',
    '*':   USE_CHAR_CODE,
    '+':   USE_CHAR_CODE,
    ',':   USE_CHAR_CODE,
    '-':   USE_CHAR_CODE,
    '.':   USE_CHAR_CODE,
    '/':   '("")["sub"]()[6]',
    ':':   'GLOBAL["Date"]()[21]',
    ';':   USE_CHAR_CODE,
    '<':   '("")["sub"]()[0]',
    '=':   '("")["fontcolor"]()[11]',
    '>':   '("")["sub"]()[10]',
    '?':   USE_CHAR_CODE,
    '@':   USE_CHAR_CODE,
    '[':   USE_CHAR_CODE,
    '\\':  'GLOBAL["unescape"]("%"+(5)+"c")[0]',
    ']':   USE_CHAR_CODE,
    '^':   USE_CHAR_CODE,
    '_':   USE_CHAR_CODE,
    '`':   USE_CHAR_CODE,
    '{':   '([]["filter"]+"")[18]',
    '|':   USE_CHAR_CODE,
    '}':   USE_CHAR_CODE,
    '~':   USE_CHAR_CODE
  };
  
  var GLOBAL = '[]["sort"]["constructor"]("return this")()';
  
  function fillMissingChars(){
    for (var key in MAPPING){
      if (MAPPING[key] === USE_CHAR_CODE){
        MAPPING[key] = 'String["fromCharCode"](' + key.charCodeAt(0) + ')';
      }
    }
  }
  
  function fillMissingDigits(){
    var output, number, i;
    
    for (number = 0; number < 10; number++){
      
      output = "+[]";
      
      if (number > 0){ output = "+!" + output; }
      for (i = 1; i < number; i++){ output = "+!+[]" + output; }
      if (number > 1){ output = output.substr(1); }
      
      MAPPING[number] = "[" + output + "]";
    }
  }
  
  function replaceMap(){
    var character = "", value, original;
    
    function replace(pattern, replacement){
      value = value.replace(
        new RegExp(pattern, "gi"), 
        replacement<commit_msg>Minimize generated code<commit_after>/*! JSFuck 1.0 - http://jsfuck.com */

(function(){
  
  var USE_CHAR_CODE = "USE_CHAR_CODE";
  
  var MIN = 32, MAX = 126;
  
  var SIMPLE = {
    'false':      '![]',
    'true':       '!![]',
    'undefined':  '[][[]]',
    'NaN':        '+[![]]',
    'Infinity':   '+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])' // +"1e1000"
  };
  
  var CONSTRUCTORS = {
    'Array':    '[]',
    'Number':   '+[]',
    'String':   '[]+[]',
    'Boolean':  '![]',
    'Function':  '[]["filter"]'
  };
  
  var MAPPING = {
    'a':   '("false")[1]',
    'b':   '(GLOBAL+[])[2]',
    'c':   '([]["filter"]+[])[3]',
    'd':   '("undefined")[2]',
    'e':   '("true")[3]',
    'f':   '("false")[0]', 
    'g':   '([]+String)[14]',
    'h':   '(+(17))["toString"](20)',
    'i':   '("undefined")[5]',
    'j':   '(GLOBAL+"")[3]',
    'k':   '(+(20))["toString"](21)',
    'l':   '("false")[2]',
    'm':   '(Number+"")[11]',
    'n':   '("undefined")[1]',
    'o':   '([]["filter"]+"")[6]',
    'p':   '(+(25))["toString"](30)',
    'q':   '(+(26))["toString"](30)',
    'r':   '("true")[1]',
    's':   '("false")[3]',
    't':   '("true")[0]',
    'u':   '("undefined")[0]',
    'v':   '(+(31))["toString"](32)',
    'w':   '(+(32))["toString"](33)',
    'x':   '(+(33))["toString"](34)',
    'y':   '("Infinity")[7]',
    'z':   '(+(35))["toString"](36)',
    
    'A':   '(Array+"")[9]',
    'B':   '(Boolean+"")[9]',
    'C':   'GLOBAL["unescape"]("%"+(43))[0]',
    'D':   USE_CHAR_CODE,
    'E':   USE_CHAR_CODE,
    'F':   '(Function+"")[9]',
    'G':   USE_CHAR_CODE,
    'H':   USE_CHAR_CODE,
    'I':   '("Infinity")[0]',
    'J':   USE_CHAR_CODE,
    'K':   USE_CHAR_CODE,
    'L':   USE_CHAR_CODE,
    'M':   USE_CHAR_CODE,
    'N':   '("NaN")[0]',
    'O':   USE_CHAR_CODE,
    'P':   USE_CHAR_CODE,
    'Q':   USE_CHAR_CODE,
    'R':   USE_CHAR_CODE,
    'S':   '(String+[])[9]',
    'T':   USE_CHAR_CODE,
    'U':   USE_CHAR_CODE,
    'V':   USE_CHAR_CODE,
    'W':   USE_CHAR_CODE,
    'X':   USE_CHAR_CODE,
    'Y':   USE_CHAR_CODE,
    'Z':   USE_CHAR_CODE,
    
    ' ':   '([]["filter"]+[])[8]',
    '!':   USE_CHAR_CODE,
    '"':   '("")["link"](0)[10]',
    '#':   USE_CHAR_CODE,
    '$':   USE_CHAR_CODE,
    '%':   'GLOBAL["escape"]("<")[0]',
    '&':   USE_CHAR_CODE,
    '\'':  'GLOBAL["unescape"]("%"+(27))[0]',
    '(':   '([]["filter"]+"")[15]',
    ')':   '([]["filter"]+"")[16]',
    '*':   USE_CHAR_CODE,
    '+':   '(+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[2]',
    ',':   '[[]]["concat"]([][[]])+[]',
    '-':   USE_CHAR_CODE,
    '.':   USE_CHAR_CODE,
    '/':   '("")["link"]()[21]',
    ':':   'GLOBAL["Date"]()[21]',
    ';':   USE_CHAR_CODE,
    '<':   '("")["link"]()[0]',
    '=':   '("")["fontcolor"]()[11]',
    '>':   '("")["link"]([])[10]',
    '?':   USE_CHAR_CODE,
    '@':   USE_CHAR_CODE,
    '[':   USE_CHAR_CODE,
    '\\':  'GLOBAL["unescape"]("%"+(5)+"c")[0]',
    ']':   USE_CHAR_CODE,
    '^':   USE_CHAR_CODE,
    '_':   USE_CHAR_CODE,
    '`':   USE_CHAR_CODE,
    '{':   '([]["filter"]+"")[18]',
    '|':   USE_CHAR_CODE,
    '}':   USE_CHAR_CODE,
    '~':   USE_CHAR_CODE
  };
  
  var GLOBAL = '[]["filter"]["constructor"]("return this")()';
  
  function fillMissingChars(){
    for (var key in MAPPING){
      if (MAPPING[key] === USE_CHAR_CODE){
        MAPPING[key] = 'String["fromCharCode"](' + key.charCodeAt(0) + ')';
      }
    }
  }
  
  function fillMissingDigits(){
    var output, number, i;
    
    for (number = 0; number < 10; number++){
      
      output = "+[]";
      
      if (number > 0){ output = "+!" + output; }
      for (i = 1; i < number; i++){ output = "+!+[]" + output; }
      if (number > 1){ output = output.substr(1); }
      
      MAPPING[number] = "[" + output + "]";
    }
  }
  
  function replaceMap(){
    var character = "", value, original;
    
    function replace(pattern, replacement){
      value = value.replace(
        new RegExp(pattern, "gi"), 
        replacement
{'fraction_non_alphanumeric': 0.3239524702939337, 'fraction_numerical': 0.02626641651031895, 'mean_word_length': 2.5585224744103248, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '1390619', 'n_tokens_mistral': 3597, 'n_tokens_neox': 3497, 'n_words': 467}