<commit_before>from cryptex.soxex.pushersocket import PusherClientInterface
from cryptex.soxex.socketserver import WebSocketBase

from pprint import pprint

class BitstampSocket(WebSocketBase, PusherClientInterface):
    PUSHER_APP_KEY = 'de504dc5763aeef9ff52'
    PUSHER_CHANNEL = 'live_trades'
    PUSHER_EVENT = 'trade'

    def __init__(self):
        pass

    def start(self):
        def callback(data):
            pprint(data)

        self.open_connection(self.PUSHER_APP_KEY, self.PUSHER_CHANNEL, self.PUSHER_EVENT, callback)

    def stop(self):
        self.close_connection()

<commit_msg>Modified bitstamp's interface so it properly uses the parent class<commit_after>from cryptex.soxex.pushersocket import PusherClientInterface
from cryptex.soxex.socketserver import WebSocketBase

from pprint import pprint

class BitstampSocket(WebSocketBase, PusherClientInterface):
    PUSHER_APP_KEY = 'de504dc5763aeef9ff52'
    PUSHER_CHANNEL = 'live_trades'
    PUSHER_EVENT = 'trade'

    def __init__(self):
        super(BitstampSocket, self).__init__()

    def subscribe_txs(self):
        def callback(data):
            pprint(data)

        self.connect(self.PUSHER_APP_KEY,
                     self.PUSHER_CHANNEL,
                     self.PUSHER_EVENT,
                     callback)

    def unsubscribe_txs(self):
        self.close()


{'fraction_non_alphanumeric': 0.07300884955752213, 'fraction_numerical': 0.014749262536873156, 'mean_word_length': 3.2274143302180685, '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': '740316', 'n_tokens_mistral': 455, 'n_tokens_neox': 434, 'n_words': 82}