<commit_before>cmake_minimum_required(VERSION 2.6)

project(barevm)

include_directories("${PROJECT_SOURCE_DIR}/src")
include_directories("${PROJECT_SOURCE_DIR}/tests_unit")
add_subdirectory(src)

# build the main barevm executable
add_executable(barevm src/main.cpp)
target_link_libraries(barevm barevm_lib)

# build the unit tests
#add_definitions("-DGTEST_HAS_PTHREAD=0")
add_executable(barevm_unittest
    tests_unit/unittest_basicobjects.cpp
    tests_unit/unittest_environment.cpp
    tests_unit/unittest_example.cpp
    tests_unit/gtest/gtest-all.cc
    tests_unit/gtest/gtest_main.cc
    )
target_link_libraries(barevm_unittest barevm_lib pthread)


<commit_msg>link with pthread only on linux<commit_after>cmake_minimum_required(VERSION 2.6)

project(barevm)

include_directories("${PROJECT_SOURCE_DIR}/src")
include_directories("${PROJECT_SOURCE_DIR}/tests_unit")
add_subdirectory(src)

# build the main barevm executable
add_executable(barevm src/main.cpp)
target_link_libraries(barevm barevm_lib)

# build the unit tests
#add_definitions("-DGTEST_HAS_PTHREAD=0")
add_executable(barevm_unittest
    tests_unit/unittest_basicobjects.cpp
    tests_unit/unittest_environment.cpp
    tests_unit/unittest_example.cpp
    tests_unit/gtest/gtest-all.cc
    tests_unit/gtest/gtest_main.cc
    )
  
if(WIN32)
  set(extra_libs "")
else()
  set(extra_libs pthread)
endif(WIN32)

target_link_libraries(barevm_unittest barevm_lib ${extra_libs})



{'fraction_non_alphanumeric': 0.09065743944636678, 'fraction_numerical': 0.006920415224913495, 'mean_word_length': 6.901639344262295, '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': '7280631', 'n_tokens_mistral': 541, 'n_tokens_neox': 515, 'n_words': 69}