<commit_before>#!/usr/bin/python

from qmf.console import Session


class QmfConsoleException(Exception):
    """
    Basic exception for class QmfConsole
    """
    pass


class QmfConsole(object):
    """
    Simple Abstraction to send QMF console commands
    """
    def __init__(self, broker_url = "amqp://localhost:5672"):
        try:
            self.session = Session()
            self.broker = sess.addBroker(broker_url)
        except:
            print "Connection failed"


    def __del__(self):
        self.session.close()
        
        
        <commit_msg>fixed dumb error in qmfconsole<commit_after>#!/usr/bin/python

from qmf.console import Session


class QmfConsoleException(Exception):
    """
    Basic exception for class QmfConsole
    """
    pass


class QmfConsole(object):
    """
    Simple Abstraction to send QMF console commands
    """
    def __init__(self, broker_url = "amqp://localhost:5672"):
        try:
            self.session = Session()
            self.broker = self.session.addBroker(broker_url)
        except:
            print "Connection failed"


    def __del__(self):
        self.session.close()
        
        
        
{'fraction_non_alphanumeric': 0.0989010989010989, 'fraction_numerical': 0.006762468300929839, 'mean_word_length': 2.148936170212766, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5256577', 'n_tokens_mistral': 350, 'n_tokens_neox': 336, 'n_words': 80}