<commit_before><?php
/**
 * Koowa Framework - http://developer.joomlatools.com/koowa
 *
 * @copyright	Copyright (C) 2007 - 2014 <NAME> and Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://github.com/joomlatools/koowa for the canonical source repository
 */

/**
 * Abstract Object Bootstrapper
 *
 * @author  <NAME> <https://github.com/johanjanssens>
 * @package Koowa\Library\Bootstrapper
 */
abstract class KObjectBootstrapperAbstract extends KObject implements KObjectBootstrapperInterface
{
    /**
     * The bootstrapper priority
     *
     * @var integer
     */
    protected $_priority;

    /**
     * The object manager
     *
     * @var KObjectManagerInterface
     */
    protected $_object_manager;

    /**
     * Constructor.
     *
     * @param KObjectConfig $config An optional ObjectConfig object with configuration options
     */
    public function __construct(KObjectConfig $config)
    {
        parent::__construct($config);

        $this->_priority       = $config->priority;
        $this->_object_manager = $config->object_manager;
    }

    /**
     * Initializes the options for the object
     *
     * Called from {@link __construct()} as a first step of object instantiation.
     *
     * @param  KObjectConfig $config An optional ObjectConfig object with configuration options
     * @return void
     */
    protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'priority'       => self::PRIORITY_NORMAL,
            'object_manager' => null,
        ));

        parent::_initialize($config);
    }

    /**
     * Get the object manager
     *
     * @return KObjectManagerInterface
     */
    public function getObjectManager()
    {
        return $this->_object_manager;
    }

    /**
     * Get the class loader
     *
     * @return KClassLoaderInterface
     */
    public function getClassLoader()
    {
        return $this->getObjectManager()->getClassLoader();
    }

    /**
     * Get the priority of the bootstrapper
     *
     * @return  integer The priority level
     */
    public function getPriority()
    {
        return $this->_priority;
    }
}<commit_msg>re #91 : Remove KObjectBootstrapperAbstract::getClassLoader().<commit_after><?php
/**
 * Koowa Framework - http://developer.joomlatools.com/koowa
 *
 * @copyright	Copyright (C) 2007 - 2014 <NAME> and Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://github.com/joomlatools/koowa for the canonical source repository
 */

/**
 * Abstract Object Bootstrapper
 *
 * @author  <NAME> <https://github.com/johanjanssens>
 * @package Koowa\Library\Bootstrapper
 */
abstract class KObjectBootstrapperAbstract extends KObject implements KObjectBootstrapperInterface
{
    /**
     * The object manager
     *
     * @var KObjectManagerInterface
     */
    private $__object_manager;

    /**
     * The bootstrapper priority
     *
     * @var integer
     */
    protected $_priority;

    /**
     * Constructor.
     *
     * @param KObjectConfig $config An optional ObjectConfig object with configuration options
     */
    public function __construct(KObjectConfig $config)
    {
        parent::__construct($config);

        $this->__object_manager = $config->object_manager;
        $this->_priority        = $config->priority;
    }

    /**
     * Initializes the options for the object
     *
     * Called from {@link __construct()} as a first step of object instantiation.
     *
     * @param  KObjectConfig $config An optional ObjectConfig object with configuration options
     * @return void
     */
    protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'priority'    => self::PRIORITY_NORMAL,
        ));

        parent::_initialize($config);
    }

    /**
     * Get the object manager
     *
     * @return KObjectManagerInterface
     */
    public function getObjectManager()
    {
        return $this->__object_manager;
    }

    /**
     * Get the priority of the bootstrapper
     *
     * @return  integer The priority level
     */
    public function getPriority()
    {
        return $this->_priority;
    }
}
{'fraction_non_alphanumeric': 0.10968793665579879, 'fraction_numerical': 0.004657661853749418, 'mean_word_length': 2.44150641025641, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 30, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '2403318', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1200, 'n_words': 292}