<commit_before><?php
// if we are checked out as a stand-alone project
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
    $loader = __DIR__ . '/../vendor/autoload.php';
}
 
// if we are within the vendor directory of another project
if (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
    $loader = __DIR__ . '/../../../../vendor/autoload.php';
}
 
if (!$loader = @include($loader)) {
    echo <<<EOM
You must set up the project dependencies by running the following commands:
 
    curl -s http://getcomposer.org/installer | php
    php composer.phar install
 
EOM;
 
    exit(1);
}<commit_msg>PHPunit configuration: use local vendor dir first<commit_after><?php
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
    // if we are checked out as a stand-alone project
    $loader = __DIR__ . '/../vendor/autoload.php';
} else if (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
    // if we are within the vendor directory of another project
    $loader = __DIR__ . '/../../../../vendor/autoload.php';
}
 
if (!isset($loader) || !$loader = @include($loader)) {
    echo <<<EOM
You must set up the project dependencies by running the following commands:
 
    curl -s http://getcomposer.org/installer | php
    php composer.phar install
 
EOM;
 
    exit(1);
}
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.0015384615384615385, 'mean_word_length': 2.7819767441860463, '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': '5294923', 'n_tokens_mistral': 418, 'n_tokens_neox': 402, 'n_words': 124}