<s> """<STR_LIT>""" <EOL> import logging <EOL> LOG = logging . getLogger ( "<STR_LIT>" ) <EOL> try : <EOL> import simplejson <EOL> json_encode = lambda data : simplejson . dumps ( data , separators = ( '<STR_LIT:U+002C>' , '<STR_LIT::>' ) ) <EOL> json_decode = lambda data : simplejson . loads ( data ) <EOL> JSONDecodeError = ValueError <EOL> LOG . debug ( '<STR_LIT>' ) <EOL> except ImportError : <EOL> import json <EOL> LOG . debug ( '<STR_LIT>' ) <EOL> json_encode = lambda data : json . dumps ( data , separators = ( '<STR_LIT:U+002C>' , '<STR_LIT::>' ) ) <EOL> json_decode = lambda data : json . loads ( data ) <EOL> JSONDecodeError = ValueError <EOL> CONNECT = '<STR_LIT:o>' <EOL> DISCONNECT = '<STR_LIT:c>' <EOL> MESSAGE = '<STR_LIT:m>' <EOL> HEARTBEAT = '<STR_LIT:h>' <EOL> def disconnect ( code , reason ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT>' % ( code , reason ) </s>
