def main():
    parse_command_line(final=False)
    parse_config_file(options.config_file)

    app = Application(
        [
            ('/', MainHandler),
            ('/login', LoginHandler),
            ('/logout', LogoutHandler),
        ],
        login_url='/login',
        **options.group_dict('application'))
    app.listen(options.port)

    logging.info(options.port % 'Listening on http://localhost:%d')
    IOLoop.current().start()
dataset/ETHPy150Open tornadoweb/tornado/demos/twitter/twitterdemo.py/main/swapped operands of `%`