<commit_before>include_directories( ${PERL_INCLUDE_PATH} ${CMAKE_SOURCE_DIR}/libproxy )
link_directories(${LIBPROXY_LIBRARY_DIRS})

# Run doxsubpp.pl to run xsubpp on Libproxy.xs
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Libproxy.c
                   COMMAND ${PERL_EXECUTABLE} ARGS ${CMAKE_CURRENT_SOURCE_DIR}/doxsubpp.pl
                           ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.xs ${CMAKE_CURRENT_BINARY_DIR}/Libproxy.c
                   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.xs libproxy
                   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

set(Libproxy_LIB_SRCS Libproxy.c)

set(CMAKE_C_COMPILER ${CMAKE_CXX_COMPILER})
set(CMAKE_C_FLAGS ${PERL_CXX_FLAGS} )
<commit_msg>issue 144: do not mix CFLAGS and CXXFLAGS. Actually: there is no need to mess around with compiler used at all.<commit_after>include_directories( ${PERL_INCLUDE_PATH} ${CMAKE_SOURCE_DIR}/libproxy )
link_directories(${LIBPROXY_LIBRARY_DIRS})

# Run doxsubpp.pl to run xsubpp on Libproxy.xs
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Libproxy.c
                   COMMAND ${PERL_EXECUTABLE} ARGS ${CMAKE_CURRENT_SOURCE_DIR}/doxsubpp.pl
                           ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.xs ${CMAKE_CURRENT_BINARY_DIR}/Libproxy.c
                   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.xs libproxy
                   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

set(Libproxy_LIB_SRCS Libproxy.c)

{'fraction_non_alphanumeric': 0.08924949290060852, 'fraction_numerical': 0.002028397565922921, 'mean_word_length': 4.156794425087108, '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': '6118967', 'n_tokens_mistral': 541, 'n_tokens_neox': 504, 'n_words': 78}