<commit_before>#
# Copyright (C) 2013 - 2018 <NAME> <ssato @ redhat.com>
# Copyright (C) 2019 <NAME> <<EMAIL> @ <EMAIL>>
# License: MIT
#
# pylint: disable=invalid-name
"""anyconfig globals.
"""
import collections
import anyconfig.init


PACKAGE = "anyconfig"
AUTHOR = "<NAME> <<EMAIL>>"
VERSION = "0.9.10"

LOGGER = anyconfig.init.getLogger(PACKAGE)

IOI_KEYS = "src type path opener extension".split()
IOInfo = collections.namedtuple("IOInfo", IOI_KEYS)

IOI_TYPES = (IOI_NONE, IOI_PATH_STR, IOI_PATH_OBJ, IOI_STREAM) = \
            (None, "path", "pathlib.Path", "stream")


class UnknownParserTypeError(RuntimeError):
    """Raise if no parsers were found for given type."""
    def __init__(self, forced_type):
        msg = "No parser found for type '%s'" % forced_type
        super(UnknownParserTypeError, self).__init__(msg)


class UnknownProcessorTypeError(RuntimeError):
    """Raise if no processors were found for given type."""
    def __init__(self, forced_type):
        msg = "No parser found for type '%s'" % forced_type
        super(UnknownProcessorTypeError, self).__init__(msg)


class UnknownFileTypeError(RuntimeError):
    """Raise if not parsers were found for given file path."""
    def __init__(self, path):<commit_msg>fix: change my contact address; 0.9.11 rc1<commit_after>#
# Copyright (C) 2013 - 2018 <NAME> <ssato @ redhat.com>
# Copyright (C) 2019 <NAME> <<EMAIL> @ <EMAIL>>
# License: MIT
#
# pylint: disable=invalid-name
"""anyconfig globals.
"""
import collections
import anyconfig.init


PACKAGE = "anyconfig"
AUTHOR = "<NAME> <<EMAIL>>"
VERSION = "0.9.11"

LOGGER = anyconfig.init.getLogger(PACKAGE)

IOI_KEYS = "src type path opener extension".split()
IOInfo = collections.namedtuple("IOInfo", IOI_KEYS)

IOI_TYPES = (IOI_NONE, IOI_PATH_STR, IOI_PATH_OBJ, IOI_STREAM) = \
            (None, "path", "pathlib.Path", "stream")


class UnknownParserTypeError(RuntimeError):
    """Raise if no parsers were found for given type."""
    def __init__(self, forced_type):
        msg = "No parser found for type '%s'" % forced_type
        super(UnknownParserTypeError, self).__init__(msg)


class UnknownProcessorTypeError(RuntimeError):
    """Raise if no processors were found for given type."""
    def __init__(self, forced_type):
        msg = "No parser found for type '%s'" % forced_type
        super(UnknownProcessorTypeError, self).__init__(msg)


class UnknownFileTypeError(RuntimeError):
    """Raise if not parsers were found for given file path."""
    def __init__(self, path):
{'fraction_non_alphanumeric': 0.1312771846579676, 'fraction_numerical': 0.014630288651640965, 'mean_word_length': 4.348837209302325, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3481890', 'n_tokens_mistral': 860, 'n_tokens_neox': 807, 'n_words': 233}