<commit_before>cmake_minimum_required(VERSION 2.8.9)

project(heartbeats-simple-classic)
set(PROJECT_VERSION 0.1.0)


# Dependencies

# Use OpenMP for timing
find_package(OpenMP REQUIRED)

find_package(PkgConfig REQUIRED)
pkg_check_modules(HBS REQUIRED heartbeats-simple)
pkg_check_modules(ENERGYMON REQUIRED energymon-default)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS} -Wall")

include_directories(${PROJECT_SOURCE_DIR}/inc ${HBS_INCLUDE_DIRS} ${ENERGYMON_INCLUDE_DIRS})

# force fPIC unless overridden (not automatically forwarded through OBJECT libraries when BUILD_SHARED_LIBS is set)
if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
  set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
endif()


# Libraries

add_library(hbsc OBJECT src/hbs-classic.c)

add_library(hbsc-acc OBJECT src/hbs-classic.c)
set_target_properties(hbsc-acc PROPERTIES COMPILE_DEFINITIONS "HEARTBEAT_MODE_ACC")

add_library(hbsc-pow OBJECT src/hbs-classic.c)<commit_msg>Include cflags from dependencies just in case<commit_after>cmake_minimum_required(VERSION 2.8.9)

project(heartbeats-simple-classic)
set(PROJECT_VERSION 0.1.0)


# Dependencies

# Use OpenMP for timing
find_package(OpenMP REQUIRED)

find_package(PkgConfig REQUIRED)
pkg_check_modules(HBS REQUIRED heartbeats-simple)
pkg_check_modules(ENERGYMON REQUIRED energymon-default)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS} ${HBS_CFLAGS_OTHER} ${ENERGYMON_CFLAGS_OTHER} -Wall")

include_directories(${PROJECT_SOURCE_DIR}/inc ${HBS_INCLUDE_DIRS} ${ENERGYMON_INCLUDE_DIRS})

# force fPIC unless overridden (not automatically forwarded through OBJECT libraries when BUILD_SHARED_LIBS is set)
if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
  set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
endif()


# Libraries

add_library(hbsc OBJECT src/hbs-classic.c)

add_library(hbsc-acc OBJECT src/hbs-classic.c)
set_target_properties(hbsc-acc PROPERTIES COMPILE_DEFINITIONS "HEARTBEAT_MODE_ACC")

add_library(hbsc-pow OBJECT src/hbs-classic.c)
{'fraction_non_alphanumeric': 0.08577194752774975, 'fraction_numerical': 0.006054490413723511, 'mean_word_length': 8.309859154929578, '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': '2074807', 'n_tokens_mistral': 803, 'n_tokens_neox': 741, 'n_words': 131}