<commit_before><?php

namespace Phpsx\Dependency;

use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\DriverManager;
use PSX\Data\writer;
use PSX\Dependency\DefaultContainer;
use Phpsx\Website\Console;
use Symfony\Component\Console\Application;

class Container extends DefaultContainer
{
	/**
	 * @return Doctrine\DBAL\Connection
	 */
	public function getConnection()
	{
		$config = new Configuration();
		$params = array(
			'path'   => PSX_PATH_CACHE . '/blog.db',
			'driver' => 'pdo_sqlite',
		);

		return DriverManager::getConnection($params, $config);
	}

	public function getWriterFactory()
	{
		$writer = parent::getWriterFactory();
		$writer->addWriter(new Writer\Text($this->get('template'), $this->get('reverse_router')), 39);

		return $writer;
	}

	protected function appendConsoleCommands(Application $application)
	{
		parent::appendConsoleCommands($application);

		$application->add(new Console\CreateSchemaCommand($this->get('connection')));
		$application->add(new Console\FetchReleaseCommand($this->get('table_manager'), $this->get('http'), $this->get('config')));
		$application->add(new Console\ShowReleaseCommand($this->get('table_manager')));
		$application->add(new Console\UpdateBlogCommand($this->get('table_manager'), $this->get('importer'), $this->get('config')->get('blog_file')));
		$application->add(new Console\ShowBlogCommand($this->get('table_manager')));
	}
}
<commit_msg>fix case typo<commit_after><?php

namespace Phpsx\Dependency;

use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\DriverManager;
use PSX\Data\Writer;
use PSX\Dependency\DefaultContainer;
use Phpsx\Website\Console;
use Symfony\Component\Console\Application;

class Container extends DefaultContainer
{
	/**
	 * @return Doctrine\DBAL\Connection
	 */
	public function getConnection()
	{
		$config = new Configuration();
		$params = array(
			'path'   => PSX_PATH_CACHE . '/blog.db',
			'driver' => 'pdo_sqlite',
		);

		return DriverManager::getConnection($params, $config);
	}

	public function getWriterFactory()
	{
		$writer = parent::getWriterFactory();
		$writer->addWriter(new Writer\Text($this->get('template'), $this->get('reverse_router')), 39);

		return $writer;
	}

	protected function appendConsoleCommands(Application $application)
	{
		parent::appendConsoleCommands($application);

		$application->add(new Console\CreateSchemaCommand($this->get('connection')));
		$application->add(new Console\FetchReleaseCommand($this->get('table_manager'), $this->get('http'), $this->get('config')));
		$application->add(new Console\ShowReleaseCommand($this->get('table_manager')));
		$application->add(new Console\UpdateBlogCommand($this->get('table_manager'), $this->get('importer'), $this->get('config')->get('blog_file')));
		$application->add(new Console\ShowBlogCommand($this->get('table_manager')));
	}
}

{'fraction_non_alphanumeric': 0.1723404255319149, 'fraction_numerical': 0.0014184397163120568, 'mean_word_length': 6.522666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '801480', 'n_tokens_mistral': 908, 'n_tokens_neox': 855, 'n_words': 136}