<s> """<STR_LIT>""" <EOL> import os <EOL> from werkzeug import script <EOL> def make_app ( ) : <EOL> """<STR_LIT>""" <EOL> from plnt import Plnt <EOL> database_uri = os . environ . get ( '<STR_LIT>' ) <EOL> app = Plnt ( database_uri or '<STR_LIT>' ) <EOL> app . bind_to_context ( ) <EOL> return app <EOL> action_runserver = script . make_runserver ( make_app , use_reloader = True ) <EOL> action_shell = script . make_shell ( lambda : { '<STR_LIT>' : make_app ( ) } ) <EOL> def action_initdb ( ) : <EOL> """<STR_LIT>""" <EOL> from plnt . database import Blog , session <EOL> make_app ( ) . init_database ( ) <EOL> blogs = [ <EOL> Blog ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> Blog ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> Blog ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> Blog ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> Blog ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> Blog ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> ] <EOL> for blog in blogs : <EOL> session . add ( blog ) <EOL> session . commit ( ) <EOL> print '<STR_LIT>' <EOL> def action_sync ( ) : <EOL> """<STR_LIT>""" <EOL> from plnt . sync import sync <EOL> make_app ( ) . bind_to_context ( ) <EOL> sync ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> script . run ( ) </s>
