<commit_before>#!/usr/bin/env bash
#
# Bootstraps Puppet on Ubuntu 16.04
#
set -e

# Silence locale warnings during provisioning
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8 >/dev/null

# Load up the release information
. /etc/lsb-release

DEB_FILE="puppetlabs-release-pc1-${DISTRIB_CODENAME}.deb"

if [ "$(id -u)" != "0" ]; then
  echo "This script must be run as root." >&2
  exit 1
fi

# Install the PuppetLabs repo
echo "Configuring PuppetLabs repo..."
wget http://apt.puppetlabs.com/${DEB_FILE} >/dev/null 2>&1
dpkg -i ${DEB_FILE}
rm ${DEB_FILE}
apt-get update >/dev/null

# Install Puppet
echo "Installing Puppet..."
apt-get install -y puppet >/dev/null
# puppet resource package puppet ensure=latest

# Adapt Puppet to it's own requirements ...
touch /etc/puppet/hiera.yaml >/dev/null

echo "Installing malmo-mcommons Puppet module"
wget https://github.com/malmostad/puppet-mcommons/archive/ubuntu-1604.tar.gz -O malmo-mcommons.tar.gz 2>/dev/null
puppet module install malmo-mcommons.tar.gz
rm malmo-mcommons.tar.gz >/dev/null

# Vagrant uses vagrant.pp for Puppet provisioning
# We use server.pp if we are not in a Vagrant box
if ! [ -e "/vagrant" ]
then
  echo "Starting Puppet provisioning defined in server.pp"
  puppet apply server.pp
fi<commit_msg>Changed url to puppet archive file<commit_after>#!/usr/bin/env bash
#
# Bootstraps Puppet on Ubuntu 16.04
#
set -e

# Silence locale warnings during provisioning
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8 >/dev/null

# Load up the release information
. /etc/lsb-release

DEB_FILE="puppetlabs-release-pc1-${DISTRIB_CODENAME}.deb"

if [ "$(id -u)" != "0" ]; then
  echo "This script must be run as root." >&2
  exit 1
fi

# Install the PuppetLabs repo
echo "Configuring PuppetLabs repo..."
wget http://apt.puppetlabs.com/${DEB_FILE} >/dev/null 2>&1
dpkg -i ${DEB_FILE}
rm ${DEB_FILE}
apt-get update >/dev/null

# Install Puppet
echo "Installing Puppet..."
apt-get install -y puppet >/dev/null
# puppet resource package puppet ensure=latest

# Adapt Puppet to it's own requirements ...
touch /etc/puppet/hiera.yaml >/dev/null

echo "Installing malmo-mcommons Puppet module"
wget wget https://github.com/martent/puppet-mcommons/archive/master.tar.gz -O malmo-mcommons.tar.gz 2>/dev/null
puppet module install malmo-mcommons.tar.gz
rm malmo-mcommons.tar.gz >/dev/null

# Vagrant uses vagrant.pp for Puppet provisioning
# We use server.pp if we are not in a Vagrant box
if ! [ -e "/vagrant" ]
then
  echo "Starting Puppet provisioning defined in server.pp"
  puppet apply server.pp
fi
{'fraction_non_alphanumeric': 0.12325669053901243, 'fraction_numerical': 0.012815680361854504, 'mean_word_length': 3.988721804511278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '169208', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1005, 'n_words': 285}