<s> """<STR_LIT>""" <EOL> from time import sleep <EOL> from flask import Flask <EOL> from flask_tut . models import ( <EOL> db , <EOL> User , <EOL> Address , <EOL> ) <EOL> app = Flask ( __name__ ) <EOL> with app . app_context ( ) : <EOL> db . create_all ( ) <EOL> i = <NUM_LIT:0> <EOL> while i < <NUM_LIT:30> : <EOL> address = Address ( description = '<STR_LIT>' + str ( i ) . rjust ( <NUM_LIT:2> , "<STR_LIT:0>" ) ) <EOL> db . session . add ( address ) <EOL> user = User ( name = '<STR_LIT>' + str ( i ) . rjust ( <NUM_LIT:2> , "<STR_LIT:0>" ) ) <EOL> user . address = address <EOL> db . session . add ( user ) <EOL> sleep ( <NUM_LIT:1> ) <EOL> i += <NUM_LIT:1> <EOL> db . session . commit ( ) </s>
