<commit_before><?php
/**
 * @author <NAME> | grrr.nl
 */
class Garp_Controller_Helper_Cache extends Zend_Controller_Action_Helper_Cache {
    /**
     * Wether caching is enabled
     * @var Boolean
     */
    protected $_enabled = true;

    /**
     * Sets the required HTTP headers to specify an expiration time.
     * @param int Expiration time in seconds.
     */
    public function setCacheHeaders($expirationTimeInSeconds = 300) {
        $this->getResponse()
            ->setHeader('Cache-Control', 'public', true)
            ->setHeader('Pragma', 'cache', true)
            ->setHeader('Expires', 
                gmdate(
                    DATE_RFC1123, 
                    strtotime("+{$expirationTimeInSeconds} seconds")
                ), 
                true
            );
    }
    
    /**
     * Sets the required HTTP headers to prevent this request from being cached by the browser.
     * @param Zend_Controller_Response_Http $response The HTTP response object.
     *                                                Use $this->getResponse() from a controller.
     */
    public function setNoCacheHeaders(Zend_Controller_Response_Http $response) {
        $this->getResponse()<commit_msg>Fixed weird Slack pasting error of variable<commit_after><?php
/**
 * @author <NAME> | grrr.nl
 */
class Garp_Controller_Helper_Cache extends Zend_Controller_Action_Helper_Cache {
    /**
     * Wether caching is enabled
     * @var Boolean
     */
    protected $_enabled = true;

    /**
     * Sets the required HTTP headers to specify an expiration time.
     * @param int Expiration time in seconds.
     */
    public function setCacheHeaders($expirationTimeInSeconds = 300) {
        $this->getResponse()
            ->setHeader('Cache-Control', 'public', true)
            ->setHeader('Pragma', 'cache', true)
            ->setHeader('Expires', 
                gmdate(
                    DATE_RFC1123, 
                    strtotime("+{$expirationTimeInSeconds} seconds")
                ), 
                true
            );
    }
    
    /**
     * Sets the required HTTP headers to prevent this request from being cached by the browser.
     * @param Zend_Controller_Response_Http $response The HTTP response object.
     *                                                Use $this->getResponse() from a controller.
     */
    public function setNoCacheHeaders(Zend_Controller_Response_Http $response) {
        $this->getResponse()
{'fraction_non_alphanumeric': 0.0948905109489051, 'fraction_numerical': 0.0056772100567721, 'mean_word_length': 1.947431302270012, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '1873119', 'n_tokens_mistral': 662, 'n_tokens_neox': 614, 'n_words': 169}