<commit_before>cmake_minimum_required(VERSION 2.6) 
project(luacronkite C)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

if(APPLE)
    set(CMAKE_OSX_ARCHITECTURES x86_64)
endif(APPLE)

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING
      "Choose the type: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif(NOT CMAKE_BUILD_TYPE)

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../../cmake/modules ${CMAKE_MODULE_PATH})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../src)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../src)

find_package(Lua51)
include_directories(${LUA_INCLUDE_DIR})

# build cronkite cli binary
add_library(luacronkite SHARED luacronkite.c)
target_link_libraries(luacronkite ${LUA_LIBRARIES} cronkite)
set_target_properties(luacronkite PROPERTIES
    OUTPUT_NAME luacronkite PREFIX "")
<commit_msg>much better building<commit_after>set(CMAKE_INCLUDE_CURRENT_DIR ON)

if(APPLE)
    set(CMAKE_OSX_ARCHITECTURES x86_64)
endif(APPLE)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../src)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../src)

find_package(Lua51)
include_directories(${LUA_INCLUDE_DIR})

# build cronkite cli binary
add_library(luacronkite SHARED luacronkite.c)
target_link_libraries(luacronkite ${LUA_LIBRARIES} cronkite)
set_target_properties(luacronkite PROPERTIES
    OUTPUT_NAME luacronkite PREFIX "" SUFFIX ".so")

{'fraction_non_alphanumeric': 0.1037463976945245, 'fraction_numerical': 0.010086455331412104, 'mean_word_length': 7.735849056603773, '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': '7340108', 'n_tokens_mistral': 572, 'n_tokens_neox': 526, 'n_words': 78}