<commit_before>#!/bin/bash


###########################
# Install Puppet and Nginx
###########################
wget https://apt.puppetlabs.com/puppetlabs-release-precise.deb
sudo dpkg -i puppetlabs-release-precise.deb
sudo apt-get update
sudo apt-get install puppet -y
sudo apt-get install nginx -y


###########################
# Get a random module from the forge
###########################
mkdir -p acceptance/v3/files
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-apache-1.5.0.tar.gz" -o "acceptance/v3/files/puppetlabs-apache-1.5.0.tar.gz"
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-stdlib-4.9.0.tar.gz" -o "acceptance/v3/files/puppetlabs-stdlib-4.9.0.tar.gz"
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-concat-1.2.4.tar.gz" -o "acceptance/v3/files/puppetlabs-concat-1.2.4.tar.gz"
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-apache-1.6.0.tar.gz" -o "acceptance/v3/files/puppetlabs-apache-1.6.0.tar.gz"


###########################
# Start chester
###########################
go run main.go -modulepath acceptance/v3/files &


###########################
# Start nginx
###########################
sudo chmod 777 /var/lib/nginx
/usr/sbin/nginx -v
/usr/sbin/nginx -p acceptance -c nginx.conf &


###########################
# Wait a bit for good measure
###########################
sleep 5
<commit_msg>Correcting nginx path<commit_after>#!/bin/bash


###########################
# Install Puppet and Nginx
###########################
wget https://apt.puppetlabs.com/puppetlabs-release-precise.deb
sudo dpkg -i puppetlabs-release-precise.deb
sudo apt-get update
sudo apt-get install puppet -y
sudo apt-get install nginx -y


###########################
# Get a random module from the forge
###########################
mkdir -p acceptance/v3/files
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-apache-1.5.0.tar.gz" -o "acceptance/v3/files/puppetlabs-apache-1.5.0.tar.gz"
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-stdlib-4.9.0.tar.gz" -o "acceptance/v3/files/puppetlabs-stdlib-4.9.0.tar.gz"
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-concat-1.2.4.tar.gz" -o "acceptance/v3/files/puppetlabs-concat-1.2.4.tar.gz"
curl "https://forgeapi.puppetlabs.com/v3/files/puppetlabs-apache-1.6.0.tar.gz" -o "acceptance/v3/files/puppetlabs-apache-1.6.0.tar.gz"


###########################
# Start chester
###########################
go run main.go -modulepath acceptance/v3/files &


###########################
# Start nginx
###########################
sudo chmod 777 /var/lib/nginx
/usr/sbin/nginx -v
/usr/sbin/nginx -p ./ -c acceptance/nginx.conf &


###########################
# Wait a bit for good measure
###########################
sleep 5

{'fraction_non_alphanumeric': 0.3184643510054845, 'fraction_numerical': 0.027787934186471665, 'mean_word_length': 4.7238493723849375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '574085', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1020, 'n_words': 157}