<commit_before><?php
/**
 * Nooku Framework - http://www.nooku.org
 *
 * @copyright      Copyright (C) 2011 - 2013 <NAME> and Timble CVBA. (http://www.timble.net)
 * @license        GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link           git://git.assembla.com/nooku-framework.git for the canonical source repository
 */

namespace Nooku\Component\Application;

use Nooku\Library;

/**
 * Translator Catalogue
 *
 * @author  <NAME> <https://github.com/amazeika>
 * @package Nooku\Component\Koowa
 */
class TranslatorCatalogue extends Library\TranslatorCatalogue implements TranslatorCatalogueInterface
{
    /**
     * @see TranslatorCatalogueInterface::import()
     */
    public function import($translations, $override = false)
    {
        if ($override)
        {
            $this->_data = array_merge($this->_data, $translations);
        }
        else
        {
            $this->_data = array_merge($translations, $this->_data);
        }
    }

    /**
     * @see TranslatorCatalogueInterface::hasKey()
     */
    public function hasKey($key)
    {
        return isset($this->_data[$key]);
    }
}<commit_msg>re #302 Synced with new interface.<commit_after><?php
/**
 * Nooku Framework - http://www.nooku.org
 *
 * @copyright      Copyright (C) 2011 - 2013 <NAME> and Timble CVBA. (http://www.timble.net)
 * @license        GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link           git://git.assembla.com/nooku-framework.git for the canonical source repository
 */

namespace Nooku\Component\Application;

use Nooku\Library;

/**
 * Translator Catalogue
 *
 * @author  <NAME> <https://github.com/amazeika>
 * @package Nooku\Component\Koowa
 */
class TranslatorCatalogue extends Library\TranslatorCatalogue implements TranslatorCatalogueInterface
{
    /**
     * @see TranslatorCatalogueInterface::import()
     */
    public function import($translations, $override = false)
    {
        if ($override)
        {
            $this->_data = array_merge($this->_data, $translations);
        }
        else
        {
            $this->_data = array_merge($translations, $this->_data);
        }
    }

    /**
     * @see TranslatorCatalogueInterface::hasString()
     */
    public function hasString($string)
    {
        return isset($this->_data[$string]);
    }
}
{'fraction_non_alphanumeric': 0.13945430922477262, 'fraction_numerical': 0.009094846253789519, 'mean_word_length': 2.615023474178404, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '1451722', 'n_tokens_mistral': 734, 'n_tokens_neox': 702, 'n_words': 135}