<commit_before>__author__ = 'eandersson'

import logging

from amqpstorm import UriConnection

logging.basicConfig(level=logging.DEBUG)


def publisher():
    with UriConnection('amqp://guest:guest@localhost:5672/%2F') as connection:
        with connection.channel() as channel:
            channel.queue.declare('simple_queue')
        channel.basic.publish(body='Hello World!',
                              routing_key='simple_queue')

if __name__ == '__main__':
    publisher()<commit_msg>Fixed accidental indent change in example.<commit_after>__author__ = 'eandersson'

import logging

from amqpstorm import UriConnection

logging.basicConfig(level=logging.DEBUG)


def publisher():
    with UriConnection('amqp://guest:guest@localhost:5672/%2F') as connection:
        with connection.channel() as channel:
            channel.queue.declare('simple_queue')
            channel.basic.publish(body='Hello World!',
                                  routing_key='simple_queue')

if __name__ == '__main__':
    publisher()
{'fraction_non_alphanumeric': 0.11024390243902439, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 3.3659574468085105, 'pattern_counts': {'":': 0, '<': 3, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6322566', 'n_tokens_mistral': 298, 'n_tokens_neox': 285, 'n_words': 58}