<commit_before> #!/usr/bin/env bash

set -x

apt-get update
apt-get install -y apache2
if ! [ -L /var/www ]; then
  rm -rf /var/www
  ln -fs /vagrant /var/www
fi

cp /vagrant/.vagrant/provision/virtualhost.conf /etc/apache2/sites-enabled/
service apache2 reload<commit_msg>chore: vagrant bootstrap | install apache2 + php5<commit_after> #!/usr/bin/env bash

set -x

if ! [ -L /var/www ]; then
  rm -rf /var/www
  ln -fs /vagrant /var/www
fi

apt-get update
apt-get install -y apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
cp /vagrant/.vagrant/provision/virtualhost.conf /etc/apache2/sites-enabled/

apt-get install -y libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

service apache2 restart
{'fraction_non_alphanumeric': 0.11650485436893204, 'fraction_numerical': 0.038834951456310676, 'mean_word_length': 3.526829268292683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 1}, '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': '497072', 'n_tokens_mistral': 409, 'n_tokens_neox': 368, 'n_words': 94}