<commit_before># Copyright (c) 2016 0xFAB - <NAME>
cmake_minimum_required(VERSION 2.8.7)

#set project name
project(XcpLight)

# config
enable_language(C)
enable_testing()

# compiler flags
set(CMAKE_C_FLAGS "-O2 -Wall -m32 -Werror")
set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})

# add include include directories
include_directories(source)
include_directories(externals/Unity/src)

# add XcpLight
include_directories(XcpLight PUBLIC)
add_library(XcpLight STATIC source/XcpLight.c source/XcpLight_config.c source/XcpLightMem.c)

# add Unity
add_subdirectory(externals)

# tests setup
include_directories(tests)

macro (Add_XcpLight_Test NAME TIMEOUT)
    add_executable(${NAME} tests/${NAME}.c)
    target_link_libraries(${NAME} XcpLight Unity)
    add_test(${NAME} ${NAME})
    set_tests_properties(${NAME} PROPERTIES TIMEOUT ${TIMEOUT})
endmacro (Add_XcpLight_Test)

# add tests
Add_XcpLight_Test(BasicCommands     5)
Add_XcpLight_Test(LoginProcedure    5)
Add_XcpLight_Test(Timestamp         5)
Add_XcpLight_Test(MemoryAccess      5)
Add_XcpLight_Test(DataAquisition    5)
Add_XcpLight_Test(MemoryManagement  5)<commit_msg>Reordered tests for better debugging of the daq processor ;)<commit_after># Copyright (c) 2016 0xFAB - <NAME>
cmake_minimum_required(VERSION 2.8.7)

#set project name
project(XcpLight)

# config
enable_language(C)
enable_testing()

# compiler flags
set(CMAKE_C_FLAGS "-O2 -Wall -m32 -Werror")
set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})

# add include include directories
include_directories(source)
include_directories(externals/Unity/src)

# add XcpLight
include_directories(XcpLight PUBLIC)
add_library(XcpLight STATIC source/XcpLight.c source/XcpLight_config.c source/XcpLightMem.c)

# add Unity
add_subdirectory(externals)

# tests setup
include_directories(tests)

macro (Add_XcpLight_Test NAME TIMEOUT)
    add_executable(${NAME} tests/${NAME}.c)
    target_link_libraries(${NAME} XcpLight Unity)
    add_test(${NAME} ${NAME})
    set_tests_properties(${NAME} PROPERTIES TIMEOUT ${TIMEOUT})
endmacro (Add_XcpLight_Test)

# add tests
Add_XcpLight_Test(BasicCommands     5)
Add_XcpLight_Test(LoginProcedure    5)
Add_XcpLight_Test(Timestamp         5)
Add_XcpLight_Test(MemoryAccess      5)
Add_XcpLight_Test(MemoryManagement  5)
Add_XcpLight_Test(DataAquisition    5)
{'fraction_non_alphanumeric': 0.0944468736335811, 'fraction_numerical': 0.014866637516397026, 'mean_word_length': 6.428571428571429, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3984273', 'n_tokens_mistral': 856, 'n_tokens_neox': 810, 'n_words': 160}