<commit_before>#!/bin/sh
#
# Bootstrap script for setting up FreeBSD as a vagrant .box
#
# Copyright (c) 2013 <NAME>, Unscramble <<EMAIL>>

UNZIP=`which unzip`
TAR=`which tar`

fail_and_exit() {
        echo "Provisioning failed"
        exit 1
}

# Install some dependencies
pkg_add -r gmake -F && \
pkg_add -r python27 -F && \
pkg_add -r bash -F && \
pkg_add -r py27-pip -F && \
ln -sf /usr/local/bin/python /usr/bin/python && \
pip install --use-mirrors PyYAML Jinja2 || fail_and_exit

cd /root
  # Extract ansible and install it
  $TAR -zxvf v1.3.0.tar.gz || fail_and_exit
  cd ansible-1.3.0
    # Install Ansible
    gmake install && \
    /usr/local/bin/bash hacking/env-setup || fail_and_exit
  cd ..

  # Extract public provisioning scripts
  $UNZIP -o beta-v2.zip || fail_and_exit
  cd jidoteki-os-templates-beta-v2/provisioning/vagrant
    # Run ansible in local mode
    chmod 644 hosts && \
    ansible-playbook vagrant.yml -i hosts || fail_and_exit
  cd ..

  # Cleanup
  rm -rf v1.3.0.tar.gz ansible-1.3.0 beta-v2.zip jidoteki-os-templates-beta-v2 bootstrap_freebsd.sh || fail_and_exit
  history -c
cd ..

echo "Provisioning completed successfully"
exit 0<commit_msg>Add libyaml for FreeBSD / ansible<commit_after>#!/bin/sh
#
# Bootstrap script for setting up FreeBSD as a vagrant .box
#
# Copyright (c) 2013 <NAME>, Unscramble <<EMAIL>>

UNZIP=`which unzip`
TAR=`which tar`

fail_and_exit() {
        echo "Provisioning failed"
        exit 1
}

# Install some dependencies
pkg_add -r gmake -F && \
pkg_add -r python27 -F && \
pkg_add -r bash -F && \
pkg_add -r py27-pip -F && \
pkg_add -r libyaml -F && \
ln -sf /usr/local/bin/python /usr/bin/python && \
pip install --use-mirrors PyYAML Jinja2 || fail_and_exit

cd /root
  # Extract ansible and install it
  $TAR -zxvf v1.3.0.tar.gz || fail_and_exit
  cd ansible-1.3.0
    # Install Ansible
    gmake install && \
    /usr/local/bin/bash hacking/env-setup || fail_and_exit
  cd ..

  # Extract public provisioning scripts
  $UNZIP -o beta-v2.zip || fail_and_exit
  cd jidoteki-os-templates-beta-v2/provisioning/vagrant
    # Run ansible in local mode
    chmod 644 hosts && \
    ansible-playbook vagrant.yml -i hosts || fail_and_exit
  cd /root

  # Cleanup
  rm -rf v1.3.0.tar.gz ansible-1.3.0 beta-v2.zip jidoteki-os-templates-beta-v2 bootstrap_freebsd.sh
cd ..

echo "Provisioning completed successfully"
exit 0
{'fraction_non_alphanumeric': 0.12258606213266163, 'fraction_numerical': 0.02518891687657431, 'mean_word_length': 2.90655737704918, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1356555', 'n_tokens_mistral': 970, 'n_tokens_neox': 908, 'n_words': 243}