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

DIR=$(readlink -enq $(dirname $0))

sudo apt-get -qq update &

# Enable custom APC
if [ "$(php -r 'echo PHP_VERSION_ID;')" -ge 50500 ]; then
    ( pecl install apcu < /dev/null || ( pecl config-set preferred_state beta; pecl install apcu < /dev/null ) && phpenv config-add "$DIR/z-apcu.ini" ) &
else
    ( CFLAGS="-O2 -g3 -fno-strict-aliasing" pecl upgrade apc < /dev/null; phpenv config-add "$DIR/z-apc.ini" ) &
fi

# Enable igbinary
pecl install igbinary < /dev/null

# Enable extensions
phpenv config-add "$DIR/z-travis.ini"
<commit_msg>Fix travis build error for PHP 5.4<commit_after>#!/usr/bin/env bash

DIR=$(readlink -enq $(dirname $0))
PHP_VERSION=$(php -r 'echo PHP_VERSION_ID;')

sudo apt-get -qq update &

# Enable custom APC
if [ $PHP_VERSION -ge 50500 ]; then
    ( pecl install apcu < /dev/null || ( pecl config-set preferred_state beta; pecl install apcu < /dev/null ) && phpenv config-add "$DIR/z-apcu.ini" ) &
else
    ( CFLAGS="-O2 -g3 -fno-strict-aliasing" pecl upgrade apc < /dev/null; phpenv config-add "$DIR/z-apc.ini" ) &
fi

# Enable igbinary for PHP version less than 5.4 and greater than 5.5
if [ $PHP_VERSION -lt 50400 ] || [ $PHP_VERSION -ge 50500 ] ; then
    ( pecl install igbinary < /dev/null ) &
fi

# Enable extensions
phpenv config-add "$DIR/z-travis.ini"

{'fraction_non_alphanumeric': 0.15146948003014318, 'fraction_numerical': 0.024114544084400905, 'mean_word_length': 3.4713804713804715, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, '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': '3079046', 'n_tokens_mistral': 524, 'n_tokens_neox': 497, 'n_words': 144}