<commit_before><?php
/**
 * FACTFinder_Core
 *
 * @category Mage
 * @package FACTFinder_Core
 * @author Flagbit Magento Team <<EMAIL>>
 * @copyright Copyright (c) 2015 Flagbit GmbH & Co. KG
 * @license http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @link http://www.flagbit.de
 *
 */

/**
 * This class adds autoloading support for namespaces which are used by
 * the new library.
 *
 * Class FACTFinder_Core_Model_Autoloader
 *
 * @category Mage
 * @package FACTFinder_Core
 * @author Flagbit Magento Team <<EMAIL>>
 * @copyright Copyright (c) 2015 Flagbit GmbH & Co. KG (http://www.flagbit.de)
 * @license http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @link http://www.flagbit.de
 */
class FACTFinder_Core_Model_Autoloader
{

    /**
     * @var bool
     */
    protected static $registered = false;


    /**
     * Add autoloader class
     *
     * @param \Varien_Event_Observer $observer
     *
     * @return void
     */
    public function addAutoloader(Varien_Event_Observer $observer)
    {
        if (self::$registered) {
            return;
        }

        spl_autoload_register(array($this, 'autoload'), false, true);
        self::$registered = true;
    }


    /**
     * Autoload method
     *
     * @param string $class
     *
     * @return void
     */
    public function autoload($class)
    {
        $classFile = str_replace('\\', '/', $class) . '.php';

        if (strpos($classFile, '/') !== false) {
            include $classFile;
        }
    }


}<commit_msg>Error handling to prevent Notice<commit_after><?php
/**
 * FACTFinder_Core
 *
 * @category Mage
 * @package FACTFinder_Core
 * @author Flagbit Magento Team <<EMAIL>>
 * @copyright Copyright (c) 2015 Flagbit GmbH & Co. KG
 * @license http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @link http://www.flagbit.de
 *
 */

/**
 * This class adds autoloading support for namespaces which are used by
 * the new library.
 *
 * Class FACTFinder_Core_Model_Autoloader
 *
 * @category Mage
 * @package FACTFinder_Core
 * @author Flagbit Magento Team <<EMAIL>>
 * @copyright Copyright (c) 2015 Flagbit GmbH & Co. KG (http://www.flagbit.de)
 * @license http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @link http://www.flagbit.de
 */
class FACTFinder_Core_Model_Autoloader
{

    /**
     * @var bool
     */
    protected static $registered = false;


    /**
     * Add autoloader class
     *
     * @param \Varien_Event_Observer $observer
     *
     * @return void
     */
    public function addAutoloader(Varien_Event_Observer $observer)
    {
        if (self::$registered) {
            return;
        }

        spl_autoload_register(array($this, 'autoload'), false, true);
        self::$registered = true;
    }


    /**
     * Autoload method
     *
     * @param string $class
     *
     * @return void
     */
    public function autoload($class)
    {
        $classFile = str_replace('\\', '/', $class) . '.php';

        if (strpos($classFile, '/') !== false) {
            if (file_exists(stream_resolve_include_path($classFile))) {
                include $classFile;
            }
        }
    }


}

{'fraction_non_alphanumeric': 0.13442521631644005, 'fraction_numerical': 0.009888751545117428, 'mean_word_length': 2.4363057324840764, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5323377', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1055, 'n_words': 244}