<commit_before>cmake_minimum_required(VERSION 3.12)
project (re-bear)

option(CMD_BUILD_TESTING "Enable testing for bearcommander" ON)

# modules:
set ( M_BEARPARSER "parser" )
set ( M_BEARCOMMANDER "commander" )

option( USE_QT5 "Use Qt4 (Qt5 by default)" OFF )

# modules paths:
set (BEARPARSER_INC "${M_BEARPARSER}/include")

set (BEARPARSER_DIR "${CMAKE_SOURCE_DIR}/${M_BEARPARSER}" CACHE PATH "BearParser main path")
set (COMMANDER_DIR "${CMAKE_SOURCE_DIR}/${M_BEARCOMMANDER}" CACHE PATH "BearCommander main path")

# Add bearparser includes:
include_directories( ${BEARPARSER_INC} )

# Add sub-directories
#
# libs

add_subdirectory ( ${M_BEARPARSER} )
#set (PARSER_LIB bearparser CACHE FILE "BearParser library path")

# executables
add_subdirectory( ${M_BEARCOMMANDER} )

# dependencies
add_dependencies(bearcommander bearparser)

# Setup testing
if(CMD_BUILD_TESTING)
	enable_testing()
	
	# 0) does the application run
	add_test (TestRuns ${CMAKE_BINARY_DIR}/bearcommander)
	set_tests_properties(TestRuns PROPERTIES PASS_REGULAR_EXPRESSION "Bearparser")
	IF (NOT WIN32)
		# 1) external tests
		add_test (TestExternal ${CMAKE_SOURCE_DIR}/test.sh ${CMAKE_SOURCE_DIR})
		set_tests_properties(TestExternal PROPERTIES PASS_REGULAR_EXPRESSION "All passed")
	ENDIF()
endif()

<commit_msg>[BUGFIX] Added bearparser lib to CMake<commit_after>cmake_minimum_required(VERSION 3.12)
project (re-bear)

option(CMD_BUILD_TESTING "Enable testing for bearcommander" ON)

# modules:
set ( M_BEARPARSER "parser" )
set ( M_BEARCOMMANDER "commander" )

option( USE_QT5 "Use Qt4 (Qt5 by default)" OFF )

# modules paths:
set (BEARPARSER_INC "${M_BEARPARSER}/include")

set (BEARPARSER_DIR "${CMAKE_SOURCE_DIR}/${M_BEARPARSER}" CACHE PATH "BearParser main path")
set (COMMANDER_DIR "${CMAKE_SOURCE_DIR}/${M_BEARCOMMANDER}" CACHE PATH "BearCommander main path")

# Add bearparser includes:
include_directories( ${BEARPARSER_INC} )

# Add sub-directories
#
# libs

add_subdirectory ( ${M_BEARPARSER} )
set (PARSER_LIB bearparser CACHE FILE "BearParser library path")

# executables
add_subdirectory( ${M_BEARCOMMANDER} )

# dependencies
add_dependencies(bearcommander bearparser)

# Setup testing
if(CMD_BUILD_TESTING)
	enable_testing()
	
	# 0) does the application run
	add_test (TestRuns ${CMAKE_BINARY_DIR}/bearcommander)
	set_tests_properties(TestRuns PROPERTIES PASS_REGULAR_EXPRESSION "Bearparser")
	IF (NOT WIN32)
		# 1) external tests
		add_test (TestExternal ${CMAKE_SOURCE_DIR}/test.sh ${CMAKE_SOURCE_DIR})
		set_tests_properties(TestExternal PROPERTIES PASS_REGULAR_EXPRESSION "All passed")
	ENDIF()
endif()


{'fraction_non_alphanumeric': 0.1033026113671275, 'fraction_numerical': 0.007680491551459293, 'mean_word_length': 7.090062111801243, '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': '6666879', 'n_tokens_mistral': 977, 'n_tokens_neox': 959, 'n_words': 211}