<commit_before><?php

namespace Bernard;

/**
 * @package Bernard
 */
interface Router
{
    /**
     * Returns the right Receiver (callable) based on the Envelope.
     *
     * @param Envelope $envelope
     *
     * @return array
     *
     * @throws ReceiverNotFoundException
     */
    public function map(Envelope $envelope);
}<commit_msg>Change the return type for Router to callable<commit_after><?php

namespace Bernard;

/**
 * @package Bernard
 */
interface Router
{
    /**
     * Returns the right Receiver (callable) based on the Envelope.
     *
     * @param Envelope $envelope
     *
     * @return callable
     *
     * @throws ReceiverNotFoundException
     */
    public function map(Envelope $envelope);
}
{'fraction_non_alphanumeric': 0.10425240054869685, 'fraction_numerical': 0.0, 'mean_word_length': 2.613861386138614, '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': '7007609', 'n_tokens_mistral': 215, 'n_tokens_neox': 215, 'n_words': 61}