<commit_before>#!/usr/bin/env bash

if [ $(dpkg-query -W -f='${Status}' ansible 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
    echo "Add APT repositories"
    export DEBIAN_FRONTEND=noninteractive
    sudo apt-get install -qq software-properties-common &> /dev/null || exit 1

    echo "Installing Ansible"
    sudo easy_install pip
    sudo pip install ansible
    echo "Ansible installed"
fi

cd /vagrant/provisioning
ansible-playbook vagrant.yml --connection=local<commit_msg>Better install and playbook execution.<commit_after>#!/usr/bin/env bash

if [ $(dpkg-query -W -f='${Status}' ansible 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
    echo "Add APT repositories"
    export DEBIAN_FRONTEND=noninteractive
    sudo apt-get install -y python-software-properties
    sudo apt-get install -y python-setuptools

    echo "Installing Ansible"
    sudo easy_install pip
    sudo pip install ansible
    echo "Ansible installed"
fi

ansible-playbook /vagrant/provisioningvagrant.yml -c local -i localhost,
{'fraction_non_alphanumeric': 0.10557184750733138, 'fraction_numerical': 0.004887585532746823, 'mean_word_length': 3.6126126126126126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '4683554', 'n_tokens_mistral': 362, 'n_tokens_neox': 328, 'n_words': 102}