<commit_before>cmake_minimum_required(VERSION 2.8)
project(csafestring)

set(SOURCE_FILES
        csafestring.c csafestring.h)

#set(CMAKE_VERBOSE_MAKEFILE on)

set(CMAKE_C_FLAGS  "${CMAKE_C_FLAGS} -Wall -O3")

if ( NOT TARGET csafestring) 
    add_library(csafestring ${SOURCE_FILES})
    target_link_libraries(csafestring)
    install(TARGETS csafestring DESTINATION lib)
    install(FILES csafestring.h DESTINATION include)
endif()

enable_testing()
add_subdirectory(test)
add_subdirectory(example)
<commit_msg>In which our hero added to option to PIC the code<commit_after>cmake_minimum_required(VERSION 2.8)
project(csafestring)

set(SOURCE_FILES
        csafestring.c csafestring.h)

#set(CMAKE_VERBOSE_MAKEFILE on)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3")

if (NOT nofpic)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -fPIC")
endif ()

if (NOT TARGET csafestring)
    add_library(csafestring ${SOURCE_FILES})
    target_link_libraries(csafestring)
    install(TARGETS csafestring DESTINATION lib)
    install(FILES csafestring.h DESTINATION include)
endif ()

enable_testing()
add_subdirectory(test)
add_subdirectory(example)

{'fraction_non_alphanumeric': 0.0925764192139738, 'fraction_numerical': 0.00611353711790393, 'mean_word_length': 5.987804878048781, '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': '293427', 'n_tokens_mistral': 453, 'n_tokens_neox': 432, 'n_words': 81}