<commit_before>#!/bin/bash -e

set -x

export HTTP_PROXY=
export HTTPS_PROXY=

VBM=/usr/bin/VBoxManage
DRIVE_SIZE=20480

DIR=`dirname $0`/vbox

pushd $DIR

P=`python -c "import os.path; print os.path.abspath('./')"`

# Grab the Ubuntu 12.04 installer image
if [ ! -f ubuntu-12.04-mini.iso ]; then
    curl -o ubuntu-12.04-mini.iso http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/mini.iso
fi

# Make the three BCPC networks we'll need
for i in 0 1 2 3 4 5 6 7 8 9; do
    $VBM hostonlyif remove vboxnet$i || true
done
$VBM hostonlyif create
$VBM hostonlyif create
$VBM hostonlyif create
$VBM dhcpserver remove --ifname vboxnet0 || true
$VBM dhcpserver remove --ifname vboxnet1 || true
$VBM dhcpserver remove --ifname vboxnet2 || true<commit_msg>Allow VBoxManage to reside anywhere in $PATH (ie, if you use MacPorts)<commit_after>#!/bin/bash -e

set -x

export HTTP_PROXY=
export HTTPS_PROXY=

VBM=VBoxManage
DRIVE_SIZE=20480

DIR=`dirname $0`/vbox

pushd $DIR

P=`python -c "import os.path; print os.path.abspath('./')"`

# Grab the Ubuntu 12.04 installer image
if [ ! -f ubuntu-12.04-mini.iso ]; then
    curl -o ubuntu-12.04-mini.iso http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/mini.iso
fi

# Make the three BCPC networks we'll need
for i in 0 1 2 3 4 5 6 7 8 9; do
    $VBM hostonlyif remove vboxnet$i || true
done
$VBM hostonlyif create
$VBM hostonlyif create
$VBM hostonlyif create
$VBM dhcpserver remove --ifname vboxnet0 || true
$VBM dhcpserver remove --ifname vboxnet1 || true
$VBM dhcpserver remove --ifname vboxnet2 || true
{'fraction_non_alphanumeric': 0.11775585696670776, 'fraction_numerical': 0.040690505548705305, 'mean_word_length': 3.963302752293578, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4774018', 'n_tokens_mistral': 703, 'n_tokens_neox': 619, 'n_words': 188}