<commit_before>############################################################################
# CMakeLists.txt file for building ROOT core/base package
############################################################################

if(testing)
  # FIXME: The tests in core should require only libCore. OTOH, TQObjectTests uses the interpreter to register the class.
  # This means that if we run make CoreBaseTests the executable wouldn't be runnable because it requires libCling and
  # onepcm targets to be built.
  ROOT_ADD_UNITTEST_SUBDIRECTORY(test LIBRARIES Core Cling RIO)
endif()

ROOT_GLOB_HEADERS(Base_dict_headers ${CMAKE_CURRENT_SOURCE_DIR}/inc/T*.h
                                    ${CMAKE_CURRENT_SOURCE_DIR}/inc/GuiTypes.h 
                                    ${CMAKE_CURRENT_SOURCE_DIR}/inc/KeySymbols.h 
                                    ${CMAKE_CURRENT_SOURCE_DIR}/inc/Buttons.h)
if(root7)
    set(root7src v7/src/*.cxx)
    ROOT_GLOB_HEADERS(Base_v7_dict_headers ${CMAKE_CURRENT_SOURCE_DIR}/v7/inc/ROOT/T*.hxx)
endif()
ROOT_GLOB_SOURCES(sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/src src/*.cxx ${root7src})

ROOT_GENERATE_DICTIONARY(G__Core
                         ${Base_dict_headers}
                         ${Base_v7_dict_headers}
                         ${Clib_dict_headers}<commit_msg>[modules] Add MessageTypes.h to the dictionary/modulemap file.<commit_after>############################################################################
# CMakeLists.txt file for building ROOT core/base package
############################################################################

if(testing)
  # FIXME: The tests in core should require only libCore. OTOH, TQObjectTests uses the interpreter to register the class.
  # This means that if we run make CoreBaseTests the executable wouldn't be runnable because it requires libCling and
  # onepcm targets to be built.
  ROOT_ADD_UNITTEST_SUBDIRECTORY(test LIBRARIES Core Cling RIO)
endif()

ROOT_GLOB_HEADERS(Base_dict_headers ${CMAKE_CURRENT_SOURCE_DIR}/inc/T*.h
                                    ${CMAKE_CURRENT_SOURCE_DIR}/inc/GuiTypes.h
                                    ${CMAKE_CURRENT_SOURCE_DIR}/inc/MessageTypes.h
                                    ${CMAKE_CURRENT_SOURCE_DIR}/inc/KeySymbols.h 
                                    ${CMAKE_CURRENT_SOURCE_DIR}/inc/Buttons.h)
if(root7)
    set(root7src v7/src/*.cxx)
    ROOT_GLOB_HEADERS(Base_v7_dict_headers ${CMAKE_CURRENT_SOURCE_DIR}/v7/inc/ROOT/T*.hxx)
endif()
ROOT_GLOB_SOURCES(sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/src src/*.cxx ${root7src})

ROOT_GENERATE_DICTIONARY(G__Core
                         ${Base_dict_headers}
                         ${Base_v7_dict_headers}
                         ${Clib_dict_headers}
{'fraction_non_alphanumeric': 0.18000724375226368, 'fraction_numerical': 0.0050706265845708075, 'mean_word_length': 3.1040118870728084, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2609194', 'n_tokens_mistral': 827, 'n_tokens_neox': 769, 'n_words': 158}