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

"""
blueox
~~~~~~~~

:copyright: (c) 2012 by <NAME>
:license: ISC, see LICENSE for more details.

"""

__title__ = 'blueox'
__version__ = '0.4.0'
__author__ = '<NAME>'
__author_email__ = '<EMAIL>'
__license__ = 'ISC'
__copyright__ = 'Copyright 2012 <NAME>'
__description__ = "A library for python-based application logging and data collection"
__url__ = "https://github.com/rhettg/BlueOx"

import logging

from . import utils
from . import network
from .context import Context, set, append, add
from . import context as _context_mod
from .errors import Error
from .logger import LogHandler
from .timer import timeit

log = logging.getLogger(__name__)


def configure(host, port, recorder=None):
    """Initialize blueox

    This instructs the blueox system where to send it's logging data. If blueox is not configured, log data will
    be silently dropped.

    Currently we support logging through the network (and the configured host and port) to a blueoxd instances, or
    to the specified recorder function
    """<commit_msg>Version bump<commit_after># -*- coding: utf-8 -*-

"""
blueox
~~~~~~~~

:copyright: (c) 2012 by <NAME>
:license: ISC, see LICENSE for more details.

"""

__title__ = 'blueox'
__version__ = '0.4.1'
__author__ = '<NAME>'
__author_email__ = '<EMAIL>'
__license__ = 'ISC'
__copyright__ = 'Copyright 2012 <NAME>'
__description__ = "A library for python-based application logging and data collection"
__url__ = "https://github.com/rhettg/BlueOx"

import logging

from . import utils
from . import network
from .context import Context, set, append, add
from . import context as _context_mod
from .errors import Error
from .logger import LogHandler
from .timer import timeit

log = logging.getLogger(__name__)


def configure(host, port, recorder=None):
    """Initialize blueox

    This instructs the blueox system where to send it's logging data. If blueox is not configured, log data will
    be silently dropped.

    Currently we support logging through the network (and the configured host and port) to a blueoxd instances, or
    to the specified recorder function
    """
{'fraction_non_alphanumeric': 0.1006993006993007, 'fraction_numerical': 0.011188811188811189, 'mean_word_length': 4.259803921568627, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '1502068', 'n_tokens_mistral': 646, 'n_tokens_neox': 617, 'n_words': 255}