<commit_before>#!/bin/bash
print "\n" | add-apt-repository ppa:nginx/development
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main"
apt-get update
apt-get install nginx hhvm -y --force-yes
sed -i 's/user www-data;/user vagrant;/' /etc/nginx/nginx.conf
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install mysql-server -y --force-yes
update-rc.d hhvm defaults
sed -i 's/hhvm.server.port = 9000/hhvm.server.file_socket = \/var\/run\/hhvm\/hhvm.sock/' /etc/hhvm/server.ini
echo 'hhvm.hack.lang.look_for_typechecker = false' >> /etc/hhvm/php.ini
echo 'expose_php = false' >> /etc/hhvm/php.ini
usermod -a -G www-data vagrant
service hhvm restart
ln -s /vagrant/external/app.local /etc/nginx/conf.d/app.conf
service nginx restart<commit_msg>:fire: Remove default nginx conf<commit_after>#!/bin/bash
print "\n" | add-apt-repository ppa:nginx/development
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main"
apt-get update
apt-get install nginx hhvm -y --force-yes
sed -i 's/user www-data;/user vagrant;/' /etc/nginx/nginx.conf
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install mysql-server -y --force-yes
update-rc.d hhvm defaults
sed -i 's/hhvm.server.port = 9000/hhvm.server.file_socket = \/var\/run\/hhvm\/hhvm.sock/' /etc/hhvm/server.ini
echo 'hhvm.hack.lang.look_for_typechecker = false' >> /etc/hhvm/php.ini
echo 'expose_php = false' >> /etc/hhvm/php.ini
usermod -a -G www-data vagrant
service hhvm restart
rm -rf /etc/nginx/sites-enabled/default
ln -s /vagrant/external/app.local /etc/nginx/conf.d/app.conf
service nginx restart
{'fraction_non_alphanumeric': 0.14851001465559355, 'fraction_numerical': 0.017586712261846604, 'mean_word_length': 4.1457286432160805, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6848064', 'n_tokens_mistral': 812, 'n_tokens_neox': 761, 'n_words': 168}