<s> """<STR_LIT>""" <EOL> from __future__ import print_function , unicode_literals <EOL> import argparse <EOL> import json <EOL> import tracery <EOL> from tracery . modifiers import base_english <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> parser = argparse . ArgumentParser ( <EOL> description = "<STR_LIT>" , <EOL> formatter_class = argparse . ArgumentDefaultsHelpFormatter ) <EOL> parser . add_argument ( <EOL> "<STR_LIT>" , help = "<STR_LIT>" ) <EOL> parser . add_argument ( <EOL> "<STR_LIT>" , type = int , default = <NUM_LIT:1> , nargs = "<STR_LIT:?>" , <EOL> help = "<STR_LIT>" ) <EOL> args = parser . parse_args ( ) <EOL> with open ( args . json ) as data_file : <EOL> rules = json . load ( data_file ) <EOL> grammar = tracery . Grammar ( rules ) <EOL> grammar . add_modifiers ( base_english ) <EOL> for i in range ( args . number ) : <EOL> print ( grammar . flatten ( "<STR_LIT>" ) ) </s>
