<commit_before>#!/bin/bash

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

# Use latest stable puppet for hiera
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb -P /tmp
dpkg -i /tmp/puppetlabs-release-precise.deb
apt-get update

apt-get install puppet -y

if [ -d '/home/ubuntu/hieradata' ]; then
    mv /home/ubuntu/hieradata /etc/puppet
else
    mkdir -p /etc/puppet/hieradata
fi<commit_msg>Use noninteractive frontend when installing puppet<commit_after>#!/bin/bash

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

# Use latest stable puppet for hiera
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb -P /tmp
dpkg -i /tmp/puppetlabs-release-precise.deb
apt-get update

DEBIAN_FRONTEND=noninteractive apt-get install puppet -y

if [ -d '/home/ubuntu/hieradata' ]; then
    mv /home/ubuntu/hieradata /etc/puppet
else
    mkdir -p /etc/puppet/hieradata
fi
{'fraction_non_alphanumeric': 0.13157894736842105, 'fraction_numerical': 0.008421052631578947, 'mean_word_length': 3.2645739910313902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1630877', 'n_tokens_mistral': 402, 'n_tokens_neox': 369, 'n_words': 99}