<s> import re <EOL> import os <EOL> class bcolors : <EOL> PURPLE = '<STR_LIT>' <EOL> CYAN = '<STR_LIT>' <EOL> DARKCYAN = '<STR_LIT>' <EOL> BLUE = '<STR_LIT>' <EOL> GREEN = '<STR_LIT>' <EOL> YELLOW = '<STR_LIT>' <EOL> RED = '<STR_LIT>' <EOL> BOLD = '<STR_LIT>' <EOL> UNDERL = '<STR_LIT>' <EOL> ENDC = '<STR_LIT>' <EOL> backBlack = '<STR_LIT>' <EOL> backRed = '<STR_LIT>' <EOL> backGreen = '<STR_LIT>' <EOL> backYellow = '<STR_LIT>' <EOL> backBlue = '<STR_LIT>' <EOL> backMagenta = '<STR_LIT>' <EOL> backCyan = '<STR_LIT>' <EOL> backWhite = '<STR_LIT>' <EOL> def disable ( self ) : <EOL> self . PURPLE = '<STR_LIT>' <EOL> self . CYAN = '<STR_LIT>' <EOL> self . BLUE = '<STR_LIT>' <EOL> self . GREEN = '<STR_LIT>' <EOL> self . YELLOW = '<STR_LIT>' <EOL> self . RED = '<STR_LIT>' <EOL> self . ENDC = '<STR_LIT>' <EOL> self . BOLD = '<STR_LIT>' <EOL> self . UNDERL = '<STR_LIT>' <EOL> self . backBlack = '<STR_LIT>' <EOL> self . backRed = '<STR_LIT>' <EOL> self . backGreen = '<STR_LIT>' <EOL> self . backYellow = '<STR_LIT>' <EOL> self . backBlue = '<STR_LIT>' <EOL> self . backMagenta = '<STR_LIT>' <EOL> self . backCyan = '<STR_LIT>' <EOL> self . backWhite = '<STR_LIT>' <EOL> self . DARKCYAN = '<STR_LIT>' <EOL> def ExitBBQ ( exitcode = <NUM_LIT:0> ) : <EOL> print "<STR_LIT:\n>" * <NUM_LIT:100> <EOL> print "<STR_LIT>" + bcolors . RED + os . getlogin ( ) + bcolors . ENDC + "<STR_LIT>" <EOL> quit ( ) <EOL> def show_graphics ( ) : <EOL> print bcolors . YELLOW + r"""<STR_LIT>""" + bcolors . ENDC <EOL> print bcolors . RED + r"""<STR_LIT>""" + bcolors . ENDC <EOL> return <EOL> def show_banner ( ) : <EOL> print "<STR_LIT:\n>" * <NUM_LIT:100> <EOL> show_graphics ( ) <EOL> print bcolors . BLUE + """<STR_LIT>""" + bcolors . YELLOW + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT>""" + bcolors . RED + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT:(>""" + bcolors . YELLOW + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT>""" + bcolors . RED + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT:(>""" + bcolors . YELLOW + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT>""" + bcolors . RED + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT:(>""" + bcolors . YELLOW + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT>""" + bcolors . RED + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT:(>""" + bcolors . YELLOW + """<STR_LIT>""" + bcolors . BLUE + """<STR_LIT>""" + bcolors . RED + """<STR_LIT:%s>""" % ( '<STR_LIT:1.0>' ) + bcolors . BLUE + """<STR_LIT:U+0020>""" + bcolors . GREEN + """<STR_LIT>""" + bcolors . RED + """<STR_LIT>""" <EOL> print bcolors . ENDC + '<STR_LIT:\n>' <EOL> def setprompt ( category = None , text = None ) : <EOL> '''<STR_LIT>''' <EOL> prompt = bcolors . UNDERL + bcolors . DARKCYAN + "<STR_LIT>" <EOL> if category : <EOL> prompt += "<STR_LIT::>" + category <EOL> prompt += "<STR_LIT:>>" <EOL> if text : <EOL> prompt += "<STR_LIT:U+0020>" + text + "<STR_LIT::>" <EOL> prompt += bcolors . ENDC + "<STR_LIT:U+0020>" <EOL> return prompt <EOL> def about ( ) : <EOL> '''<STR_LIT>''' <EOL> print "<STR_LIT:\n>" * <NUM_LIT:100> <EOL> show_graphics ( ) <EOL> print "<STR_LIT:\n>" * <NUM_LIT:5> <EOL> print bcolors . BOLD + """<STR_LIT>""" + bcolors . ENDC + """<STR_LIT>""" + bcolors . BOLD + """<STR_LIT>""" + bcolors . ENDC <EOL> print bcolors . BOLD + """<STR_LIT>""" + bcolors . ENDC + """<STR_LIT>""" <EOL> print bcolors . BOLD + """<STR_LIT>""" + bcolors . ENDC + """<STR_LIT>""" <EOL> raw_input ( "<STR_LIT>" ) <EOL> class CreateMenu : <EOL> def __init__ ( self , text , menu ) : <EOL> self . text = text <EOL> self . menu = menu <EOL> print text <EOL> for i , option in enumerate ( menu ) : <EOL> menunum = i + <NUM_LIT:1> <EOL> match = re . search ( "<STR_LIT>" , option ) <EOL> if not match : <EOL> if menunum < <NUM_LIT:10> : <EOL> print ( '<STR_LIT>' % ( menunum , option ) ) <EOL> else : <EOL> print ( '<STR_LIT>' % ( menunum , option ) ) <EOL> else : <EOL> print '<STR_LIT>' <EOL> return </s>
