from akf_corelib.conditional_print import ConditionalPrint
from akf_corelib.configuration_handler import ConfigurationHandler
from .data_helper import DataHelper as dh
from .akf_parsing_functions_common import AKFCommonParsingFunctions as cf
from akf_corelib.regex_util import RegexUtil as regu

import regex


class AkfParsingFunctionsTablesOne(object):

    def __init__(self, endobject_factory, output_analyzer, dictionary_handler):
        config_handler = ConfigurationHandler(first_init=False)

        self.config = config_handler.get_config()
        self.cpr = ConditionalPrint(self.config.PRINT_SEGMENT_PARSER_AKF_FN_TABLES_ONE, self.config.PRINT_EXCEPTION_LEVEL,
                                    self.config.PRINT_WARNING_LEVEL, leading_tag=self.__class__.__name__)

        self.cpr.print("init akf parsing functions tables one")

        self.ef = endobject_factory
        self.output_analyzer = output_analyzer
        self.dictionary_handler = dictionary_handler


    def parse_aktienkurse(self, real_start_tag, content_texts, content_lines, feature_lines, segmentation_class):
        # get basic data
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = \
            cf.add_check_element(self, content_texts, real_start_tag, segmentation_class, element_counter)

        # logme
        self.output_analyzer.log_segment_information(segmentation_class.segment_tag, content_texts, real_start_tag)


    def parse_dividenden(self, real_start_tag, content_texts, content_lines, feature_lines, segmentation_class):
        # get basic data
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = \
            cf.add_check_element(self, content_texts, real_start_tag, segmentation_class, element_counter)

        # logme
        self.output_analyzer.log_segment_information(segmentation_class.segment_tag, content_texts, real_start_tag)


    def parse_dividenden_auf_xyaktien(self, real_start_tag, content_texts, content_lines, feature_lines, segmentation_class):
        # get basic data
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = \
            cf.add_check_element(self, content_texts, real_start_tag, segmentation_class, element_counter)

        # logme
        self.output_analyzer.log_segment_information(segmentation_class.segment_tag, content_texts, real_start_tag)

c99db1a515724464c5b55aabe6cf37518e8a44f3
<mask token>


class AkfParsingFunctionsTablesOne(object):

    def __init__(self, endobject_factory, output_analyzer, dictionary_handler):
        config_handler = ConfigurationHandler(first_init=False)
        self.config = config_handler.get_config()
        self.cpr = ConditionalPrint(self.config.
            PRINT_SEGMENT_PARSER_AKF_FN_TABLES_ONE, self.config.
            PRINT_EXCEPTION_LEVEL, self.config.PRINT_WARNING_LEVEL,
            leading_tag=self.__class__.__name__)
        self.cpr.print('init akf parsing functions tables one')
        self.ef = endobject_factory
        self.output_analyzer = output_analyzer
        self.dictionary_handler = dictionary_handler
    <mask token>
    <mask token>
    <mask token>

<mask token>


class AkfParsingFunctionsTablesOne(object):

    def __init__(self, endobject_factory, output_analyzer, dictionary_handler):
        config_handler = ConfigurationHandler(first_init=False)
        self.config = config_handler.get_config()
        self.cpr = ConditionalPrint(self.config.
            PRINT_SEGMENT_PARSER_AKF_FN_TABLES_ONE, self.config.
            PRINT_EXCEPTION_LEVEL, self.config.PRINT_WARNING_LEVEL,
            leading_tag=self.__class__.__name__)
        self.cpr.print('init akf parsing functions tables one')
        self.ef = endobject_factory
        self.output_analyzer = output_analyzer
        self.dictionary_handler = dictionary_handler

    def parse_aktienkurse(self, real_start_tag, content_texts,
        content_lines, feature_lines, segmentation_class):
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = (cf.
            add_check_element(self, content_texts, real_start_tag,
            segmentation_class, element_counter))
        self.output_analyzer.log_segment_information(segmentation_class.
            segment_tag, content_texts, real_start_tag)
    <mask token>
    <mask token>

<mask token>


class AkfParsingFunctionsTablesOne(object):

    def __init__(self, endobject_factory, output_analyzer, dictionary_handler):
        config_handler = ConfigurationHandler(first_init=False)
        self.config = config_handler.get_config()
        self.cpr = ConditionalPrint(self.config.
            PRINT_SEGMENT_PARSER_AKF_FN_TABLES_ONE, self.config.
            PRINT_EXCEPTION_LEVEL, self.config.PRINT_WARNING_LEVEL,
            leading_tag=self.__class__.__name__)
        self.cpr.print('init akf parsing functions tables one')
        self.ef = endobject_factory
        self.output_analyzer = output_analyzer
        self.dictionary_handler = dictionary_handler

    def parse_aktienkurse(self, real_start_tag, content_texts,
        content_lines, feature_lines, segmentation_class):
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = (cf.
            add_check_element(self, content_texts, real_start_tag,
            segmentation_class, element_counter))
        self.output_analyzer.log_segment_information(segmentation_class.
            segment_tag, content_texts, real_start_tag)

    def parse_dividenden(self, real_start_tag, content_texts, content_lines,
        feature_lines, segmentation_class):
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = (cf.
            add_check_element(self, content_texts, real_start_tag,
            segmentation_class, element_counter))
        self.output_analyzer.log_segment_information(segmentation_class.
            segment_tag, content_texts, real_start_tag)

    def parse_dividenden_auf_xyaktien(self, real_start_tag, content_texts,
        content_lines, feature_lines, segmentation_class):
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = (cf.
            add_check_element(self, content_texts, real_start_tag,
            segmentation_class, element_counter))
        self.output_analyzer.log_segment_information(segmentation_class.
            segment_tag, content_texts, real_start_tag)

