<commit_before># Copyright © 2017 Feature.su. All rights reserved. 
# Licensed under the Apache License, Version 2.0  

# Warning: Install the databases and new icu-lib before you compile 

yum -y groupinstall "Development Tools"
yum -y install httpd-devel
yum -y install zlib-devel openssl-devel sqlite-devel bzip2-devel
yum -y install aspell-devel gmp-devel libXpm-devel libcurl-devel libicu-devel libmcrypt-devel libpng-devel libxml2-devel mysql-devel re2c recode-devel lhttpd-devel libxslt-devel mhash-devel ImageMagick-devel

cd /tmp
wget -O php-7.1.10.tar.gz http://php.net/get/php-7.1.10.tar.gz/from/this/mirror
tar -xvzf ./php-7.1.10.tar.gz
cd php-7.1.10
cd ext
wget https://pecl.php.net/get/imagick-3.4.3.tgz
tar -xvzf ./imagick-3.4.3.tgz
mv imagick-3.4.3 imagick
cd ..
rm -f configure
./buildconf --force
./configure --prefix=/usr/local/php71 --with-config-file-path=/usr/local/php71/etc --with-config-file-scan-dir=/usr/local/php71/etc/conf.d --with-apxs2 --enable-bcmath --with-bz2 --with-curl --enable-cgi --enable-filter --enable-pcntl --with-gd --with-mhash --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --enable-mbstring --with-mcrypt --enable-json --enable-mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-pdo-sqlite --disable-phpdbg --disable-phpdbg-webhelper --enable-opcache --with-openssl --enable-simplexml --with-xsl --with-sqlite3 --enable-xmlreader --enable-xmlwriter --enable-zip --enable-soap --with-zlib --with-imagick --enable-intl --with-icu-dir=/usr/local
make
make install
mkdir /usr/local/php71/etc/conf.d
cp ./php.ini-production /usr/local/php71/etc/php.ini
echo 'zend_extension=opcache.so' > /usr/local/php71/etc/conf.d/opcache.ini
/usr/local/php71/bin/php -v

sed -i "s/short_open_tag = Off/short_open_tag = On/g" /usr/local/php71/etc/php.ini 
sed -i "s/expose_php = On/expose_php = Off/g" /usr/local/php71/etc/php.ini 
sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 20M/g" /usr/local/php71/etc/php.ini 
sed -i "s/post_max_size = 8M/post_max_size = 20M/g" /usr/local/php71/etc/php.ini 
sed -i "s/;date.timezone =/date.timezone = UTC/g" /usr/local/php71/etc/php.ini 
<commit_msg>add php-ldap<commit_after># Copyright © 2017 Feature.su. All rights reserved. 
# Licensed under the Apache License, Version 2.0  

# Warning: Install the databases and new icu-lib before you compile 

yum -y groupinstall "Development Tools"
yum -y install httpd-devel
yum -y install zlib-devel openssl-devel sqlite-devel bzip2-devel
yum -y install openldap-devel aspell-devel gmp-devel libXpm-devel libcurl-devel libicu-devel libmcrypt-devel libpng-devel libxml2-devel mysql-devel re2c recode-devel lhttpd-devel libxslt-devel mhash-devel ImageMagick-devel

cd /tmp
wget -O php-7.1.10.tar.gz http://php.net/get/php-7.1.10.tar.gz/from/this/mirror
tar -xvzf ./php-7.1.10.tar.gz
cd php-7.1.10
cd ext
wget https://pecl.php.net/get/imagick-3.4.3.tgz
tar -xvzf ./imagick-3.4.3.tgz
mv imagick-3.4.3 imagick
cd ..
rm -f configure
./buildconf --force
./configure --prefix=/usr/local/php71 --with-ldap --with-libdir=lib64 --with-config-file-path=/usr/local/php71/etc --with-config-file-scan-dir=/usr/local/php71/etc/conf.d --with-apxs2 --enable-bcmath --with-bz2 --with-curl --enable-cgi --enable-filter --enable-pcntl --with-gd --with-mhash --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --enable-mbstring --with-mcrypt --enable-json --enable-mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-pdo-sqlite --disable-phpdbg --disable-phpdbg-webhelper --enable-opcache --with-openssl --enable-simplexml --with-xsl --with-sqlite3 --enable-xmlreader --enable-xmlwriter --enable-zip --enable-soap --with-zlib --with-imagick --enable-intl --with-icu-dir=/usr/local
make
make install
mkdir /usr/local/php71/etc/conf.d
cp ./php.ini-production /usr/local/php71/etc/php.ini
echo 'zend_extension=opcache.so' > /usr/local/php71/etc/conf.d/opcache.ini
/usr/local/php71/bin/php -v

sed -i "s/short_open_tag = Off/short_open_tag = On/g" /usr/local/php71/etc/php.ini 
sed -i "s/expose_php = On/expose_php = Off/g" /usr/local/php71/etc/php.ini 
sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 20M/g" /usr/local/php71/etc/php.ini 
sed -i "s/post_max_size = 8M/post_max_size = 20M/g" /usr/local/php71/etc/php.ini 
sed -i "s/;date.timezone =/date.timezone = UTC/g" /usr/local/php71/etc/php.ini 

{'fraction_non_alphanumeric': 0.1664426523297491, 'fraction_numerical': 0.03046594982078853, 'mean_word_length': 3.2645654250238776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1354030', 'n_tokens_mistral': 1900, 'n_tokens_neox': 1751, 'n_words': 342}