<commit_before><?php
/**
 * Load the necessary libraries for the framework and the vendor
 * libraries.
 *
 * @package Advandz
 * @subpackage Advandz.lib
 * @copyright Copyright (c) 2012-2017 CyanDark, Inc. All Rights Reserved.
 * @license https://opensource.org/licenses/MIT The MIT License (MIT)
 * @author The Advandz Team <<EMAIL>>
 */

/**
 * Load the vendor classes managed by Composer
 */
include_once VENDORDIR . "autoload.php";
//spl_autoload_register(['Loader', 'autoload'], true, true);

/**
 * Load the libraries classes
 */
$libraries_classes = array_diff(scandir(LIBDIR), ['.', '..', 'autoload.php', 'init.php']);
foreach ($libraries_classes as $class) {
    include_once LIBDIR . $class;
}

/**
 * Load the helper classes
 */
$helper_classes = array_diff(scandir(HELPERDIR), ['.', '..']);
foreach ($helper_classes as $class) {
    include_once HELPERDIR . $class . DIRECTORY_SEPARATOR . $class . '.php';
}

/**
 * Load the components classes
 */
$components_classes = array_diff(scandir(COMPONENTDIR), ['.', '..']);
foreach ($components_classes as $class) {
    include_once COMPONENTDIR . $class . DIRECTORY_SEPARATOR . $class . '.php';
}<commit_msg>Autoloader Fix<commit_after><?php
/**
 * Load the necessary libraries for the framework and the vendor
 * libraries.
 *
 * @package Advandz
 * @subpackage Advandz.lib
 * @copyright Copyright (c) 2012-2017 CyanDark, Inc. All Rights Reserved.
 * @license https://opensource.org/licenses/MIT The MIT License (MIT)
 * @author The Advandz Team <<EMAIL>>
 */

/**
 * Load the vendor classes managed by Composer
 */
include_once VENDORDIR . "autoload.php";
spl_autoload_register(['Loader', 'autoload'], true, true);

/**
 * Load the libraries classes
 */
$libraries_classes = array_diff(scandir(LIBDIR), ['.', '..', 'autoload.php', 'init.php', 'loader.php']);
foreach ($libraries_classes as $class) {
    include_once LIBDIR . $class;
}

/**
 * Load the helper classes
 */
$helper_classes = array_diff(scandir(HELPERDIR), ['.', '..']);
foreach ($helper_classes as $class) {
    include_once HELPERDIR . $class . DIRECTORY_SEPARATOR . $class . '.php';
}

/**
 * Load the components classes
 */
$components_classes = array_diff(scandir(COMPONENTDIR), ['.', '..']);
foreach ($components_classes as $class) {
    include_once COMPONENTDIR . $class . DIRECTORY_SEPARATOR . $class . '.php';
}
{'fraction_non_alphanumeric': 0.16204690831556504, 'fraction_numerical': 0.006823027718550106, 'mean_word_length': 4.260089686098655, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '4392348', 'n_tokens_mistral': 779, 'n_tokens_neox': 757, 'n_words': 196}