<commit_before>if(CMAKE_COMPILER_IS_GNUCXX)
# Dict.cpp behaves badly if compiled with optimization under g++
SET_SOURCE_FILES_PROPERTIES(Dict.cpp PROPERTIES COMPILE_FLAGS -O0)
endif(CMAKE_COMPILER_IS_GNUCXX)

rdkit_library(RDGeneral 
              Invariant.cpp types.cpp utils.cpp RDLog.cpp Dict.cpp)

rdkit_test(testDict testDict.cpp LINK_LIBRARIES RDGeneral)
<commit_msg>switch RDGeneral to a shared build<commit_after>if(CMAKE_COMPILER_IS_GNUCXX)
# Dict.cpp behaves badly if compiled with optimization under g++
SET_SOURCE_FILES_PROPERTIES(Dict.cpp PROPERTIES COMPILE_FLAGS -O0)
endif(CMAKE_COMPILER_IS_GNUCXX)

rdkit_library(RDGeneral 
              Invariant.cpp types.cpp utils.cpp RDLog.cpp Dict.cpp SHARED)

rdkit_test(testDict testDict.cpp LINK_LIBRARIES RDGeneral)

{'fraction_non_alphanumeric': 0.06443298969072164, 'fraction_numerical': 0.002577319587628866, 'mean_word_length': 6.0, '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': '3840074', 'n_tokens_mistral': 295, 'n_tokens_neox': 275, 'n_words': 56}