<commit_before><?php

namespace Infonomicon\IrcBot;

use Phergie\Irc\Bot\React\AbstractPlugin;
use Phergie\Irc\Plugin\React\Command\CommandEventInterface as CommandEvent;
use Phergie\Irc\Bot\React\EventQueueInterface as Queue;

/**
 * FlipGoat plugin
 */
class FlipGoat extends AbstractPlugin
{
    /**
     * {@inheritdoc}
     */
    public function getSubscribedEvents()
    {
        return ['command.flipgoat' => 'handle'];
    }

    /**
     * Flip the goat
     *
     * @param CommandEvent $event
     * @param Queue        $queue
     */
    public function handle(CommandEvent $event, Queue $queue)
    {
        $channel = $event->getSource();

        $queue->ircPrivmsg($channel, "========)(========");
        usleep(50000);
        $queue->ircPrivmsg($channel, "#===)        (====");
        usleep(50000);
        $queue->ircPrivmsg($channel, "====)        (====");
        usleep(50000);
        $queue->ircPrivmsg($channel, "========)(========");
    }
}<commit_msg>remove sleeps now that queue is fixed<commit_after><?php

namespace Infonomicon\IrcBot;

use Phergie\Irc\Bot\React\AbstractPlugin;
use Phergie\Irc\Plugin\React\Command\CommandEventInterface as CommandEvent;
use Phergie\Irc\Bot\React\EventQueueInterface as Queue;

/**
 * FlipGoat plugin
 */
class FlipGoat extends AbstractPlugin
{
    /**
     * {@inheritdoc}
     */
    public function getSubscribedEvents()
    {
        return ['command.flipgoat' => 'handle'];
    }

    /**
     * Flip the goat
     *
     * @param CommandEvent $event
     * @param Queue        $queue
     */
    public function handle(CommandEvent $event, Queue $queue)
    {
        $channel = $event->getSource();

        $queue->ircPrivmsg($channel, "========)(========");
        $queue->ircPrivmsg($channel, "#===)        (====");
        $queue->ircPrivmsg($channel, "====)        (====");
        $queue->ircPrivmsg($channel, "========)(========");
    }
}
{'fraction_non_alphanumeric': 0.18961038961038962, 'fraction_numerical': 0.007792207792207792, 'mean_word_length': 2.7325581395348837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4179075', 'n_tokens_mistral': 621, 'n_tokens_neox': 602, 'n_words': 103}