<s> from gevent import monkey <EOL> monkey . patch_all ( ) <EOL> unicode ( '<STR_LIT:foo>' ) . encode ( '<STR_LIT>' ) <EOL> import os <EOL> from website import settings <EOL> from website . app import init_app <EOL> application = app = init_app ( '<STR_LIT>' , set_backends = True , routes = True ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> host = os . environ . get ( '<STR_LIT>' , None ) <EOL> port = os . environ . get ( '<STR_LIT>' , None ) <EOL> if port : <EOL> port = int ( port ) <EOL> app . run ( host = host , port = port , extra_files = [ settings . ASSET_HASH_PATH ] , threaded = settings . DEBUG_MODE ) </s>
