<commit_before><?php

namespace Heyday\CacheInclude;

use CacheCache\Cache;
use Heyday\CacheInclude\KeyCreatorInterface;
use Heyday\CacheInclude\ConfigInterface;
use Heyday\CacheInclude\ProcessorInterface;

class CacheInclude
{

    //DI services
    protected $keyCreator;
    protected $cache;
    protected $config;

    //Configuration props
    protected $delayedProcessing = false;
    protected $enabled = true;
    protected $extraMemory = array();
    protected $forceExpire = false;
    protected $defaultConfig = array(
        'context' => 'no',
        'member' => false,
        'expires' => false
    );

    public function __construct(
        Cache $cache,
        KeyCreatorInterface $keyCreator,
        ConfigInterface $config,
        $forceExpire = false
    )
    {
        $this->cache = $cache;
        $this->keyCreator = $keyCreator;
        $this->config = $config;
        $this->forceExpire = $forceExpire;
    }

    public function setDelayedProcessing($enabled)
    {
        $this->delayedProcessing = (boolean) $enabled;
    }

    public function setEnabled($enabled)
    {
        $this->enabled = (boolean) $enabled;
    }

    public function setDefaultConfig($config)
    {
        $this->defaultConfig = $defaultConfig;
    }

    public function setExtraMemory($extraMemory)
    {
        $this->extraMemory = $extraMemory;
    }

    public function getConfig()
    {
        return $this->config;
    }<commit_msg>UPDATE: Remove unneeded options<commit_after><?php

namespace Heyday\CacheInclude;

use CacheCache\Cache;
use Heyday\CacheInclude\KeyCreatorInterface;
use Heyday\CacheInclude\ConfigInterface;
use Heyday\CacheInclude\ProcessorInterface;

class CacheInclude
{

    //DI services
    protected $keyCreator;
    protected $cache;
    protected $config;

    //Configuration props
    protected $enabled = true;
    protected $forceExpire = false;
    protected $defaultConfig = array(
        'context' => 'no',
        'member' => false,
        'expires' => false
    );

    public function __construct(
        Cache $cache,
        KeyCreatorInterface $keyCreator,
        ConfigInterface $config,
        $forceExpire = false
    )
    {
        $this->cache = $cache;
        $this->keyCreator = $keyCreator;
        $this->config = $config;
        $this->forceExpire = $forceExpire;
    }

    public function setEnabled($enabled)
    {
        $this->enabled = (boolean) $enabled;
    }

    public function setDefaultConfig($config)
    {
        $this->defaultConfig = $defaultConfig;
    }

    public function getConfig()
    {
        return $this->config;
    }
{'fraction_non_alphanumeric': 0.1067629179331307, 'fraction_numerical': 0.0, 'mean_word_length': 2.6117969821673523, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '4726675', 'n_tokens_mistral': 753, 'n_tokens_neox': 738, 'n_words': 166}