<commit_before>cmake_minimum_required(VERSION 3.4 FATAL_ERROR)
project(periodic)

find_package(ROOT REQUIRED)

file(GLOB DBsources RELATIVE ${CMAKE_SOURCE_DIR} Ndb*.cxx)
file(GLOB XSsources RELATIVE ${CMAKE_SOURCE_DIR} XS*.cxx)
file(GLOB headers RELATIVE ${CMAKE_SOURCE_DIR} *.h)
list(REMOVE_ITEM headers NdbLinkDef.h)

include(${ROOT_USE_FILE})
ROOT_GENERATE_DICTIONARY(G__NdbDict ${headers} LINKDEF NdbLinkDef.h)

#---Create a shared library with geneated dictionary

add_library(NdbDict SHARED ${DBsources} G__NdbDict.cxx)

# Do not add -Dname_EXPORTS to the command-line when building files in this
# target. Doing so is actively harmful for the modules build because it<commit_msg>[periodic] Need to look at source dir to find headers!<commit_after>cmake_minimum_required(VERSION 3.4 FATAL_ERROR)
project(periodic)

find_package(ROOT REQUIRED)

file(GLOB DBsources RELATIVE ${CMAKE_SOURCE_DIR} Ndb*.cxx)
file(GLOB XSsources RELATIVE ${CMAKE_SOURCE_DIR} XS*.cxx)
file(GLOB headers RELATIVE ${CMAKE_SOURCE_DIR} *.h)
list(REMOVE_ITEM headers NdbLinkDef.h)

include(${ROOT_USE_FILE})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
ROOT_GENERATE_DICTIONARY(G__NdbDict ${headers} LINKDEF NdbLinkDef.h)

#---Create a shared library with geneated dictionary

add_library(NdbDict SHARED ${DBsources} G__NdbDict.cxx)

# Do not add -Dname_EXPORTS to the command-line when building files in this
# target. Doing so is actively harmful for the modules build because it
{'fraction_non_alphanumeric': 0.08755129958960328, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 7.173184357541899, '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': '7433853', 'n_tokens_mistral': 535, 'n_tokens_neox': 501, 'n_words': 137}