<commit_before>#--------------------------------------------------------------------
# Inviwo Python3 Module
ivw_module(Python3)

set(Python_ADDITIONAL_VERSIONS 3.5)
find_package(PythonLibs 3)

if (PYTHONLIBS_FOUND)
    ivw_add_definition(IVW_PYTHON_AVAILABLE)
endif()

ivw_include_directories(${PYTHON_INCLUDE_DIR})
get_filename_component(PYTHON_LIBRARY_DIR "${PYTHON_LIBRARY}" PATH)
ivw_link_directories(${PYTHON_LIBRARY_DIR})

if(PYTHON_DEBUG_LIBRARY)
    add_dependency_libs_to_module("${PYTHON_DEBUG_LIBRARY}")
    set(IVW_PYTHON_LINK_DEBUG ON CACHE BOOL "")
endif()

if(IVW_PYTHON_LINK_DEBUG )
    ivw_add_definition(IVW_PYTHON_LINK_DEBUG)
endif()
    


add_dependency_libs_to_module("${PYTHON_LIBRARY_RELEASE}")


#--------------------------------------------------------------------<commit_msg>Python3: CMake: fix for linking debug/release libraries (inviwo/inviwo-dev#982)<commit_after>#--------------------------------------------------------------------
# Inviwo Python3 Module
ivw_module(Python3)

set(Python_ADDITIONAL_VERSIONS 3.5)
find_package(PythonLibs 3)

if (PYTHONLIBS_FOUND)
    ivw_add_definition(IVW_PYTHON_AVAILABLE)
endif()

ivw_include_directories(${PYTHON_INCLUDE_DIR})
get_filename_component(PYTHON_LIBRARY_DIR "${PYTHON_LIBRARY}" PATH)
ivw_link_directories(${PYTHON_LIBRARY_DIR})

if(PYTHON_DEBUG_LIBRARY)
    ivw_add_definition(IVW_PYTHON_LINK_DEBUG)
endif()

add_dependency_libs_to_module(${PYTHON_LIBRARIES})




#--------------------------------------------------------------------
{'fraction_non_alphanumeric': 0.2580858085808581, 'fraction_numerical': 0.009240924092409241, 'mean_word_length': 2.917312661498708, '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': '6588405', 'n_tokens_mistral': 558, 'n_tokens_neox': 515, 'n_words': 58}