<commit_before>cmake_minimum_required (VERSION 2.8)
project (cnn)

# Set the compiler flags for gcc
set(GCC_COVERAGE_COMPILE_FLAGS "-std=c99")
add_definitions(${GCC_COVERAGE_COMPILE_FLAGS})

#  Library Dir Locally
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# Find Source Files and create the core library object
file(GLOB SOURCES src/core/*.c)
add_library(${PROJECT_NAME}-core OBJECT ${SOURCES})


# Merge together to make a .so 
add_library(${PROJECT_NAME} SHARED ${SOURCES})


# Add the include folder
include_directories(src/core)
add_executable(sin_test src/test/sin_test.c)
add_executable(xor_test src/test/xor_test.c)

# Link the math library
target_link_libraries(sin_test m)
target_link_libraries(xor_test m)

# Link the cnn lib
target_link_libraries(sin_test ${PROJECT_NAME})
target_link_libraries(xor_test ${PROJECT_NAME})

# This is the sin-gen binary that generates sin(x) data to send to the neural network
# comment it out if you need to make some data
add_executable(sin-gen src/test/sin-gen.c)
target_link_libraries(sin-gen ${PROJECT_NAME})
target_link_libraries(sin-gen m)

# Add the Test folder
#enable_testing()
#add_test( xor xor_test )
#add_test( sin sin_test )

# Install Library
#install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_BINARY_DIR}/bin)

# Install Library headers 
#file(GLOB HEADERS src/*.h)
#install(FILES ${HEADERS} DESTINATION ${CMAKE_BINARY_DIR}/include)<commit_msg>Last attempt<commit_after>cmake_minimum_required (VERSION 2.8)
project (cnn)

# Set the compiler flags for gcc
set(GCC_COVERAGE_COMPILE_FLAGS "-std=c99")
add_definitions(${GCC_COVERAGE_COMPILE_FLAGS})

#  Library Dir Locally
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# Find Source Files and create the core library object
file(GLOB SOURCES ${PROJECT_SOURCE_DIR}/src/core/*.c)
add_library(${PROJECT_NAME}-core OBJECT ${SOURCES})


# Merge together to make a .so 
add_library(${PROJECT_NAME} SHARED ${SOURCES})


# Add the include folder
include_directories(src/core)
add_executable(sin_test ${PROJECT_SOURCE_DIR}/src/test/sin_test.c)
add_executable(xor_test ${PROJECT_SOURCE_DIR}/src/test/xor_test.c)

# Link the math library
target_link_libraries(sin_test m)
target_link_libraries(xor_test m)

# Link the cnn lib
target_link_libraries(sin_test ${PROJECT_NAME})
target_link_libraries(xor_test ${PROJECT_NAME})

# This is the sin-gen binary that generates sin(x) data to send to the neural network
# comment it out if you need to make some data
add_executable(sin-gen ${PROJECT_SOURCE_DIR}/src/test/sin-gen.c)
target_link_libraries(sin-gen ${PROJECT_NAME})
target_link_libraries(sin-gen m)

# Add the Test folder
#enable_testing()
#add_test( xor xor_test )
#add_test( sin sin_test )

# Install Library
#install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_BINARY_DIR}/bin)

# Install Library headers 
#file(GLOB HEADERS src/*.h)
#install(FILES ${HEADERS} DESTINATION ${CMAKE_BINARY_DIR}/include)
{'fraction_non_alphanumeric': 0.10212765957446808, 'fraction_numerical': 0.002618657937806874, 'mean_word_length': 7.127659574468085, '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': '5123887', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1090, 'n_words': 256}