<commit_before><?php

/*
 * This file is part of the 'org.octris.core' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace org\octris\core {
    /**
     * Cache core class.
     *
     * @octdoc      c:core/cache
     * @copyright   copyright (c) 2011 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class cache
    /**/
    {
        /**
         * Standard caching backend.
         *
         * @octdoc  p:cache/$backend
         * @var     \org\octris\core\cache\storage_if
         */
        protected $backend;
        /**/

        /**
         * Fallback caching backend.
         *
         * @octdoc  p:cacbe/$fallback
         * @var     \org\octris\core\cache\storage_if|null
         */
        protected $fallback = null;
        /**/

        /**
         * Logger instance.
         *
         * @octdoc  p:cache/$logger
         * @var     \org\octris\core\logger $logger|null
         */
        protected $logger = null;
        /**/

        /**
         * Constructor.
         *
         * @octdoc  m:cache/__construct
         * @param   \org\octris\core\cache\storage_if   $storage        Instance of cache storage backend.
         */
        public function __construct(\org\octris\core\cache\storage_if $storage)
        /**/
        {
            $this->backend = $storage;
        }

        /**
         * Set a fallback cache for example to combine a fast transient and a slower persistent cache,
         * the fallback would define the second, in this example persistent cache, that would be queried,
         * if the first cache does not contain the looked-up data.
         *
         * @octdoc  m:cache/setFallback
         * @param   \org\octris\core\cache\storage_if   $storage        Instance of cache storage backend.
         */
        public function setFallback(\org\octris\core\cache\storage_if $storage)
        /**/
        {
            $this->fallback = $storage;
        }

        /**
         * Set logger for logging problems and information with cache backends.
         *
         * @octdoc  m:cache/setLogger
         * @param   \org\octris\core\logger             $logger         Instance of logger class.
         */
        public function setLogger(\org\octris\core\logger $logger)
        /**/
        {
            $this->logger = $logger;
        }


    }
}<commit_msg>storage is now an abstract class<commit_after><?php

/*
 * This file is part of the 'org.octris.core' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace org\octris\core {
    /**
     * Cache core class.
     *
     * @octdoc      c:core/cache
     * @copyright   copyright (c) 2011 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class cache
    /**/
    {
        /**
         * Standard caching backend.
         *
         * @octdoc  p:cache/$backend
         * @var     \org\octris\core\cache\storage_if
         */
        protected $backend;
        /**/

        /**
         * Fallback caching backend.
         *
         * @octdoc  p:cacbe/$fallback
         * @var     \org\octris\core\cache\storage_if|null
         */
        protected $fallback = null;
        /**/

        /**
         * Logger instance.
         *
         * @octdoc  p:cache/$logger
         * @var     \org\octris\core\logger $logger|null
         */
        protected $logger = null;
        /**/

        /**
         * Constructor.
         *
         * @octdoc  m:cache/__construct
         * @param   \org\octris\core\cache\storagen     $storage        Instance of cache storage backend.
         */
        public function __construct(\org\octris\core\cache\storage $storage)
        /**/
        {
            $this->backend = $storage;
        }

        /**
         * Set a fallback cache for example to combine a fast transient and a slower persistent cache,
         * the fallback would define the second, in this example persistent cache, that would be queried,
         * if the first cache does not contain the looked-up data.
         *
         * @octdoc  m:cache/setFallback
         * @param   \org\octris\core\cache\storage      $storage        Instance of cache storage backend.
         */
        public function setFallback(\org\octris\core\cache\storage $storage)
        /**/
        {
            $this->fallback = $storage;
        }

        /**
         * Set logger for logging problems and information with cache backends.
         *
         * @octdoc  m:cache/setLogger
         * @param   \org\octris\core\logger             $logger         Instance of logger class.
         */
        public function setLogger(\org\octris\core\logger $logger)
        /**/
        {
            $this->logger = $logger;
        }


    }
}
{'fraction_non_alphanumeric': 0.11117824773413898, 'fraction_numerical': 0.0016112789526686808, 'mean_word_length': 1.4547701433514582, 'pattern_counts': {'":': 0, '<': 19, '<?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': '2444578', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1380, 'n_words': 359}