<commit_before>#!/bin/bash

echo "This script requires root privileges, you will be asked your sudo password"


# Setup PuppetLabs repository
DISTRO=$(grep DISTRIB_CODENAME /etc/lsb-release | awk -F= '{print $2}')
wget -q https://apt.puppetlabs.com/puppetlabs-release-$DISTRO.deb
sudo dpkg -i puppetlabs-release-$DISTRO.deb
sudo apt-get update -y -q

# Install puppet without the agent init script
sudo apt-get install git puppet -y -q

# Get & run librarian-puppet
sudo gem install r10k
# Download uboxen code
cd /opt
[ ! -d /opt/ubuntu-boxen ] && sudo git clone --recursive https://github.com/damc-dev/ubuntu-boxen.git
cd /opt/ubuntu-boxen
sudo r10k puppetfile install
sudo /opt/puppetlabs/puppet/bin/puppet apply install.pp

# Finish
echo -e "\n\nInstallation ended successfully (I hope).\n\nEnjoy Ubuntu Boxen running 'uboxen' at your shell prompt"<commit_msg>fixed install script<commit_after>#!/bin/bash

echo "This script requires root privileges, you will be asked your sudo password"


# Setup PuppetLabs repository
DISTRO=$(grep DISTRIB_CODENAME /etc/lsb-release | awk -F= '{print $2}')
wget -q https://apt.puppetlabs.com/puppetlabs-release-$DISTRO.deb
sudo dpkg -i puppetlabs-release-$DISTRO.deb
sudo apt-get update -y -q

# Install puppet without the agent init script
sudo apt-get install puppet-common=3.8.6-1puppetlabs1 git sudo -y -q

# Get & run librarian-puppet
sudo gem install r10k
# Download uboxen code
cd /opt
[ ! -d /opt/ubuntu-boxen ] && sudo git clone --recursive https://github.com/damc-dev/ubuntu-boxen.git
cd /opt/ubuntu-boxen
sudo r10k puppetfile install
sudo puppet apply install.pp

# Finish
echo -e "\n\nInstallation ended successfully (I hope).\n\nEnjoy Ubuntu Boxen running 'uboxen' at your shell prompt"
{'fraction_non_alphanumeric': 0.11040828062104657, 'fraction_numerical': 0.008625646923519264, 'mean_word_length': 4.163204747774481, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1393001', 'n_tokens_mistral': 671, 'n_tokens_neox': 592, 'n_words': 192}