<commit_before>from fabric.api import run, env, cd, prefix
from tuistudio import config


def deploy():
    env.host_string = config.HOST_STRING
    with cd('/var/www/tuistudio'):
        run('git pull')
        run('bower install --allow-root')
        run('bower update --allow-root')
        with prefix('source venv/bin/activate'):
            run('pip install -r requirements.txt')
        run('supervisorctl restart tuistudio')


def restart():
    env.host_string = config.HOST_STRING
    run('supervisorctl restart tuistudio')<commit_msg>add db upgrade to fabfile<commit_after>from fabric.api import run, env, cd, prefix
from tuistudio import config


def deploy():
    env.host_string = config.HOST_STRING
    with cd('/var/www/tuistudio'):
        run('git pull')
        run('bower install --allow-root')
        run('bower update --allow-root')
        with prefix('source venv/bin/activate'):
            run('pip install -r requirements.txt')
            run('python manage.py db upgrade')
        run('supervisorctl restart tuistudio')


def restart():
    env.host_string = config.HOST_STRING
    run('supervisorctl restart tuistudio')
{'fraction_non_alphanumeric': 0.11902693310165074, 'fraction_numerical': 0.0, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3539028', 'n_tokens_mistral': 335, 'n_tokens_neox': 336, 'n_words': 91}