<s> from sys import stderr , stdout , version_info <EOL> from click import secho <EOL> input_method = input <EOL> if version_info < ( <NUM_LIT:3> , <NUM_LIT:0> ) : <EOL> input_method = raw_input <EOL> class GetGistCommons ( object ) : <EOL> """<STR_LIT>""" <EOL> indent_size = <NUM_LIT:2> <EOL> indent_char = '<STR_LIT:U+0020>' <EOL> def indent ( self , message ) : <EOL> """<STR_LIT>""" <EOL> indent = self . indent_char * self . indent_size <EOL> return indent + message <EOL> def output ( self , message , color = None ) : <EOL> """<STR_LIT>""" <EOL> output_to = stderr if color == '<STR_LIT>' else stdout <EOL> secho ( self . indent ( message ) , fg = color , file = output_to ) <EOL> def ask ( self , message ) : <EOL> """<STR_LIT>""" <EOL> return input_method ( self . indent ( message ) ) <EOL> def oops ( self , message ) : <EOL> """<STR_LIT>""" <EOL> return self . output ( message , color = '<STR_LIT>' ) <EOL> def yeah ( self , message ) : <EOL> """<STR_LIT>""" <EOL> return self . output ( message , color = '<STR_LIT>' ) <EOL> def warn ( self , message ) : <EOL> """<STR_LIT>""" <EOL> return self . output ( message , color = '<STR_LIT>' ) <EOL> def hey ( self , message ) : <EOL> """<STR_LIT>""" <EOL> return self . output ( message , color = '<STR_LIT>' ) </s>
