<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "mib"
__date__ = "$2011-01-22 12:02:41$"

from abstract import Abstract
from local import Local

__all__ = ['Abstract', 'Local']<commit_msg>Load conditionally all available adapters in order to make them available right inside pygrapes.adapter module<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "mib"
__date__ = "$2011-01-22 12:02:41$"

from pygrapes.util import not_implemented
from pygrapes.adapter.abstract import Abstract
from pygrapes.adapter.local import Local

try:
    from pygrapes.adapter.zeromq import Zmq
except ImportError:
    Zmq = not_implemented('A working pyzmq lib is required!')

try:
    from pygrapes.adapter.amqp import Amqp
except ImportError:
    Amqp = not_implemented('A working amqplib lib is required!')


__all__ = ['Abstract', 'Amqp', 'Local', 'Zmq']
{'fraction_non_alphanumeric': 0.12004530011325028, 'fraction_numerical': 0.03397508493771234, 'mean_word_length': 4.740259740259741, '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': '5695036', 'n_tokens_mistral': 313, 'n_tokens_neox': 296, 'n_words': 87}