<commit_before><?php

require_once __DIR__ . '/helpers.php';

spl_autoload_register(function ($className) {
    $relativeClassName = array_slice(explode('\\', $className), 2);
    $file = __DIR__ . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $relativeClassName) . '.php';
    if (file_exists($file)) {
        require $file;
        return true;
    }
    return false;
});<commit_msg>fix(autoloader): check for Roots\Soil namespace<commit_after><?php

namespace Roots\Soil;

require_once __DIR__ . '/helpers.php';

spl_autoload_register(function ($className) {
    if (strpos($className, __NAMESPACE__) !== 0) {
        return;
    }
    $relativeClassName = array_slice(explode('\\', $className), 2);
    $file = __DIR__ . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $relativeClassName) . '.php';
    if (file_exists($file)) {
        require_once $file;
    }
});
{'fraction_non_alphanumeric': 0.14772727272727273, 'fraction_numerical': 0.003409090909090909, 'mean_word_length': 3.949438202247191, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7510499', 'n_tokens_mistral': 293, 'n_tokens_neox': 292, 'n_words': 55}