<commit_before>if (ENABLE_LOG4CXX AND Log4cxx_FOUND)
    set(xesamquerybuildertest_LIBS ${xesamquerybuildertest_LIBS}
                                    ${LOG4CXX_LIBRARIES})
    set (INC_DIR ${INC_DIR} ${LOG4CXX_INCLUDE_DIR})
endif (ENABLE_LOG4CXX AND Log4cxx_FOUND)

include_directories (${LIBXML2_INCLUDE_DIR}
                     ../
                     ${strigi_SOURCE_DIR}/src/daemon
                     ${strigi_BINARY_DIR}/src/streams
                     ${INC_DIR})

if (BISON)
add_custom_command (OUTPUT xesam_ul_parser.cc
                    PRE_BUILD
                    COMMAND bison -t -o xesam_ul_parser.cc -d xesam_ul_parser.yy
                    DEPENDS xesam_ul_parser.yy
                    WORKING_DIRECTORY ${strigi_SOURCE_DIR}/src/streamanalyzer/xesam/
                    )
endif (BISON)

set (strigi_xesam_SRCS XesamQLParser.cc XesamQueryBuilder.cc
            StrigiQueryBuilder.cc xesam_ul_driver.cc
            xesam_ul_scanner.cpp xesam_ul_file_scanner.cpp xesam_ul_string_scanner.cpp 
            xesam_ul_parser.cc xesam2strigi.cpp)

add_library (strigi_xesam ${strigi_xesam_SRCS})
target_link_libraries(strigi_xesam ${LIBXML2_LIBRARIES} streamanalyzer)

# no getopt on win32
if(NOT WIN32)
  add_executable (xesamquerybuildertest test.cpp ../query.cpp)
  target_link_libraries(xesamquerybuildertest strigi_xesam
                        ${xesamquerybuildertest_LIBS})
endif(NOT WIN32)<commit_msg>fixed log4cxx handling during xesam parser building<commit_after>if (ENABLE_LOG4CXX AND Log4cxx_FOUND)
    set(xesam_LIBS ${xesam_LIBS} ${LOG4CXX_LIBRARIES})
    set (INC_DIR ${INC_DIR} ${LOG4CXX_INCLUDE_DIR})
    add_definitions(-DHAVE_LOG4CXX)
endif (ENABLE_LOG4CXX AND Log4cxx_FOUND)

include_directories (${LIBXML2_INCLUDE_DIR}
                     ../
                     ${strigi_SOURCE_DIR}/src/daemon
                     ${strigi_BINARY_DIR}/src/streams
                     ${INC_DIR})

if (BISON)
add_custom_command (OUTPUT xesam_ul_parser.cc
                    PRE_BUILD
                    COMMAND bison -t -o xesam_ul_parser.cc -d xesam_ul_parser.yy
                    DEPENDS xesam_ul_parser.yy
                    WORKING_DIRECTORY ${strigi_SOURCE_DIR}/src/streamanalyzer/xesam/
                    )
endif (BISON)

set (strigi_xesam_SRCS XesamQLParser.cc XesamQueryBuilder.cc
            StrigiQueryBuilder.cc xesam_ul_driver.cc
            xesam_ul_scanner.cpp xesam_ul_file_scanner.cpp xesam_ul_string_scanner.cpp 
            xesam_ul_parser.cc xesam2strigi.cpp)

add_library (strigi_xesam ${strigi_xesam_SRCS})
target_link_libraries(strigi_xesam ${LIBXML2_LIBRARIES} streamanalyzer ${xesam_LIBS})

# no getopt on win32
if(NOT WIN32)
  add_executable (xesamquerybuildertest test.cpp ../query.cpp)
  target_link_libraries(xesamquerybuildertest strigi_xesam ${xesam_LIBS})
endif(NOT WIN32)
{'fraction_non_alphanumeric': 0.07394366197183098, 'fraction_numerical': 0.011267605633802818, 'mean_word_length': 2.738157894736842, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1546149', 'n_tokens_mistral': 1070, 'n_tokens_neox': 993, 'n_words': 149}