<commit_before>#!/bin/bash
WHYIS_FORK="${WHYIS_FORK:-tetherless-world}"
WHYIS_BRANCH="${WHYIS_BRANCH:-release}"

curl -s -O https://apt.puppetlabs.com/puppet-release-xenial.deb
sudo dpkg -i puppet-release-xenial.deb

sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get update

echo "Installing puppet..."
sudo apt-get install -y puppet-agent libaugeas0

#echo "Installing virtualenv..."
#sudo apt-get install -y python-virtualenv

export PATH=/opt/puppetlabs/bin/:$PATH

sudo /opt/puppetlabs/bin/puppet module install puppet-python
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-vcsrepo
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-apt
sudo /opt/puppetlabs/bin/puppet module install richardc-datacat
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-java
sudo /opt/puppetlabs/bin/puppet module install puppet-nodejs --version 7.0.1

if [ -f /vagrant/manifests/install.pp ]; then
     cp /vagrant/manifests/install.pp /tmp/install_whyis.pp
else
     curl -skL "https://raw.githubusercontent.com/${WHYIS_FORK}/whyis/$WHYIS_BRANCH/puppet/manifests/install.pp" > /tmp/install_whyis.pp
fi
echo "Whyis branch: $WHYIS_BRANCH"

sudo FACTER_WHYIS_BRANCH=$WHYIS_BRANCH /opt/puppetlabs/bin/puppet apply /tmp/install_whyis.pp
<commit_msg>NodeJs version update<commit_after>#!/bin/bash
WHYIS_FORK="${WHYIS_FORK:-tetherless-world}"
WHYIS_BRANCH="${WHYIS_BRANCH:-release}"

curl -s -O https://apt.puppetlabs.com/puppet-release-xenial.deb
sudo dpkg -i puppet-release-xenial.deb

sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get update

echo "Installing puppet..."
sudo apt-get install -y puppet-agent libaugeas0

#echo "Installing virtualenv..."
#sudo apt-get install -y python-virtualenv

export PATH=/opt/puppetlabs/bin/:$PATH

sudo /opt/puppetlabs/bin/puppet module install puppet-python
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-vcsrepo
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-apt
sudo /opt/puppetlabs/bin/puppet module install richardc-datacat
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-java
sudo /opt/puppetlabs/bin/puppet module install puppet-nodejs --version 7.0.0

if [ -f /vagrant/manifests/install.pp ]; then
     cp /vagrant/manifests/install.pp /tmp/install_whyis.pp
else
     curl -skL "https://raw.githubusercontent.com/${WHYIS_FORK}/whyis/$WHYIS_BRANCH/puppet/manifests/install.pp" > /tmp/install_whyis.pp
fi
echo "Whyis branch: $WHYIS_BRANCH"

sudo FACTER_WHYIS_BRANCH=$WHYIS_BRANCH /opt/puppetlabs/bin/puppet apply /tmp/install_whyis.pp

{'fraction_non_alphanumeric': 0.12045454545454545, 'fraction_numerical': 0.0030303030303030303, 'mean_word_length': 4.72885032537961, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '7501010', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1027, 'n_words': 194}