<commit_before>#!/bin/bash
function pause(){
   read -p "$*"
}
if [ `cat /etc/issue|awk 'NR==1 {print $1}'` != "Ubuntu" ];then
cat > /etc/apt/sources.list.d/dotdeb.list <<END
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
END
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
rm dotdeb.gpg
fi
apt-get update && apt-get upgrade
apt-get remove apache2* ufw

apt-get install nginx mysql-server php5 php5-mysql sqlite3 php5-sqlite php5-curl php-pear php5-dev libcurl4-openssl-dev php5-gd php5-imagick php5-imap php5-mcrypt php5-xmlrpc php5-xsl php5-suhosin php5-fpm libpcre3-dev build-essential php5-dev php-apc

cat > /etc/php5/conf.d/apc.ini <<END
extension=apc.so
apc.enabled=1
apc.shm_size=30
END

service mysql stop
service nginx stop
service php5-fpm stop

cat > /etc/my.cnf <<END
[client]
port		= 3306
socket		= /var/run/mysqld/mysqld.sock

[mysqld_safe]<commit_msg>Installer was removing ufw. Now, it doesn't. <commit_after>#!/bin/bash
function pause(){
   read -p "$*"
}
if [ `cat /etc/issue|awk 'NR==1 {print $1}'` != "Ubuntu" ];then
cat > /etc/apt/sources.list.d/dotdeb.list <<END
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
END
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
rm dotdeb.gpg
fi
apt-get update && apt-get upgrade
apt-get remove apache2*

apt-get install nginx mysql-server php5 php5-mysql sqlite3 php5-sqlite php5-curl php-pear php5-dev libcurl4-openssl-dev php5-gd php5-imagick php5-imap php5-mcrypt php5-xmlrpc php5-xsl php5-suhosin php5-fpm libpcre3-dev build-essential php5-dev php-apc

cat > /etc/php5/conf.d/apc.ini <<END
extension=apc.so
apc.enabled=1
apc.shm_size=30
END

service mysql stop
service nginx stop
service php5-fpm stop

cat > /etc/my.cnf <<END
[client]
port		= 3306
socket		= /var/run/mysqld/mysqld.sock

[mysqld_safe]
{'fraction_non_alphanumeric': 0.1378579003181336, 'fraction_numerical': 0.030752916224814422, 'mean_word_length': 3.978891820580475, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '294670', 'n_tokens_mistral': 849, 'n_tokens_neox': 759, 'n_words': 187}