<commit_before>#!/usr/bin/env python
import pika

connection = pika.AsyncoreConnection(pika.ConnectionParameters(
        host='127.0.0.1',
        credentials=pika.PlainCredentials('guest', 'guest')))
channel = connection.channel()


channel.queue_declare(queue='test')

def callback(ch, method, header, body):
    print " [x] Received %.20r" % (body,)

channel.basic_consume(callback,
                      queue='test',
                      no_ack=True)

print ' [*] Waiting for messages. To exit press CTRL+C'
pika.asyncore_loop()<commit_msg>Some random improvements to python/1<commit_after>#!/usr/bin/env python
import pika

connection = pika.AsyncoreConnection(pika.ConnectionParameters(
        host='127.0.0.1',
        credentials=pika.PlainCredentials('guest', 'guest')))
channel = connection.channel()


channel.queue_declare(queue='test')

print ' [*] Waiting for messages. To exit press CTRL+C'


def callback(ch, method, header, body):
    print " [x] Received %.20r" % (body,)

channel.basic_consume(callback,
                      queue='test',
                      no_ack=True)

pika.asyncore_loop()
{'fraction_non_alphanumeric': 0.13672922252010725, 'fraction_numerical': 0.01519213583556747, 'mean_word_length': 3.375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4394253', 'n_tokens_mistral': 371, 'n_tokens_neox': 355, 'n_words': 71}