from akf_corelib.conditional_print import ConditionalPrint
from akf_corelib.configuration_handler import ConfigurationHandler
from .data_helper import DataHelper as dh
from .akf_parsing_functions_common import AKFCommonParsingFunctions as cf
from akf_corelib.regex_util import RegexUtil as regu
import regex


class AkfParsingFunctionsTablesOne(object):

    def __init__(self, endobject_factory, output_analyzer, dictionary_handler):
        config_handler = ConfigurationHandler(first_init=False)
        self.config = config_handler.get_config()
        self.cpr = ConditionalPrint(self.config.
            PRINT_SEGMENT_PARSER_AKF_FN_TABLES_ONE, self.config.
            PRINT_EXCEPTION_LEVEL, self.config.PRINT_WARNING_LEVEL,
            leading_tag=self.__class__.__name__)
        self.cpr.print('init akf parsing functions tables one')
        self.ef = endobject_factory
        self.output_analyzer = output_analyzer
        self.dictionary_handler = dictionary_handler

    def parse_aktienkurse(self, real_start_tag, content_texts,
        content_lines, feature_lines, segmentation_class):
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = (cf.
            add_check_element(self, content_texts, real_start_tag,
            segmentation_class, element_counter))
        self.output_analyzer.log_segment_information(segmentation_class.
            segment_tag, content_texts, real_start_tag)

    def parse_dividenden(self, real_start_tag, content_texts, content_lines,
        feature_lines, segmentation_class):
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = (cf.
            add_check_element(self, content_texts, real_start_tag,
            segmentation_class, element_counter))
        self.output_analyzer.log_segment_information(segmentation_class.
            segment_tag, content_texts, real_start_tag)

    def parse_dividenden_auf_xyaktien(self, real_start_tag, content_texts,
        content_lines, feature_lines, segmentation_class):
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = (cf.
            add_check_element(self, content_texts, real_start_tag,
            segmentation_class, element_counter))
        self.output_analyzer.log_segment_information(segmentation_class.
            segment_tag, content_texts, real_start_tag)

from akf_corelib.conditional_print import ConditionalPrint
from akf_corelib.configuration_handler import ConfigurationHandler
from .data_helper import DataHelper as dh
from .akf_parsing_functions_common import AKFCommonParsingFunctions as cf
from akf_corelib.regex_util import RegexUtil as regu

import regex


class AkfParsingFunctionsTablesOne(object):

    def __init__(self, endobject_factory, output_analyzer, dictionary_handler):
        config_handler = ConfigurationHandler(first_init=False)

        self.config = config_handler.get_config()
        self.cpr = ConditionalPrint(self.config.PRINT_SEGMENT_PARSER_AKF_FN_TABLES_ONE, self.config.PRINT_EXCEPTION_LEVEL,
                                    self.config.PRINT_WARNING_LEVEL, leading_tag=self.__class__.__name__)

        self.cpr.print("init akf parsing functions tables one")

        self.ef = endobject_factory
        self.output_analyzer = output_analyzer
        self.dictionary_handler = dictionary_handler


    def parse_aktienkurse(self, real_start_tag, content_texts, content_lines, feature_lines, segmentation_class):
        # get basic data
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = \
            cf.add_check_element(self, content_texts, real_start_tag, segmentation_class, element_counter)

        # logme
        self.output_analyzer.log_segment_information(segmentation_class.segment_tag, content_texts, real_start_tag)


    def parse_dividenden(self, real_start_tag, content_texts, content_lines, feature_lines, segmentation_class):
        # get basic data
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = \
            cf.add_check_element(self, content_texts, real_start_tag, segmentation_class, element_counter)

        # logme
        self.output_analyzer.log_segment_information(segmentation_class.segment_tag, content_texts, real_start_tag)


    def parse_dividenden_auf_xyaktien(self, real_start_tag, content_texts, content_lines, feature_lines, segmentation_class):
        # get basic data
        element_counter = 0
        origpost, origpost_red, element_counter, content_texts = \
            cf.add_check_element(self, content_texts, real_start_tag, segmentation_class, element_counter)

        # logme
        self.output_analyzer.log_segment_information(segmentation_class.segment_tag, content_texts, real_start_tag)
