<commit_before><?php
namespace Amqp\Adapter;

interface AdapterInterface
{
    public function publish($exchangeName, $message, $routingKey);

    public function listen($queue, callable $callable);

    public function getMessage($queue);
}<commit_msg>Added and commented interface for adapters<commit_after><?php
namespace Amqp\Adapter;

interface AdapterInterface
{
    /**
     * Publish a message onto an exchange
     *
     * @param string $exchangeName The name of the exchange to publish to
     * @param string $message      The message to be published
     * @param string $routingKey   The routing key to publish the message
     *
     * @return boolean
     */
    public function publish($exchangeName, $message, $routingKey = null);

    /**
     * Listen for incoming messages in a blocking fashion.
     *
     * @param string   $queue    The queue on which we want to listen
     * @param callable $callable The callable to apply upon receiving messages
     * @param array    $options  The additional options to be applied when consuming messages [autoack => bool]
     *
     * @return void
     */
    public function listen($queue, callable $callable, array $options = array());

    /**
     * Returns a single message from the top of the queue
     *
     * @param string $queue The queue name
     *
     * @return mixed
     */
    public function getMessage($queue);
}
{'fraction_non_alphanumeric': 0.0830945558739255, 'fraction_numerical': 0.0, 'mean_word_length': 2.9575070821529743, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '3808890', 'n_tokens_mistral': 363, 'n_tokens_neox': 357, 'n_words': 145}