<commit_before><?php
/**
 * Cache
 * @author <NAME> <<EMAIL>> @mosesngone
 */

namespace Blueridge\Middleware;

use \Memcache;
use \Slim\Middleware;
use \Doctrine\Common\Cache\ApcCache;
use \Doctrine\Common\Cache\MemcacheCache;


class Cache extends Middleware
{
    public function call()
    {

        // $memcache = new \Memcache();
        // $memcache->connect('localhost', 11211);

        // $cacheDriver = new MemcacheCache();
        // $cacheDriver->setMemcache($memcache);

        $cacheDriver = new ApcCache();
        $cacheDriver->setNamespace('blrg_sdk_');

        $this->app->cacheDriver = $cacheDriver;
        $this->next->call();
    }
}<commit_msg>-n  change back to memcache<commit_after><?php
/**
 * Cache
 * @author <NAME> <<EMAIL>> @mosesngone
 */

namespace Blueridge\Middleware;

use \Memcache;
use \Slim\Middleware;
use \Doctrine\Common\Cache\ApcCache;
use \Doctrine\Common\Cache\MemcacheCache;


class Cache extends Middleware
{
    public function call()
    {

        $memcache = new Memcache();
        $memcache->connect('localhost', 11211);

        $cacheDriver = new MemcacheCache();
        $cacheDriver->setMemcache($memcache);        
        $cacheDriver->setNamespace('blrg_sdk_');

        $this->app->cacheDriver = $cacheDriver;
        $this->next->call();
    }
}
{'fraction_non_alphanumeric': 0.15331807780320367, 'fraction_numerical': 0.007627765064836003, 'mean_word_length': 2.9637462235649545, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '3933323', 'n_tokens_mistral': 426, 'n_tokens_neox': 412, 'n_words': 79}