<commit_before><?php
/**
 * @see Zend_Cache_Backend_Interface
 */
require_once 'Zend/Cache/Backend/ExtendedInterface.php';

/**
 * @see Zend_Cache_Backend
 */
require_once 'Zend/Cache/Backend.php';

/**
 * @see Zend_Cache
 */
require_once 'Zend/Cache.php';

/**
 * Zend_Cache_Backend_Mock - a Zend_Cache backend for unit testing
 *
 * Has no external dependencies (files, memcache, APC) - only stores values
 *   in process memory
 *
 * Cache contents do not persist between requests
 *
 * Based on Zend_Cache_Backend_Blackhole from which it borrows much
 * (non)functionality
 *
 * @package    Zend_Cache
 * @subpackage Zend_Cache_Backend
 * @author     <NAME> <<EMAIL>>
 * @copyright  2010 Empower Campaigns
 * @license    New BSD License (enclosed)
 */
class Zend_Cache_Backend_Mock
    extends Zend_Cache_Backend
    implements Zend_Cache_Backend_ExtendedInterface
{
    /**
     * Contains all saved data (doesn't persist beyond the request)
     *
     * @var array
     */
    protected $_cache = array();

    /**
     * Test if a cache is available for the given id and (if yes) return it
     * (false else)
     *
     * @param  string $id cache id
     * @param  boolean $doNotTestCacheValidity if set to true, the cache
     *                                         validity won't be tested
     * @return string|false cached datas
     */
    public function load($id, $doNotTestCacheValidity = false)
    {
        if ($this->test($id)) {
            return $this->_cache[$id];
        } else {
            return false;<commit_msg>Added Github project link<commit_after><?php
/**
 * @see Zend_Cache_Backend_Interface
 */
require_once 'Zend/Cache/Backend/ExtendedInterface.php';

/**
 * @see Zend_Cache_Backend
 */
require_once 'Zend/Cache/Backend.php';

/**
 * @see Zend_Cache
 */
require_once 'Zend/Cache.php';

/**
 * Zend_Cache_Backend_Mock - a Zend_Cache backend for unit testing
 *
 * Has no external dependencies (files, memcache, APC) - only stores values
 *   in process memory
 *
 * Cache contents do not persist between requests
 *
 * Based on Zend_Cache_Backend_Blackhole from which it borrows much
 * (non)functionality
 *
 * @package    Zend_Cache
 * @subpackage Zend_Cache_Backend
 * @author     <NAME> <<EMAIL>>
 * @copyright  2010 Empower Campaigns
 * @license    New BSD License (enclosed)
 * @link       http://github.com/empower/Zend_Cache_Backend_Mock
 */
class Zend_Cache_Backend_Mock
    extends Zend_Cache_Backend
    implements Zend_Cache_Backend_ExtendedInterface
{
    /**
     * Contains all saved data (doesn't persist beyond the request)
     *
     * @var array
     */
    protected $_cache = array();

    /**
     * Test if a cache is available for the given id and (if yes) return it
     * (false else)
     *
     * @param  string $id cache id
     * @param  boolean $doNotTestCacheValidity if set to true, the cache
     *                                         validity won't be tested
     * @return string|false cached datas
     */
    public function load($id, $doNotTestCacheValidity = false)
    {
        if ($this->test($id)) {
            return $this->_cache[$id];
        } else {
            return false;
{'fraction_non_alphanumeric': 0.09895997478726758, 'fraction_numerical': 0.0025212732429877086, 'mean_word_length': 2.712280701754386, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2458735', 'n_tokens_mistral': 959, 'n_tokens_neox': 936, 'n_words': 276}