<commit_before><?php declare(strict_types=1);

/**
 * This allows to load "vendor/autoload.php" both from
 * "composer create-project ..." and "composer require" installation.
 */
$possibleAutoloadPaths = [
    __DIR__ . '/../vendor/autoload.php', // composer require ... | repository
    __DIR__ . '/../../../vendor/autoload.php', // composer create-project
];

foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
    if (is_file($possibleAutoloadPath)) {
        require_once $possibleAutoloadPath;

        break;
    }
}
<commit_msg>fix bootstrap autoloading<commit_after><?php declare(strict_types=1);

/**
 * This allows to load "vendor/autoload.php" both from
 * "composer create-project ..." and "composer require" installation.
 */
$possibleAutoloadPaths = [
    __DIR__ . '/../vendor/autoload.php', // repository
    __DIR__ . '/../vendor/autoload.php', // composer create-project
    __DIR__ . '/../../../../vendor/autoload.php', // composer require
];

foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
    if (is_file($possibleAutoloadPath)) {
        require_once $possibleAutoloadPath;

        break;
    }
}

{'fraction_non_alphanumeric': 0.15835520559930008, 'fraction_numerical': 0.0017497812773403325, 'mean_word_length': 3.2058823529411766, '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': '4976752', 'n_tokens_mistral': 358, 'n_tokens_neox': 354, 'n_words': 72}