<commit_before>set(SRC
    common.cpp iterator.cpp qsort.cpp
    lobatto.cpp legendre.cpp
    discrete.cpp solution.cpp mesh.cpp
    linearizer.cpp quad_std.cpp transforms.cpp
    adapt.cpp graph.cpp h1_polys.cpp
    )

add_definitions(-DCOMPLEX=std::complex<double>)

include_directories(${hermes1d_SOURCE_DIR}/hermes_common/)
include_directories(${PYTHON_INCLUDE_PATH} ${NUMPY_INCLUDE_PATH})

add_library(${HERMES_BIN} SHARED ${SRC})
if(DEBUG)
    set_target_properties(hermes1d-debug PROPERTIES COMPILE_FLAGS
        ${CMAKE_CXX_FLAGS_DEBUG})
endif(DEBUG)
if(RELEASE)
    set_target_properties(hermes1d PROPERTIES COMPILE_FLAGS
        ${CMAKE_CXX_FLAGS_RELEASE})
endif(RELEASE)<commit_msg>link hermes_bin with hermes_common<commit_after>set(SRC
    common.cpp iterator.cpp qsort.cpp
    lobatto.cpp legendre.cpp
    discrete.cpp solution.cpp mesh.cpp
    linearizer.cpp quad_std.cpp transforms.cpp
    adapt.cpp graph.cpp h1_polys.cpp
    )

add_definitions(-DCOMPLEX=std::complex<double>)

include_directories(${hermes1d_SOURCE_DIR}/hermes_common/)
include_directories(${PYTHON_INCLUDE_PATH} ${NUMPY_INCLUDE_PATH})

add_library(${HERMES_BIN} SHARED ${SRC})
if(DEBUG)
    set_target_properties(hermes1d-debug PROPERTIES COMPILE_FLAGS
        ${CMAKE_CXX_FLAGS_DEBUG})
endif(DEBUG)
if(RELEASE)
    set_target_properties(hermes1d PROPERTIES COMPILE_FLAGS
        ${CMAKE_CXX_FLAGS_RELEASE})
endif(RELEASE)

target_link_libraries(${HERMES_BIN} hermes_common)
{'fraction_non_alphanumeric': 0.09801233721727211, 'fraction_numerical': 0.0054832076764907475, 'mean_word_length': 5.854460093896714, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7276215', 'n_tokens_mistral': 541, 'n_tokens_neox': 523, 'n_words': 72}