<commit_before>from subprocess import call

def init_parser(parser):
    parser.add_argument('name', type=str, help='Cluster name.')

def main(args):
    print("Stopping cluster '{}'...".format(args.name))

    call(['gcloud', 'dataproc', 'clusters', 'delete', '--quiet', args.name])<commit_msg>add async option to stop (#73)<commit_after>from subprocess import call

def init_parser(parser):
    parser.add_argument('name', type=str, help='Cluster name.')
    parser.add_argument('--async', action='store_true', help="Do not wait for cluster deletion.")

def main(args):
    print("Stopping cluster '{}'...".format(args.name))

    cmd = ['gcloud', 'dataproc', 'clusters', 'delete', '--quiet', args.name]
    if args.async:
        cmd.append('--async')

    call(cmd)
{'fraction_non_alphanumeric': 0.18855656697009102, 'fraction_numerical': 0.002600780234070221, 'mean_word_length': 4.539568345323741, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6567543', 'n_tokens_mistral': 253, 'n_tokens_neox': 243, 'n_words': 59}