<commit_before># -*- coding: utf-8 -*-

from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module

import logging, os
log = logging.getLogger('greenqueue')

from greenqueue.utils import Singleton

from .base import BaseService, BaseClient
from .. import settings


class ZMQClient(BaseClient):
    def __init__(self):
        self.socket_path = settings.GREENQUEUE_BIND_ADDRESS

    def send(self, name, args=[], kwargs={}):
        ctx = self.zmq.Context.instance()<commit_msg>Fixed __init__ method. Added default attributes and a call to the parent constructor<commit_after># -*- coding: utf-8 -*-

from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module

import logging, os
log = logging.getLogger('greenqueue')

from greenqueue.utils import Singleton

from .base import BaseService, BaseClient
from .. import settings


class ZMQClient(BaseClient):
    def __init__(self, lib, storage):
        super(ZMQClient, self).__init__(lib, storage)
        self.socket_path = settings.GREENQUEUE_BIND_ADDRESS

    def send(self, name, args=[], kwargs={}):
        ctx = self.zmq.Context.instance()
{'fraction_non_alphanumeric': 0.10092514718250631, 'fraction_numerical': 0.001682085786375105, 'mean_word_length': 4.409090909090909, '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': '5369406', 'n_tokens_mistral': 349, 'n_tokens_neox': 342, 'n_words': 98}