<commit_before>cmake_minimum_required(VERSION 2.8)
project(using_libgit2)
set(LIBGIT2_INCLUDE_DIR "" CACHE TYPE PATH)
set(LIBGIT2_LIBRARY_DIR "" CACHE TYPE PATH)
if(UNIX)
	find_package(CURL REQUIRED)
	find_package(ZLIB REQUIRED)
	find_package(OpenSSL REQUIRED)
endif()
include_directories(${LIBGIT2_INCLUDE_DIR} ${CURL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR})
link_directories(${LIBGIT2_LIBRARY_DIR})
add_executable(using_libgit2 using_libgit2.cpp cdm.hpp)
target_link_libraries(using_libgit2 git2)
if(UNIX)
	target_link_libraries(using_libgit2 pthread ${CURL_LIBRARIES} ${ZLIB_LIBRARIES} ${OPENSSL_LIBRARIES})
endif()
if(WIN32)
	target_link_libraries(using_libgit2 Winhttp Rpcrt4 Crypt32)
endif()<commit_msg>link against rt for libgit2 on Ubuntu 12.04<commit_after>cmake_minimum_required(VERSION 2.8)
project(using_libgit2)
set(LIBGIT2_INCLUDE_DIR "" CACHE TYPE PATH)
set(LIBGIT2_LIBRARY_DIR "" CACHE TYPE PATH)
if(UNIX)
	find_package(CURL REQUIRED)
	find_package(ZLIB REQUIRED)
	find_package(OpenSSL REQUIRED)
endif()
include_directories(${LIBGIT2_INCLUDE_DIR} ${CURL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR})
link_directories(${LIBGIT2_LIBRARY_DIR})
add_executable(using_libgit2 using_libgit2.cpp cdm.hpp)
target_link_libraries(using_libgit2 git2)
if(UNIX)
	target_link_libraries(using_libgit2 pthread ${CURL_LIBRARIES} ${ZLIB_LIBRARIES} ${OPENSSL_LIBRARIES} rt)
endif()
if(WIN32)
	target_link_libraries(using_libgit2 Winhttp Rpcrt4 Crypt32)
endif()
{'fraction_non_alphanumeric': 0.09777478084962914, 'fraction_numerical': 0.027646662171274445, 'mean_word_length': 12.25, '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': '1774564', 'n_tokens_mistral': 642, 'n_tokens_neox': 585, 'n_words': 91}