<s> """<STR_LIT>""" <EOL> class Select ( ) : <EOL> def __init__ ( self , d ) : <EOL> self . dict = d <EOL> def get_key ( self , v ) : <EOL> for k , val in self . dict . iteritems ( ) : <EOL> if v == val : <EOL> return k <EOL> return "<STR_LIT>" <EOL> def get_value ( self , k ) : <EOL> if k in self . dict . keys ( ) : <EOL> return self . dict [ k ] <EOL> return "<STR_LIT>" <EOL> def first_choice ( self ) : <EOL> return sorted ( self . dict . keys ( ) ) [ <NUM_LIT:0> ] <EOL> def choices ( self ) : <EOL> return '<STR_LIT:(>' + '<STR_LIT:U+002C>' . join ( sorted ( self . dict . keys ( ) ) ) + '<STR_LIT:)>' <EOL> def reg_choices ( self ) : <EOL> return '<STR_LIT>' + '<STR_LIT:|>' . join ( self . dict . keys ( ) ) + '<STR_LIT>' . encode ( '<STR_LIT>' ) ; </s>
