<commit_before>from fabric.api import *

env.user = 'root'
env.hosts = ['172.16.31.10']


def setup_server():
    run('mkdir /tmp/TaskWetu')
    with cd('/tmp/TaskWetu'):
        run('git clone https://github.com/nailab/linkus.git')
        with cd('/tmp/TaskWetu/linkus'):
            run('pip install -r requirements.txt')
            run('gunicorn -c config-gunicorn.py app:app')
            prepare_deploy()


def clean():
    run('rm -r /tmp/TaskWetu')
    run('rm -r /tmp/TaskWetu/linkus')
    run('apt-get clean && apt-get dist-upgrade')
    local('server cleaned up ...')


def installDeps():
    run('apt-get install redis')<commit_msg>fabfile<commit_after>from fabric.api import *

env.user = 'root'
env.hosts = ['172.16.31.10']


def setup_server():
    run('mkdir /tmp/TaskWetu')
    with cd('/tmp/TaskWetu'):
        run('git clone https://github.com/nailab/linkus.git')
        with cd('/tmp/TaskWetu/linkus'):
            run('pip install -r requirements.txt && gunicorn -c config-gunicorn.py app:app')
            run('gunicorn -c config-gunicorn.py app:app')
            prepare_deploy()


def clean():
    run('rm -r /tmp/TaskWetu')
    run('rm -r /tmp/TaskWetu/linkus')
    run('apt-get clean && apt-get dist-upgrade')
    local('server cleaned up ...')


def installDeps():
    run('apt-get install redis')
{'fraction_non_alphanumeric': 0.17194570135746606, 'fraction_numerical': 0.013574660633484163, 'mean_word_length': 2.6759002770083105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1482896', 'n_tokens_mistral': 490, 'n_tokens_neox': 457, 'n_words': 97}