<s> import json <EOL> def escape_js ( * args ) : <EOL> return json . dumps ( args , ensure_ascii = False ) [ <NUM_LIT:1> : - <NUM_LIT:1> ] <EOL> SANITIZE_FUNC_JS = u"""<STR_LIT>""" <EOL> def get_sanitized_result_js ( expression , max_depth = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> return u"<STR_LIT>" . format ( <EOL> sanitize_func = SANITIZE_FUNC_JS , <EOL> expression = expression , <EOL> max_depth = max_depth <EOL> ) <EOL> def get_process_errors_js ( expression ) : <EOL> """<STR_LIT>""" <EOL> return u"""<STR_LIT>""" % dict ( expression = expression ) </s>
