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

# disable selinux for current boot
setenforce 0
# disable selinux permanently
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

yum install -q -y epel-release
# Enable installation after epel is installed
yum -q -y install lynx ntp vim-enhanced wget unzip git nginx mosquitto

# Enable services
systemctl enable ntpd
systemctl start ntpd
systemctl enable firewalld
systemctl start firewalld

# Set the correct time
ntpdate -u pool.ntp.org

PHP_VERSION="71"
# PHP 7.1.x install:
yum install -q -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -q -y \
  php${PHP_VERSION}-php \
  php${PHP_VERSION}-php-fpm \
  php${PHP_VERSION}-php-mysqlnd \
  php${PHP_VERSION}-php-intl \
  php${PHP_VERSION}-php-opcache \
  php${PHP_VERSION}-php-gd \
  php${PHP_VERSION}-php-mbstring \
  php${PHP_VERSION}-php-pecl-memcache \
  php${PHP_VERSION}-php-imap \
  php${PHP_VERSION}-php-bcmath \
  php${PHP_VERSION}-php-xml \
  php${PHP_VERSION}-php-process \
  php${PHP_VERSION}-php-pecl-xdebug \
  php${PHP_VERSION}-php-pecl-zip \
  php${PHP_VERSION}-php-dbg
ln -s /usr/bin/php${PHP_VERSION} /usr/bin/php<commit_msg>Upgrade development environment to PHP 7.2.*<commit_after>#!/usr/bin/env bash

# disable selinux for current boot
setenforce 0
# disable selinux permanently
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

yum install -q -y epel-release
# Enable installation after epel is installed
yum -q -y install lynx ntp vim-enhanced wget unzip git nginx mosquitto

# Enable services
systemctl enable ntpd
systemctl start ntpd
systemctl enable firewalld
systemctl start firewalld

# Set the correct time
ntpdate -u pool.ntp.org

PHP_VERSION="72"
# PHP 7.2.x install:
yum install -q -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -q -y \
  php${PHP_VERSION}-php \
  php${PHP_VERSION}-php-fpm \
  php${PHP_VERSION}-php-mysqlnd \
  php${PHP_VERSION}-php-intl \
  php${PHP_VERSION}-php-opcache \
  php${PHP_VERSION}-php-gd \
  php${PHP_VERSION}-php-mbstring \
  php${PHP_VERSION}-php-pecl-memcache \
  php${PHP_VERSION}-php-imap \
  php${PHP_VERSION}-php-bcmath \
  php${PHP_VERSION}-php-xml \
  php${PHP_VERSION}-php-process \
  php${PHP_VERSION}-php-pecl-xdebug \
  php${PHP_VERSION}-php-pecl-zip \
  php${PHP_VERSION}-php-dbg
ln -s /usr/bin/php${PHP_VERSION} /usr/bin/php
{'fraction_non_alphanumeric': 0.1342094782954998, 'fraction_numerical': 0.005575467941059339, 'mean_word_length': 4.024, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4645269', 'n_tokens_mistral': 1001, 'n_tokens_neox': 937, 'n_words': 196}