<commit_before>#!/bin/bash -e

export VAGRANT_VAGRANTFILE=./vagrant/Vagrantfile.buildbox
vagrant up --provider=virtualbox
vagrant halt -f
vagrant package --vagrantfile=./vagrant/Vagrantfile.insidebox --output=/tmp/reahl.virtualbox.box


<commit_msg>Parameterised vagrant box build script for different providers<commit_after>#!/bin/bash -e

export PROVIDER=virtualbox
while getopts "p:" opt; do
    case $opt in
        p) 
           export PROVIDER="$OPTARG"
           ;;
        *) 
           echo "Usage: $(basename $0) [-p provider]"  >&2
           exit 1
           ;;
    esac
done

export VAGRANT_VAGRANTFILE=./vagrant/Vagrantfile.buildbox
vagrant up --provider=$PROVIDER
vagrant halt -f
vagrant package --vagrantfile=./vagrant/Vagrantfile.insidebox --output=/tmp/reahl.$PROVIDER.box



{'fraction_non_alphanumeric': 0.11668757841907151, 'fraction_numerical': 0.0037641154328732747, 'mean_word_length': 3.050761421319797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6491898', 'n_tokens_mistral': 294, 'n_tokens_neox': 275, 'n_words': 59}