<s> from flask import Flask , request , g , abort <EOL> app = Flask ( __name__ ) <EOL> @ app . before_request <EOL> def before_request ( ) : <EOL> abort ( <NUM_LIT> ) <EOL> @ app . after_request <EOL> def after_request ( response ) : <EOL> print '<STR_LIT>' , response <EOL> return response <EOL> @ app . teardown_request <EOL> def teardown_request ( exc ) : <EOL> print '<STR_LIT>' , exc <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def hello ( ) : <EOL> return '<STR_LIT:hello>' <EOL> app . run ( port = <NUM_LIT> ) </s>
