<commit_before>project(ocr)

cmake_minimum_required(VERSION 2.8)

if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
#set( CMAKE_CXX_COMPILER clang++ )
endif()

find_package(PNG REQUIRED)
message(STATUS "LibPNG package was found with include dir: '${PNG_INCLUDE_DIRS}'")

set( BOOST_COMPONENTS_NEEDED filesystem system serialization)
set(BOOST_MIN_VERSION "1.46.0")
find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS ${BOOST_COMPONENTS_NEEDED} REQUIRED)

set(NeuralNetworkDir ${PROJECT_SOURCE_DIR}/../NeuralNetwork)

link_directories(${Boost_LIBRARY_DIRS})

add_executable(ocr src/main.cpp )

include_directories(
	${Boost_INCLUDE_DIRS}
	${PNG_INCLUDE_DIRS})

target_link_libraries(ocr  
	NeuralNetwork
	${Boost_LIBRARIES}
	${PNG_LIBRARIES}
	)

		      
		      <commit_msg>ocr: disable warning about unsafe parameters for MSVC<commit_after>project(ocr)

cmake_minimum_required(VERSION 2.8)

if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
#set( CMAKE_CXX_COMPILER clang++ )
endif()

find_package(PNG REQUIRED)
message(STATUS "LibPNG package was found with include dir: '${PNG_INCLUDE_DIRS}'")

set( BOOST_COMPONENTS_NEEDED filesystem system serialization)
set(BOOST_MIN_VERSION "1.46.0")
find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS ${BOOST_COMPONENTS_NEEDED} REQUIRED)

set(NeuralNetworkDir ${PROJECT_SOURCE_DIR}/../NeuralNetwork)

link_directories(${Boost_LIBRARY_DIRS})

add_executable(ocr src/main.cpp )

add_definitions(-D_SCL_SECURE_NO_WARNINGS)

include_directories(
	${Boost_INCLUDE_DIRS}
	${PNG_INCLUDE_DIRS})

target_link_libraries(ocr  
	NeuralNetwork
	${Boost_LIBRARIES}
	${PNG_LIBRARIES}
	)

		      
		      
{'fraction_non_alphanumeric': 0.11070998796630566, 'fraction_numerical': 0.009626955475330927, 'mean_word_length': 7.27363184079602, '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': '6474775', 'n_tokens_mistral': 706, 'n_tokens_neox': 637, 'n_words': 102}