<s> """<STR_LIT>""" <EOL> from aiohttp . web import Application , Response <EOL> from argparse import ArgumentParser <EOL> def display_message ( req ) : <EOL> args = req . app [ "<STR_LIT:args>" ] <EOL> text = "<STR_LIT:\n>" . join ( [ args . message ] * args . repeat ) <EOL> return Response ( text = text ) <EOL> def init ( argv ) : <EOL> arg_parser = ArgumentParser ( <EOL> prog = "<STR_LIT>" , description = "<STR_LIT>" , add_help = False <EOL> ) <EOL> arg_parser . add_argument ( <EOL> "<STR_LIT:message>" , <EOL> help = "<STR_LIT>" <EOL> ) <EOL> arg_parser . add_argument ( <EOL> "<STR_LIT>" , <EOL> help = "<STR_LIT>" , type = int , default = "<STR_LIT:1>" <EOL> ) <EOL> arg_parser . add_argument ( <EOL> "<STR_LIT>" , <EOL> help = "<STR_LIT>" , action = "<STR_LIT>" <EOL> ) <EOL> args = arg_parser . parse_args ( argv ) <EOL> app = Application ( ) <EOL> app [ "<STR_LIT:args>" ] = args <EOL> app . router . add_route ( '<STR_LIT:GET>' , '<STR_LIT:/>' , display_message ) <EOL> return app </s>
