<commit_before><?php

namespace Mpociot\BotMan\Cache;

use Mpociot\BotMan\Interfaces\CacheInterface;

class CodeigniterCache implements CacheInterface {
	/**
	 * @var array
	 */
	private $cache;

	/**
	 * @param Cache $driver
	 */
	public function __construct($driver) {
		$this->cache = $driver;
	}

	/**
	 * Determine if an item exists in the cache.
	 *
	 * @param  string $key
	 * @return bool
	 */
	public function has($key) {
		return $this->cache->get($key);
	}

	/**
	 * Retrieve an item from the cache by key.
	 *
	 * @param  string  $key
	 * @param  mixed   $default
	 * @return mixed
	 */
	public function get($key, $default = null) {
		if ($this->cache->get($key)) {
			return $this->cache->get($key);
		}

		return $default;
	}

	/**
	 * Retrieve an item from the cache and delete it.
	 *
	 * @param  string $key
	 * @param  mixed $default
	 * @return mixed
	 */
	public function pull($key, $default = null) {
		if ($this->cache->get($key)) {
			$cached = $this->cache->get($key);
			$this->cache->delete($key);
			return $cached;
		}

		return $default;
	}

	/**
	 * Store an item in the cache.
	 *
	 * @param  string $key
	 * @param  mixed $value
	 * @param  \DateTime|int $minutes
	 * @return void
	 */
	public function put($key, $value, $minutes) {
		$this->cache->save($key, $value, $minutes);
	}
}<commit_msg>fix style again<commit_after><?php

namespace Mpociot\BotMan\Cache;

use Mpociot\BotMan\Interfaces\CacheInterface;

class CodeigniterCache implements CacheInterface
{
    /**
     * @var array
     */
    private $cache;
    
    /**
     * @param Cache $driver
     */
    public function __construct($driver)
    {
        $this->cache = $driver;
    }

    /**
     * Determine if an item exists in the cache.
     *
     * @param  string $key
     * @return bool
     */
    public function has($key)
    {
        return $this->cache->get($key);
    }

    /**
     * Retrieve an item from the cache by key.
     *
     * @param  string  $key
     * @param  mixed   $default
     * @return mixed
     */
    public function get($key, $default = null)
    {
        if ($this->cache->get($key)) {
            return $this->cache->get($key);
        }

        return $default;
    }

    /**
     * Retrieve an item from the cache and delete it.
     *
     * @param  string $key
     * @param  mixed $default
     * @return mixed
     */
    public function pull($key, $default = null)
    {
        if ($this->cache->get($key)) {
            $cached = $this->cache->get($key);
            $this->cache->delete($key);
            return $cached;
        }

        return $default;
    }

    /**
     * Store an item in the cache.
     *
     * @param  string $key
     * @param  mixed $value
     * @param  \DateTime|int $minutes
     * @return void
     */
    public function put($key, $value, $minutes)
    {
        $this->cache->save($key, $value, $minutes);
    }
}
{'fraction_non_alphanumeric': 0.15077452667814115, 'fraction_numerical': 0.0, 'mean_word_length': 2.145021645021645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '1206537', 'n_tokens_mistral': 1000, 'n_tokens_neox': 934, 'n_words': 246}