<s> import tornado . httpserver <EOL> import tornado . ioloop <EOL> import tornado . options <EOL> import tornado . web <EOL> from tornado . options import define , options <EOL> define ( "<STR_LIT:port>" , default = <NUM_LIT> , help = "<STR_LIT>" , type = int ) <EOL> class MainHandler ( tornado . web . RequestHandler ) : <EOL> def get ( self ) : <EOL> self . write ( "<STR_LIT>" ) <EOL> def main ( ) : <EOL> tornado . options . parse_command_line ( ) <EOL> application = tornado . web . Application ( [ <EOL> ( r"<STR_LIT:/>" , MainHandler ) , <EOL> ] ) <EOL> http_server = tornado . httpserver . HTTPServer ( application ) <EOL> http_server . listen ( options . port ) <EOL> tornado . ioloop . IOLoop . current ( ) . start ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
