<commit_before>""" Jolokia client API for Python.
"""
import socket
import urllib2
import httplib

from jmx4py.jolokia.errors import JmxException
from jmx4py.jolokia.client import JmxClient


ERRORS = (
    socket.error,
    urllib2.URLError,
    httplib.HTTPException,
    JmxException,
)

__all__ = [
    "ERRORS",
    "JmxException",
    "JmxClient",
]<commit_msg>fixed jmx4py.jolokia namespace; register HTTP(S) connector<commit_after>""" Jolokia client API for Python.
"""
import socket
import urllib2
import httplib

from jmx4py.jolokia.errors import JmxException
from jmx4py.jolokia.client import JmxClient
from jmx4py.jolokia.connection import JmxConnection, JmxHttpConnection

JmxConnection.register("http", JmxHttpConnection)
JmxConnection.register("https", JmxHttpConnection)

ERRORS = (
    socket.error,
    urllib2.URLError,
    httplib.HTTPException,
    JmxException,
)

__all__ = [
    "ERRORS", "JmxException",
    "JmxClient", "JmxConnection", "JmxHttpConnection",
]
{'fraction_non_alphanumeric': 0.09847715736040609, 'fraction_numerical': 0.01015228426395939, 'mean_word_length': 4.869047619047619, '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': '1531314', 'n_tokens_mistral': 357, 'n_tokens_neox': 344, 'n_words': 74}