<commit_before><?php
/**
 * web.php
 *
 * PHP version 5.3+
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2010-2014 Ibitux
 * @license   http://www.ibitux.com/license license
 * @version   XXX
 * @link      https://code.ibitux.net/projects/sweelix-yii2-nosql
 * @category  tests
 * @package   sweelix.yii2.nosql.tests
 */

$config = array(
	'components' => array(
		'riak' => array(
			'class' => 'sweelix\yii2\nosql\Connection',
			'dsn' => 'riak:dsn=http://192.168.1.123:8098',
		),
		'riakcs' => array(
			'class' => 'sweelix\yii2\nosql\riakcs\Connection',
			'proxy' => '192.168.1.123:8080',
			'accessKey' => '<KEY>',
			'secretKey' => '<KEY>',
			'useSsl' => false,
			'useExceptions' => false,
		),
		'log' => array(
			'traceLevel' => YII_DEBUG ? 3 : 0,
			'targets' => array(
				array(
					'class' => 'yii\log\FileTarget',
					'levels' => array('error', 'warning', 'trace', 'info'),
				),
			),
		),
	),
);

return $config;<commit_msg>adding riakcsError component to test connection failures<commit_after><?php
/**
 * web.php
 *
 * PHP version 5.3+
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2010-2014 Ibitux
 * @license   http://www.ibitux.com/license license
 * @version   XXX
 * @link      https://code.ibitux.net/projects/sweelix-yii2-nosql
 * @category  tests
 * @package   sweelix.yii2.nosql.tests
 */

$config = array(
	'components' => array(
		'riak' => array(
			'class' => 'sweelix\yii2\nosql\Connection',
			'dsn' => 'riak:dsn=http://192.168.1.123:8098',
		),
		'riakcs' => array(
				'class' => 'sweelix\yii2\nosql\riakcs\Connection',
			'proxy' => '192.168.1.123:8080',
			'accessKey' => '<KEY>',
			'secretKey' => '<KEY>',
			'useSsl' => false,
			'useExceptions' => false,
		),
		'riakcsError' => array(
			'class' => 'sweelix\yii2\nosql\riakcs\Connection',
			'proxy' => 'testForFail', //Will fail to connect
			'accessKey' => '<KEY>',
			'secretKey' => '<KEY>',
			'useSsl' => false,
			'useExceptions' => false,	
		),
		'log' => array(
			'traceLevel' => YII_DEBUG ? 3 : 0,
			'targets' => array(
				array(
					'class' => 'yii\log\FileTarget',
					'levels' => array('error', 'warning', 'trace', 'info'),
				),
			),
		),
	),
);

return $config;
{'fraction_non_alphanumeric': 0.21830663615560641, 'fraction_numerical': 0.040732265446224256, 'mean_word_length': 3.1167608286252353, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 54, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, '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': '5480253', 'n_tokens_mistral': 1035, 'n_tokens_neox': 880, 'n_words': 151}