<commit_before>
# create a version of project name with underscores instead of dashes
string(REPLACE "-" "_" UNDERSCORE_PROJECT_NAME ${PROJECT_NAME})

# create an uppercase version the above
string(TOUPPER ${UNDERSCORE_PROJECT_NAME} UPPERCASE_PROJECT_NAME)

find_package (Git)
if (GIT_FOUND)
      message("git found: ${GIT_EXECUTABLE} in version ${GIT_VERSION_STRING}")
endif (GIT_FOUND)

execute_process(
    COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
    RESULT_VARIABLE RESULT
    OUTPUT_VARIABLE GITBRANCH)

string(REPLACE "\n" "" GITBRANCH ${GITBRANCH})

set(LIBRARY_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_RELEASE}.${PROJECT_VERSION_BUILD}-${GITBRANCH}")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules")

set(_version_dir ${PROJECT_NAME}-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})<commit_msg>Fixed cmake configuration error.<commit_after>
# create a version of project name with underscores instead of dashes
string(REPLACE "-" "_" UNDERSCORE_PROJECT_NAME ${PROJECT_NAME})

# create an uppercase version the above
string(TOUPPER ${UNDERSCORE_PROJECT_NAME} UPPERCASE_PROJECT_NAME)

find_package (Git)
execute_process(
    COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
	WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    RESULT_VARIABLE RESULT
    OUTPUT_VARIABLE GITBRANCH)

string(REPLACE "\n" "" GITBRANCH ${GITBRANCH})

set(LIBRARY_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_RELEASE}.${PROJECT_VERSION_BUILD}-${GITBRANCH}")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules")

set(_version_dir ${PROJECT_NAME}-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
{'fraction_non_alphanumeric': 0.11330621731551424, 'fraction_numerical': 0.0, 'mean_word_length': 8.11111111111111, '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': '7278509', 'n_tokens_mistral': 638, 'n_tokens_neox': 622, 'n_words': 108}