<commit_before>#!/bin/bash
# -----------------------------------------------------------------------------
# -- PHP
# -----------------------------------------------------------------------------

install_php56()
{
	echo "Adding Latest Repositories - PHP"
	add-apt-repository ppa:ondrej/php5-5.6
	apt-get update

	apt-get -y -V install php5
	apt-get -y -V install php5-dev
	apt-get -y -V install php5-cli php-pear php5-apcu php5-curl php5-memcache php5-memcached php-gettext php5-gd php5-ldap php5-imagick php5-mcrypt php5-mysqlnd phpunit php5-xdebug

	pear channel-update
}

install_drush()
{
	pear channel-discover pear.drush.org
	pear install drush/drush
	pear upgrade drush/drush
}

CMDA=$(php -v 2>&1)
if [[ $CMDA != *"PHP 5.6"* ]]
then
	install_php56
	install_drush
fi<commit_msg>Changed drush provider<commit_after>#!/bin/bash
# -----------------------------------------------------------------------------
# -- PHP
# -----------------------------------------------------------------------------

install_php56()
{
  echo "Adding Latest Repositories - PHP"
  add-apt-repository ppa:ondrej/php5-5.6
  apt-get update

  apt-get -y -V install php5
  apt-get -y -V install php5-dev
  apt-get -y -V install php5-cli php-pear php5-apcu php5-curl php5-memcache php5-memcached php-gettext php5-gd php5-ldap php5-imagick php5-mcrypt php5-mysqlnd phpunit php5-xdebug

  pear channel-update
}

install_drush()
{
  wget http://files.drush.org/drush.phar
  php drush.phar core-status
  chmod +x drush.phar
  mv drush.phar /usr/local/bin/drush
}

CMDA=$(php -v 2>&1)
if [[ $CMDA != *"PHP 5.6"* ]]
then
  install_php56
  install_drush
fi
{'fraction_non_alphanumeric': 0.29158993247391035, 'fraction_numerical': 0.029465930018416207, 'mean_word_length': 1.6897689768976898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2679580', 'n_tokens_mistral': 614, 'n_tokens_neox': 560, 'n_words': 129}