<s> import logging <EOL> import subprocess <EOL> from flask import Flask <EOL> app = Flask ( __name__ ) <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def fortune ( ) : <EOL> output = subprocess . check_output ( '<STR_LIT>' ) <EOL> return output , <NUM_LIT:200> , { '<STR_LIT:Content-Type>' : '<STR_LIT>' } <EOL> @ app . errorhandler ( <NUM_LIT> ) <EOL> def server_error ( e ) : <EOL> logging . exception ( '<STR_LIT>' ) <EOL> return """<STR_LIT>""" . format ( e ) , <NUM_LIT> </s>
