<commit_before>cmake_minimum_required(VERSION 2.6)
include_directories(
    qlibc
    ${PROJECT_SOURCE_DIR}/deps/zookeeper/_install/include/zookeeper
    )

aux_source_directory(. DIR_SRCS)
aux_source_directory(qlibc DIR_SRCS)

set_source_files_properties(qlibc/md5.c PROPERTIES LANGUAGE CXX )
set_source_files_properties(qlibc/qhash.c PROPERTIES LANGUAGE CXX )

add_library(qconf_zk SHARED ${DIR_SRCS})
add_library(qconf_zk_static STATIC ${DIR_SRCS})

#build libzookeeper
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
        patch -f -p1 -i zookeeper-3.4.5.patch)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND ./configure
    --prefix=${PROJECT_SOURCE_DIR}/deps/zookeeper/_install)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
    make)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
    make install)
execute_process(WORKING_DIRECTORY
    ${PROJECT_SOURCE_DIR}/deps/zookeeper/_install COMMAND
    ar x libzookeeper_mt.a)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
    cp src/zk_adaptor.h src/zk_hashtable.h _install/include/zookeeper)

# link libpthread
find_package (Threads)
target_link_libraries (qconf_agent ${CMAKE_THREAD_LIBS_INIT})

# link static libzookeeper_mt
target_link_libraries(qconf_zk
    ${PROJECT_SOURCE_DIR}/deps/zookeeper/_install/lib/libzookeeper_mt.a)
target_link_libraries(qconf_zk_static
    ${PROJECT_SOURCE_DIR}/deps/zookeeper/_install/lib/libzookeeper_mt.a)
<commit_msg>1)Changing:modify cmake script for manager<commit_after>cmake_minimum_required(VERSION 2.6)

#build libzookeeper
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
        patch -f -p1 -i zookeeper-3.4.5.patch)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND ./configure
    --prefix=${PROJECT_SOURCE_DIR}/deps/zookeeper/_install)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
    make)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
    make install)
execute_process(WORKING_DIRECTORY
    ${PROJECT_SOURCE_DIR}/deps/zookeeper/_install/lib COMMAND
    ar x libzookeeper_mt.a)
execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/deps/zookeeper COMMAND
    cp src/zk_adaptor.h src/zk_hashtable.h _install/include/zookeeper)
include_directories(
    qlibc
    ${PROJECT_SOURCE_DIR}/deps/zookeeper/_install/include/zookeeper
    )

aux_source_directory(. DIR_SRCS)
aux_source_directory(qlibc DIR_SRCS)

set_source_files_properties(qlibc/md5.c PROPERTIES LANGUAGE CXX )
set_source_files_properties(qlibc/qhash.c PROPERTIES LANGUAGE CXX )

file(GLOB ZK_OBJ_FILE
        "${PROJECT_SOURCE_DIR}/deps/zookeeper/_install/lib/*.o"
    )
message(${ZK_OBJ_FILE})

add_definitions(${DRIVER_COMPILE_FLAGS})
add_library(qconf_zk_static STATIC ${DIR_SRCS}
    ${ZK_OBJ_FILE})
add_library(qconf_zk SHARED ${DIR_SRCS})

# link libpthread
find_package (Threads)
target_link_libraries (qconf_zk ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (qconf_zk_static ${CMAKE_THREAD_LIBS_INIT})

# link static libzookeeper_mt
target_link_libraries(qconf_zk
    ${PROJECT_SOURCE_DIR}/deps/zookeeper/_install/lib/libzookeeper_mt.a)

{'fraction_non_alphanumeric': 0.09157064887810794, 'fraction_numerical': 0.004548211036992117, 'mean_word_length': 6.949397590361446, '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': '6791914', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1212, 'n_words': 159}