<commit_before><?php

namespace Zend\Module\Listener;

use Zend\Stdlib\Options;

class ListenerOptions extends Options
{
    /**
     * @var bool
     */
    protected $configCacheEnabled = false;

    /**
     * @var string
     */
    protected $configCacheKey;

    /**
     * @var string
     */
    protected $cacheDir;

    /**
     * @var string
     */
    protected $applicationEnvironment;

    /**
     * Check if the config cache is enabled
     *
     * @return bool
     */
    public function getConfigCacheEnabled()
    {
        return $this->configCacheEnabled;
    }
 
    /**
     * Set if the config cache should be enabled or not
     *
     * @param bool $enabled
     * @return ManagerOptions
     */
    public function setConfigCacheEnabled($enabled)
    {
        $this->configCacheEnabled = (bool) $enabled;
        return $this;
    }

    /**
     * Get key used to create the cache file name
     *
     * @return string
     */
    public function getConfigCacheKey() 
    {
        if ($this->configCacheKey !== null) {
            return $this->configCacheKey;
        }
        return $this->getApplicationEnv();
    }
<commit_msg>Fix call to old getApplicationEnv() method in module listener options<commit_after><?php

namespace Zend\Module\Listener;

use Zend\Stdlib\Options;

class ListenerOptions extends Options
{
    /**
     * @var bool
     */
    protected $configCacheEnabled = false;

    /**
     * @var string
     */
    protected $configCacheKey;

    /**
     * @var string
     */
    protected $cacheDir;

    /**
     * @var string
     */
    protected $applicationEnvironment;

    /**
     * Check if the config cache is enabled
     *
     * @return bool
     */
    public function getConfigCacheEnabled()
    {
        return $this->configCacheEnabled;
    }
 
    /**
     * Set if the config cache should be enabled or not
     *
     * @param bool $enabled
     * @return ManagerOptions
     */
    public function setConfigCacheEnabled($enabled)
    {
        $this->configCacheEnabled = (bool) $enabled;
        return $this;
    }

    /**
     * Get key used to create the cache file name
     *
     * @return string
     */
    public function getConfigCacheKey() 
    {
        if ($this->configCacheKey !== null) {
            return $this->configCacheKey;
        }
        return $this->getApplicationEnvironment();
    }

{'fraction_non_alphanumeric': 0.10601001669449082, 'fraction_numerical': 0.0, 'mean_word_length': 1.9375, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '971491', 'n_tokens_mistral': 677, 'n_tokens_neox': 658, 'n_words': 177}