<commit_before><?php

namespace Bolt;

use Bolt\Exception\LowlevelException;
use Bolt\Helpers\String;
use Bolt\Library as Lib;
use Bolt\Provider\LoggerServiceProvider;
use Bolt\Provider\PathServiceProvider;
use Cocur\Slugify\Bridge\Silex\SlugifyServiceProvider;
use Doctrine\DBAL\Exception\ConnectionException as DBALConnectionException;
use RandomLib;
use SecurityLib;
use Silex;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Stopwatch;
use Whoops\Handler\JsonResponseHandler;
use Whoops\Provider\Silex\WhoopsServiceProvider;

class Application extends Silex\Application
{
    /**
     * The default locale, used as fallback.
     */
    const DEFAULT_LOCALE = 'en_GB';

    public function __construct(array $values = array())
    {
        $values['bolt_version'] = '2.1.0';
        $values['bolt_name'] = 'RC2';
        $values['bolt_released'] = false; // True for stable releases

        parent::__construct($values);

        $this->register(new PathServiceProvider());

        // Initialize the config. Note that we do this here, on 'construct'.
        // All other initialisation is triggered from bootstrap.php
        // Warning!
        // One of a valid ResourceManager ['resources'] or ClassLoader ['classloader']
        // must be defined for working properly
        if (!isset($this['resources'])) {
            $this['resources'] = new Configuration\ResourceManager($this);
            $this['resources']->compat();
        } else {
            $this['classloader'] = $this['resources']->getClassLoader();
        }

        $this['resources']->setApp($this);
        $this->initConfig();
        $this->initSession();
        $this['resources']->initialize();

        $this['debug'] = $this['config']->get('general/debug', false);
        $this['debugbar'] = false;

        // Initialize the 'editlink' and 'edittitle'.<commit_msg>Bumping version to "2.1.0 RC3"<commit_after><?php

namespace Bolt;

use Bolt\Exception\LowlevelException;
use Bolt\Helpers\String;
use Bolt\Library as Lib;
use Bolt\Provider\LoggerServiceProvider;
use Bolt\Provider\PathServiceProvider;
use Cocur\Slugify\Bridge\Silex\SlugifyServiceProvider;
use Doctrine\DBAL\Exception\ConnectionException as DBALConnectionException;
use RandomLib;
use SecurityLib;
use Silex;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Stopwatch;
use Whoops\Handler\JsonResponseHandler;
use Whoops\Provider\Silex\WhoopsServiceProvider;

class Application extends Silex\Application
{
    /**
     * The default locale, used as fallback.
     */
    const DEFAULT_LOCALE = 'en_GB';

    public function __construct(array $values = array())
    {
        $values['bolt_version'] = '2.1.0';
        $values['bolt_name'] = 'RC3';
        $values['bolt_released'] = false; // True for stable releases

        parent::__construct($values);

        $this->register(new PathServiceProvider());

        // Initialize the config. Note that we do this here, on 'construct'.
        // All other initialisation is triggered from bootstrap.php
        // Warning!
        // One of a valid ResourceManager ['resources'] or ClassLoader ['classloader']
        // must be defined for working properly
        if (!isset($this['resources'])) {
            $this['resources'] = new Configuration\ResourceManager($this);
            $this['resources']->compat();
        } else {
            $this['classloader'] = $this['resources']->getClassLoader();
        }

        $this['resources']->setApp($this);
        $this->initConfig();
        $this->initSession();
        $this['resources']->initialize();

        $this['debug'] = $this['config']->get('general/debug', false);
        $this['debugbar'] = false;

        // Initialize the 'editlink' and 'edittitle'.
{'fraction_non_alphanumeric': 0.13256339442631182, 'fraction_numerical': 0.003012804418779814, 'mean_word_length': 3.392502756339581, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '5679916', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1098, 'n_words': 257}