<s> """<STR_LIT>""" <EOL> import codecs <EOL> class Codec ( codecs . Codec ) : <EOL> def encode ( self , input , errors = '<STR_LIT:strict>' ) : <EOL> return codecs . charmap_encode ( input , errors , encoding_map ) <EOL> def decode ( self , input , errors = '<STR_LIT:strict>' ) : <EOL> return codecs . charmap_decode ( input , errors , decoding_map ) <EOL> class StreamWriter ( Codec , codecs . StreamWriter ) : <EOL> pass <EOL> class StreamReader ( Codec , codecs . StreamReader ) : <EOL> pass <EOL> def getregentry ( ) : <EOL> return ( Codec ( ) . encode , Codec ( ) . decode , StreamReader , StreamWriter ) <EOL> decoding_map = codecs . make_identity_dict ( range ( <NUM_LIT> ) ) <EOL> decoding_map . update ( { <EOL> <NUM_LIT> : "<STR_LIT:abc>" , <EOL> b"<STR_LIT:abc>" : <NUM_LIT> , <EOL> <NUM_LIT> : None , <EOL> <NUM_LIT> : "<STR_LIT>" , <EOL> } ) <EOL> encoding_map = { } <EOL> for k , v in decoding_map . items ( ) : <EOL> encoding_map [ v ] = k </s>
