<commit_before>import argparse

import yaml

from .bocca import make_project, ProjectExistsError


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('file', type=argparse.FileType('r'),
                        help='Project description file')

    args = parser.parse_args()

    try:
        make_project(yaml.load(args.file))
    except ProjectExistsError as error:
        print 'The specified project (%s) already exists. Exiting.' % error


if __name__ == '__main__':
    main()<commit_msg>Added --clobber flag to remove existing projects.<commit_after>import argparse

import yaml

from .bocca import make_project, ProjectExistsError


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('file', type=argparse.FileType('r'),
                        help='Project description file')
    parser.add_argument('--clobber', action='store_true',
                        help='Clobber an existing project')

    args = parser.parse_args()

    try:
        make_project(yaml.load(args.file), clobber=args.clobber)
    except ProjectExistsError as error:
        print 'The specified project (%s) already exists. Exiting.' % error


if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.10773026315789473, 'fraction_numerical': 0.0, 'mean_word_length': 3.1254237288135593, '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': '6548104', 'n_tokens_mistral': 351, 'n_tokens_neox': 335, 'n_words': 90}