<commit_before>from .parser import ParserListener


class ObjectBuilderParserListener(ParserListener):
    """ A configurable parser listener implementation that can be configured to
    build a json tree using the user supplied object/array/value factories. """
    def __init__(self, object_creator, array_creator, value_converter):
        super(ObjectBuilderParserListener, self).__init__()
        self.object_creator = object_creator
        self.array_creator = array_creator
        self.value_converter = value_converter

        self._object_key = None
        self._container_stack = [(None, None, None)]
        self._object = None

    @property
    def object(self):
        """ This property holds the parsed object or array after a successful parsing. """
        return self._object

    class ContainerType:
        object = 0
        array = 1

    @property
    def _state(self):<commit_msg>fixed a warning<commit_after>from .parser import ParserListener


class ObjectBuilderParserListener(ParserListener):
    """ A configurable parser listener implementation that can be configured to
    build a json tree using the user supplied object/array/value factories. """
    def __init__(self, object_creator, array_creator, value_converter):
        super(ObjectBuilderParserListener, self).__init__()
        self.object_creator = object_creator
        self.array_creator = array_creator
        self.value_converter = value_converter

        self._object_key = None
        # The lambda function could actually be a None but that way we get a warning in
        # self._new_value() that the insert_function isn't callable...
        self._container_stack = [(None, None, lambda *args: None)]
        self._object = None

    @property
    def object(self):
        """ This property holds the parsed object or array after a successful parsing. """
        return self._object

    class ContainerType:
        object = 0
        array = 1

    @property
    def _state(self):
{'fraction_non_alphanumeric': 0.07060590886329494, 'fraction_numerical': 0.00200300450676014, 'mean_word_length': 3.036363636363636, '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': '724581', 'n_tokens_mistral': 522, 'n_tokens_neox': 500, 'n_words': 171}