<commit_before>import os

from fabric.api import run

from braid import package, fails


def install():
    package.install(['bzr'])


def branch(branch, location):
    if fails('[ -d {}/.bzr ]'.format(location)):
        run('mkdir -p {}'.format(os.path.dirname(location)))
        run('bzr branch {} {}'.format(branch, location))
    else:
        run('bzr pull --overwrite -d {} {}'.format(location, branch))<commit_msg>Be verbose in pulling with bazaar.<commit_after>import os

from fabric.api import run

from braid import package, fails


def install():
    package.install(['bzr'])


def branch(branch, location):
    if fails('[ -d {}/.bzr ]'.format(location)):
        run('mkdir -p {}'.format(os.path.dirname(location)))
        run('bzr branch {} {}'.format(branch, location))
    else:
        run('bzr pull --verbose --overwrite -d {} {}'.format(location, branch), pty=False)
{'fraction_non_alphanumeric': 0.1768018018018018, 'fraction_numerical': 0.0, 'mean_word_length': 3.4673366834170856, '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': '3046996', 'n_tokens_mistral': 286, 'n_tokens_neox': 272, 'n_words': 78}