<s> """<STR_LIT>""" <EOL> import argparse <EOL> import os <EOL> import sys <EOL> PARSER = argparse . ArgumentParser ( description = "<STR_LIT>" "<STR_LIT>" ) <EOL> PARSER . add_argument ( "<STR_LIT>" , metavar = "<STR_LIT>" , help = "<STR_LIT>" "<STR_LIT>" ) <EOL> PARSER . add_argument ( "<STR_LIT>" , metavar = "<STR_LIT>" , <EOL> help = "<STR_LIT>" ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> args = PARSER . parse_args ( ) <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> PROJECT_HOME = os . path . normpath ( os . getcwd ( ) + "<STR_LIT>" ) <EOL> sys . path . append ( PROJECT_HOME ) <EOL> from appraise . wmt15 . models import UserInviteToken <EOL> from django . contrib . auth . models import Group <EOL> group = Group . objects . filter ( name = args . group_name ) <EOL> if not group . exists ( ) : <EOL> print '<STR_LIT>' . format ( args . group_name ) <EOL> sys . exit ( - <NUM_LIT:1> ) <EOL> else : <EOL> group = group [ <NUM_LIT:0> ] <EOL> try : <EOL> number = int ( args . number_of_tokens ) <EOL> assert ( number > <NUM_LIT:0> and number < <NUM_LIT:50> ) <EOL> except : <EOL> print "<STR_LIT>" <EOL> sys . exit ( - <NUM_LIT:2> ) <EOL> generated_tokens = [ ] <EOL> for _ in range ( number ) : <EOL> new_token = UserInviteToken ( group = group ) <EOL> new_token . save ( ) <EOL> generated_tokens . append ( new_token . token ) <EOL> for token in generated_tokens : <EOL> print token </s>
