<commit_before>cmake_minimum_required(VERSION 3.6.1)
project(test-lang)

subdirs(src tests)

set(TCLAP_PATH ${PROJECT_SOURCE_DIR}/libs/tclap-1.2.1)
set(GTEST_PATH ${PROJECT_SOURCE_DIR}/libs/googletest-release-1.7.0)
set(RAPIDXML_PATH ${PROJECT_SOURCE_DIR}/libs/rapidxml-1.13)
set(TERMCOLOR_PATH ${PROJECT_SOURCE_DIR}/libs/termcolor)

include(ExternalProject)

set(GTEST_PREFIX ${PROJECT_SOURCE_DIR}/libs/googletest)
ExternalProject_Add(
  googletest
  GIT_REPOSITORY https://github.com/google/googletest.git
  GIT_TAG release-1.7.0
  PREFIX ${GTEST_PREFIX}
  UPDATE_COMMAND ""
  INSTALL_COMMAND ""
)
include_directories(SYSTEM ${GTEST_PREFIX}/src/googletest/include)
link_directories(${GTEST_PREFIX}/src/googletest-build)

set(CMAKE_CXX_FLAGS "-std=c++14 -Wall -Wextra")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

find_package(LLVM)
if(NOT LLVM_FOUND)
  message(FATAL_ERROR "LLVM package can't be found. Set CMAKE_PREFIX_PATH variable to LLVM's installation prefix.")
endif()
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
llvm_map_components_to_libnames(REQ_LLVM_LIBRARIES support core)

include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/libs)
include_directories(SYSTEM ${TCLAP_PATH}/include)<commit_msg>Remove old var in cmake<commit_after>cmake_minimum_required(VERSION 3.6.1)
project(test-lang)

subdirs(src tests)

set(TCLAP_PATH ${PROJECT_SOURCE_DIR}/libs/tclap-1.2.1)
set(RAPIDXML_PATH ${PROJECT_SOURCE_DIR}/libs/rapidxml-1.13)
set(TERMCOLOR_PATH ${PROJECT_SOURCE_DIR}/libs/termcolor)

include(ExternalProject)

set(GTEST_PREFIX ${PROJECT_SOURCE_DIR}/libs/googletest)
ExternalProject_Add(
  googletest
  GIT_REPOSITORY https://github.com/google/googletest.git
  GIT_TAG release-1.7.0
  PREFIX ${GTEST_PREFIX}
  UPDATE_COMMAND ""
  INSTALL_COMMAND ""
)
include_directories(SYSTEM ${GTEST_PREFIX}/src/googletest/include)
link_directories(${GTEST_PREFIX}/src/googletest-build)

set(CMAKE_CXX_FLAGS "-std=c++14 -Wall -Wextra")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

find_package(LLVM)
if(NOT LLVM_FOUND)
  message(FATAL_ERROR "LLVM package can't be found. Set CMAKE_PREFIX_PATH variable to LLVM's installation prefix.")
endif()
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
llvm_map_components_to_libnames(REQ_LLVM_LIBRARIES support core)

include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/libs)
include_directories(SYSTEM ${TCLAP_PATH}/include)
{'fraction_non_alphanumeric': 0.11550509005481598, 'fraction_numerical': 0.012137823022709476, 'mean_word_length': 8.864864864864865, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1146036', 'n_tokens_mistral': 1011, 'n_tokens_neox': 955, 'n_words': 125}