<commit_before><?php
declare(strict_types=1);

namespace Moka\Traits;

use Moka\Exception\InvalidIdentifierException;
use Moka\Exception\MockNotCreatedException;
use Moka\Moka;
use Moka\Proxy\Proxy;

/**
 * Trait MokaTrait
 * @package Moka\Traits
 */
trait MokaTrait
{
    /**
     * @param string $fqcn
     * @param string|null $key
     * @return Proxy
     *
     * @throws MockNotCreatedException
     * @throws InvalidIdentifierException
     */
    protected function mock(string $fqcn, string $key = null): Proxy
    {
        return Moka::brew($fqcn, $key);
    }<commit_msg>Rename 'key' to 'alias'<commit_after><?php
declare(strict_types=1);

namespace Moka\Traits;

use Moka\Exception\InvalidIdentifierException;
use Moka\Exception\MockNotCreatedException;
use Moka\Moka;
use Moka\Proxy\Proxy;

/**
 * Trait MokaTrait
 * @package Moka\Traits
 */
trait MokaTrait
{
    /**
     * @param string $fqcn
     * @param string|null $alias
     * @return Proxy
     *
     * @throws MockNotCreatedException
     * @throws InvalidIdentifierException
     */
    protected function mock(string $fqcn, string $alias = null): Proxy
    {
        return Moka::brew($fqcn, $alias);
    }
{'fraction_non_alphanumeric': 0.11824324324324324, 'fraction_numerical': 0.0016891891891891893, 'mean_word_length': 3.3566176470588234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1529149', 'n_tokens_mistral': 395, 'n_tokens_neox': 395, 'n_words': 85}