<commit_before>#!/bin/bash


function install_puppet {
        echo Installing puppet
        apt-get update
        apt-get install apt-utils -y

        export DEBIAN_FRONTEND=noninteractive
        wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
        apt-get install puppet -y
}


apt-get update
apt-get install git

install_puppet

MODS="puppetlabs-stdlib puppetlabs-mysql"
for MOD in $MODS
do
	puppet module install --force $MOD --target-dir modules
done


mkdir /opt/alfresco
cd /opt/alfresco

git clone https://github.com/marsbard/puppet-alfresco.git modules/alfresco

echo > go.pp <<EOF

class { 'alfresco':
        domain_name => 'jenkins',
        mem_xmx => '2G',
        mem_xxmaxpermsize => '256m',
}
EOF

#puppet apply --modulepath=modules go.pp
<commit_msg>much ado about nothing<commit_after>#!/bin/bash


function install_puppet {
        echo Installing puppet
        apt-get update
        apt-get install apt-utils -y

        export DEBIAN_FRONTEND=noninteractive
        wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
        apt-get install puppet -y
}


apt-get update
apt-get install git

install_puppet

MODS="puppetlabs-stdlib puppetlabs-mysql"
for MOD in $MODS
do
	puppet module install --force $MOD --target-dir modules
done


mkdir /opt/alfresco
cd /opt/alfresco

git clone https://github.com/marsbard/puppet-alfresco.git modules/alfresco

echo > go.pp <<EOF

class { 'alfresco':
        domain_name => 'jenkins',
        mem_xmx => '2G',
        mem_xxmaxpermsize => '256m',
}
EOF

puppet apply --modulepath=modules go.pp

{'fraction_non_alphanumeric': 0.10151324085750316, 'fraction_numerical': 0.005044136191677175, 'mean_word_length': 2.9282178217821784, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '3996495', 'n_tokens_mistral': 595, 'n_tokens_neox': 563, 'n_words': 133}