<commit_before><?php
/**
 * Humbug
 *
 * @category   Humbug
 * @package    Humbug
 * @copyright  Copyright (c) 2015 <NAME> (http://blog.astrumfutura.com)
 * @license    https://github.com/padraic/humbug/blob/master/LICENSE New BSD License
 */

foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
    if (file_exists($file)) {
        define('HUMBUG_COMPOSER_INSTALL', $file);
        break;
    }
}
unset($file);
if (!defined('HUMBUG_COMPOSER_INSTALL')) {
    fwrite(STDERR, 'You need to run "composer.phar install" to install Humbug.' . PHP_EOL);
    exit(1);
}
require_once HUMBUG_COMPOSER_INSTALL;<commit_msg>Add check for xdebug ext when not running on hhvm; closes #75<commit_after><?php
/**
 * Humbug
 *
 * @category   Humbug
 * @package    Humbug
 * @copyright  Copyright (c) 2015 <NAME> (http://blog.astrumfutura.com)
 * @license    https://github.com/padraic/humbug/blob/master/LICENSE New BSD License
 */

foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
    if (file_exists($file)) {
        define('HUMBUG_COMPOSER_INSTALL', $file);
        break;
    }
}
unset($file);
if (!defined('HUMBUG_COMPOSER_INSTALL')) {
    fwrite(STDERR, 'You need to run "composer.phar install" to install Humbug.' . PHP_EOL);
    exit(1);
}
if (!defined('HHVM_VERSION') && !extension_loaded('xdebug')) {
    fwrite(STDERR, 'You need to install and enable xdebug in order to allow for code coverage generation.' . PHP_EOL);
    exit(1);
}
require_once HUMBUG_COMPOSER_INSTALL;
{'fraction_non_alphanumeric': 0.16697473813924832, 'fraction_numerical': 0.008009858287122612, 'mean_word_length': 3.574647887323944, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6391669', 'n_tokens_mistral': 602, 'n_tokens_neox': 581, 'n_words': 127}