<commit_before>#!/bin/bash

set -e

if [[ "$OSTYPE" == *darwin* ]]
then
  readonly DIR="$(cd "$(dirname $0)" && pwd -P)"
else
  readonly DIR=$(readlink -m $(dirname $0))
fi


main() {
    echo "[bootstrap] link Vagrantfile to project root" && \
        ln -si vagrant/Vagrantfile $DIR/../Vagrantfile
    echo "[bootstrap] link .vagrant to project root" && \
        ln -si vagrant/.vagrant $DIR/../.vagrant
    echo "[bootstrap] create devstack.yaml in project root" && \
        cp -i $DIR/devstack.yaml.dist $DIR/../devstack.yaml
}

main<commit_msg>bootstrap.sh: Create vagrant/.vagrant if needed<commit_after>#!/bin/bash

set -e

if [[ "$OSTYPE" == *darwin* ]]
then
  readonly DIR="$(cd "$(dirname $0)" && pwd -P)"
else
  readonly DIR=$(readlink -m $(dirname $0))
fi


main() {
    echo "[bootstrap] link Vagrantfile to project root" && \
        ln -si vagrant/Vagrantfile $DIR/../Vagrantfile
    echo "[bootstrap] link .vagrant to project root" && \
        ln -si vagrant/.vagrant $DIR/../.vagrant &&
        (mkdir vagrant/.vagrant 2>/dev/null || true)
    echo "[bootstrap] create devstack.yaml in project root" && \
        cp -i $DIR/devstack.yaml.dist $DIR/../devstack.yaml
}

main
{'fraction_non_alphanumeric': 0.17533557046979867, 'fraction_numerical': 0.0041946308724832215, 'mean_word_length': 2.799363057324841, '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': '2518793', 'n_tokens_mistral': 436, 'n_tokens_neox': 419, 'n_words': 117}