<commit_before><?php
/**
 * Created by PhpStorm.
 * User: janhuang
 * Date: 15/4/13
 * Time: 上午11:58
 * Github: https://www.github.com/janhuang 
 * Coding: https://www.coding.net/janhuang
 * SegmentFault: http://segmentfault.com/u/janhuang
 * Blog: http://segmentfault.com/blog/janhuang
 * Gmail: <EMAIL>
 */

namespace Dobee\Storage\Redis;

use Dobee\Storage\StorageInterface;

class Redis extends \Redis implements StorageInterface
{
    public function __construct(array $config = array())
    {
        $this->connect(
            isset($config['host']) ? $config['host'] : '127.0.0.1',
            isset($config['port']) ? $config['port'] : 6379,
            isset($config['timeout']) ? $config['timeout'] : 5
        );
    }
}<commit_msg>fix redis<commit_after><?php
/**
 * Created by PhpStorm.
 * User: janhuang
 * Date: 15/4/13
 * Time: 上午11:58
 * Github: https://www.github.com/janhuang 
 * Coding: https://www.coding.net/janhuang
 * SegmentFault: http://segmentfault.com/u/janhuang
 * Blog: http://segmentfault.com/blog/janhuang
 * Gmail: <EMAIL>
 */

namespace Dobee\Storage\Redis;

use Dobee\Storage\StorageInterface;

/**
 * Class Redis
 *
 * @package Dobee\Storage\Redis
 */
class Redis extends \Redis implements StorageInterface
{
    /**
     * @param array $config
     */
    public function __construct(array $config = array())
    {
        $this->connect(
            isset($config['host']) ? $config['host'] : '127.0.0.1',
            isset($config['port']) ? $config['port'] : 6379,
            isset($config['timeout']) ? $config['timeout'] : 5
        );
    }
}
{'fraction_non_alphanumeric': 0.17443324937027707, 'fraction_numerical': 0.02518891687657431, 'mean_word_length': 2.982456140350877, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 2, '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': '5505149', 'n_tokens_mistral': 567, 'n_tokens_neox': 539, 'n_words': 98}