<commit_before>#!/bin/sh

echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini<commit_msg>Revert to 9a216ae3bb3a29ebd28ce8299897c72e74a75473<commit_after>#!/bin/sh

install_memcache() {
    if [ "$(expr "$TRAVIS_PHP_VERSION" "<" "5.5")" -eq 1 ]; then
        echo 'y' | pecl install memcache
    else
        MEMCACHE_VERSION="2.2.7"
        wget "http://pecl.php.net/get/memcache-$MEMCACHE_VERSION.tgz" &&
        tar -zxf "memcache-$MEMCACHE_VERSION.tgz" &&
        sh -c "cd memcache-$MEMCACHE_VERSION && phpize && ./configure --enable-memcache && make && sudo make install" &&
        echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s/.*:\s*//"`
    fi

    return $?
}

install_memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log )

{'fraction_non_alphanumeric': 0.17933491686460806, 'fraction_numerical': 0.03800475059382423, 'mean_word_length': 3.236180904522613, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, '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': '7367145', 'n_tokens_mistral': 337, 'n_tokens_neox': 308, 'n_words': 58}