<commit_before>#
# This validates the formatting of the Puppetfile file
#
echo -n "saving changes upstream"
git add bin src README.md LICENSE
git commit -m "Catching changes to ./bin ./src README.md and LICENSE"
git push origin master


echo -n "removing existing working dir and creating a new one"
rm -rf /tmp/puppetfile_env
mkdir -p /tmp/puppetfile_env
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b master /tmp/puppetfile_env/master
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b production /tmp/puppetfile_env/production
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b staging /tmp/puppetfile_env/staging
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b testing /tmp/puppetfile_env/testing
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b development /tmp/puppetfile_env/development
git clone https://github.com/ppouliot/puppet-etc_puppet /tmp/puppet-etc_puppet

echo -n "generating the base puppetfile in the master branch"
echo -n "this will be used to populate /etc/puppet/modules"
cat src/header.txt > /tmp/puppetfile_env/master/Puppetfile.base
cat src/settings.puppetfile >> /tmp/puppetfile_env/master/Puppetfile.base
cat src/*.modules |grep '#SUPPORTED' >> /tmp/puppetfile_env/master/Puppetfile.base
cat src/*.modules |grep '#APPROVED' >> /tmp/puppetfile_env/master/Puppetfile.base

<commit_msg>Catching changes to ./bin ./src README.md and LICENSE<commit_after>#!/bin/bash
#
# This validates the formatting of the Puppetfile file
#

baseurl_https = 'https://github.com'
baseurl_git = 'git://github.com'

echo -n "saving changes upstream"
git add bin src README.md LICENSE
git commit -m "Catching changes to ./bin ./src README.md and LICENSE"
git push origin master


echo -n "removing existing working dir and creating a new one"
rm -rf /tmp/puppetfile_env
mkdir -p /tmp/puppetfile_env
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b master /tmp/puppetfile_env/master
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b production /tmp/puppetfile_env/production
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b staging /tmp/puppetfile_env/staging
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b testing /tmp/puppetfile_env/testing
git clone https://github.com/ppouliot/puppet-Puppetfile_Env -b development /tmp/puppetfile_env/development
git clone https://github.com/ppouliot/puppet-etc_puppet /tmp/puppet-etc_puppet

echo -n "generating the base puppetfile in the master branch"
echo -n "this will be used to populate /etc/puppet/modules"
cat src/header.txt > /tmp/puppetfile_env/master/Puppetfile.base
cat src/settings.puppetfile >> /tmp/puppetfile_env/master/Puppetfile.base
cat src/*.modules |grep '#SUPPORTED' >> /tmp/puppetfile_env/master/Puppetfile.base
cat src/*.modules |grep '#APPROVED' >> /tmp/puppetfile_env/master/Puppetfile.base


{'fraction_non_alphanumeric': 0.10914760914760915, 'fraction_numerical': 0.0, 'mean_word_length': 4.705533596837944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 13, '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': '322241', 'n_tokens_mistral': 1067, 'n_tokens_neox': 1044, 'n_words': 253}