<commit_before><?php
namespace Moln\FailoverManager\Listener;

use Zend\EventManager\AbstractListenerAggregate;
use Zend\EventManager\EventManagerInterface;

/**
 * Write a file, when connection error.
 *
 * @author  <EMAIL>
 */
class FileConfigFailoverListener extends AbstractListenerAggregate
{
    protected $file;

    public function __construct(array $options = [])
    {
        isset($options['file']) && $this->setFile($options['file']);
    }

    /**
     * @return string
     */
    public function getFile()
    {
        return $this->file;
    }

    /**
     * @param string $file<commit_msg>1. Fix Listener/FileConfigFailoverListener.php<commit_after><?php
namespace Moln\FailoverManager\Listener;

use Moln\FailoverManager\ResourceEvent;
use Zend\EventManager\AbstractListenerAggregate;
use Zend\EventManager\EventManagerInterface;

/**
 * Write a file, when connection error.
 *
 * @author  <EMAIL>
 */
class FileConfigFailoverListener extends AbstractListenerAggregate
{
    protected $file;

    public function __construct(array $options = [])
    {
        isset($options['file']) && $this->setFile($options['file']);
    }

    /**
     * @return string
     */
    public function getFile()
    {
        return $this->file;
    }

    /**
     * @param string $file
{'fraction_non_alphanumeric': 0.1268368136117556, 'fraction_numerical': 0.0007733952049497294, 'mean_word_length': 3.3133333333333335, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6741609', 'n_tokens_mistral': 379, 'n_tokens_neox': 374, 'n_words': 77}