<commit_before><?php
/**
 * @author <NAME>
 */

namespace greeny\MailLibrary\Extensions;

use Nette\DI\CompilerExtension;

class MailLibraryExtension extends CompilerExtension {
	public function loadConfiguration()
	{
		$config = $this->getConfig(array(
			'username' => '',
			'password' => '',
			'host' => 'localhost',
			'port' => 993,
			'ssl' => 'true',
		));

		$config = $config['imap'];

		$builder = $this->getContainerBuilder();

		$builder->addDefinition($this->prefix('connection'))
			->setClass('greeny\\MailLibrary\\Connection');

		$builder->addDefinition($this->prefix('imap'))
			->setClass('greeny\\MailLibrary\\Drivers\\ImapDriver', array(
				$config['username'],
				$config['password'],
				$config['host'],
				$config['port'],
				$config['ssl'],
			));
	}
}
 <commit_msg>Fixed extension for Nette (second fix, i am a bit tired)<commit_after><?php
/**
 * @author <NAME>
 */

namespace greeny\MailLibrary\Extensions;

use Nette\DI\CompilerExtension;

class MailLibraryExtension extends CompilerExtension {
	public function loadConfiguration()
	{
		$config = $this->getConfig(array(
			'imap' => array(
				'username' => '',
				'password' => '',
				'host' => 'localhost',
				'port' => 993,
				'ssl' => 'true',
			),
		));

		$config = $config['imap'];

		$builder = $this->getContainerBuilder();

		$builder->addDefinition($this->prefix('connection'))
			->setClass('greeny\\MailLibrary\\Connection');

		$builder->addDefinition($this->prefix('imap'))
			->setClass('greeny\\MailLibrary\\Drivers\\ImapDriver', array(
				$config['username'],
				$config['password'],
				$config['host'],
				$config['port'],
				$config['ssl'],
			));
	}
}
 
{'fraction_non_alphanumeric': 0.20479041916167665, 'fraction_numerical': 0.003592814371257485, 'mean_word_length': 4.125766871165644, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 32, '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': '5620763', 'n_tokens_mistral': 627, 'n_tokens_neox': 529, 'n_words': 88}