<commit_before><?php

namespace point\core;

/**
 * Class Bootstrap
 *
 * @author sj
 */
class Bootstrap
{
    /**
     * @var \point\core\Framework
     */
    private $_framework;

    public function __construct($config = null)
    {
        $context = new Context($config);
        $context->addConfiguration(
            array(
                array(
                    Bean::CLASS_NAME => '\point\core\Framework',
                    Bean::CONSTRUCTOR_ARG => array($config)
                )
            )
        );
        $this->_framework = $context->getBeanByClassName('point\core\Framework');

        $this->getFramework()->prepare()->launch()->destroy();
    }

    /**
     * @return \point\core\Framework
     */
    public function getFramework()
    {
        return $this->_framework;
    }
}<commit_msg>catch exception and echo to stdout<commit_after><?php

namespace point\core;

/**
 * Class Bootstrap
 *
 * @author sj
 */
class Bootstrap
{
    /**
     * @var \point\core\Framework
     */
    private $_framework;

    public function __construct($config = null)
    {
        $context = new Context($config);
        $context->addConfiguration(
            array(
                array(
                    Bean::CLASS_NAME => '\point\core\Framework',
                    Bean::CONSTRUCTOR_ARG => array($config)
                )
            )
        );
        $this->_framework = $context->getBeanByClassName('point\core\Framework');

        try {
            $this->getFramework()->prepare()->launch()->destroy();
        } catch (\Exception $exception) {
            echo $exception;
            exit(1);
        }
    }

    /**
     * @return \point\core\Framework
     */
    public function getFramework()
    {
        return $this->_framework;
    }
}
{'fraction_non_alphanumeric': 0.1403018446059251, 'fraction_numerical': 0.0005589714924538849, 'mean_word_length': 1.70392749244713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '3346693', 'n_tokens_mistral': 492, 'n_tokens_neox': 468, 'n_words': 86}