<commit_before><?php
namespace Kastilyo\RabbitHole\Spec;

use AMQPConnection;
use kahlan\plugin\Stub;

class Helper
{
    public static function initializeAMQPStubs()
    {
        Stub::on('AMQPChannel')->method('__construct');
        Stub::on('AMQPExchange')->method('__construct');
        Stub::on('AMQPExchange')->method('declareExchange');
        Stub::on('AMQPQueue')->method('__construct');
        Stub::on('AMQPQueue')->method('declareQueue');
        Stub::on('AMQPQueue')->method('bind');
    }
    public static function getAMQPConnection()<commit_msg>Docblock for helper<commit_after><?php
namespace Kastilyo\RabbitHole\Spec;

use AMQPConnection;
use kahlan\plugin\Stub;

/**
 * Helper class for stubbing third-party AMQP classes
 */
class Helper
{
    public static function initializeAMQPStubs()
    {
        Stub::on('AMQPChannel')->method('__construct');
        Stub::on('AMQPExchange')->method('__construct');
        Stub::on('AMQPExchange')->method('declareExchange');
        Stub::on('AMQPQueue')->method('__construct');
        Stub::on('AMQPQueue')->method('declareQueue');
        Stub::on('AMQPQueue')->method('bind');
    }

    public static function getAMQPConnection()
{'fraction_non_alphanumeric': 0.16708229426433915, 'fraction_numerical': 0.0, 'mean_word_length': 4.447963800904978, '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': '5961404', 'n_tokens_mistral': 392, 'n_tokens_neox': 363, 'n_words': 54}