<commit_before><?php
/**
 * (c) 2011 Vespolina Project http://www.vespolina-project.org
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */
namespace Vespolina\MonetaryBundle\Service;

use Vespolina\MonetaryBundle\Model\CurrencyInterface;
use Vespolina\MonetaryBundle\Service\CurrencyExchangerInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
abstract class CurrencyExchanger implements CurrencyExchangerInterface
{
    protected function getCode($currency)
    {
        if ($currency instanceof Vespolina\MonetaryBundle\Model\CurrencyInterface)
        {
            return $currency->getCurrencyCode();
        }
        return strtoupper($currency);
    }
}<commit_msg>Change method name to something more descriptive<commit_after><?php
/**
 * (c) 2011 Vespolina Project http://www.vespolina-project.org
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */
namespace Vespolina\MonetaryBundle\Service;

use Vespolina\MonetaryBundle\Model\CurrencyInterface;
use Vespolina\MonetaryBundle\Service\CurrencyExchangerInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
abstract class CurrencyExchanger implements CurrencyExchangerInterface
{
    protected function extractCode($currency)
    {
        if ($currency instanceof Vespolina\MonetaryBundle\Model\CurrencyInterface)
        {
            return $currency->getCurrencyCode();
        }
        return strtoupper($currency);
    }
}
{'fraction_non_alphanumeric': 0.09504950495049505, 'fraction_numerical': 0.005280528052805281, 'mean_word_length': 3.87459807073955, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '12365', 'n_tokens_mistral': 433, 'n_tokens_neox': 419, 'n_words': 108}