<commit_before>project(csol C)

cmake_minimum_required(VERSION 2.8)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_C_FLAGS "--std=c89 -Wall -pedantic -DUSE_GETOPT")

configure_file(csolrc csolrc COPYONLY)
file(COPY games DESTINATION .)
file(COPY themes DESTINATION .)

set(CURSES_NEED_WIDE TRUE)
find_package(Curses REQUIRED)
include_directories("$(CURSES_INCLUDE_DIR)")

include_directories(${CMAKE_BINARY_DIR}/src src)

file(GLOB SRC_LIST src/*.c)

add_executable(csol ${SRC_LIST} csolrc)

target_link_libraries(csol ${CURSES_LIBRARIES})

install(TARGETS csol DESTINATION bin COMPONENT binaries)
install(FILES "${CMAKE_BINARY_DIR}/csolrc" DESTINATION /etc/xdg/csol COMPONENT config)
install(DIRECTORY "${CMAKE_BINARY_DIR}/themes" DESTINATION /etc/xdg/csol COMPONENT config)
install(DIRECTORY "${CMAKE_BINARY_DIR}/games" DESTINATION /etc/xdg/csol COMPONENT config)
install(FILES "${CMAKE_BINARY_DIR}/doc/csol.1" DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1)
<commit_msg>Fix cmake deprecation warning.<commit_after>project(csol C)

cmake_minimum_required(VERSION 2.8.12)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_C_FLAGS "--std=c89 -Wall -pedantic -DUSE_GETOPT")

configure_file(csolrc csolrc COPYONLY)
file(COPY games DESTINATION .)
file(COPY themes DESTINATION .)

set(CURSES_NEED_WIDE TRUE)
find_package(Curses REQUIRED)
include_directories("$(CURSES_INCLUDE_DIR)")

include_directories(${CMAKE_BINARY_DIR}/src src)

file(GLOB SRC_LIST src/*.c)

add_executable(csol ${SRC_LIST} csolrc)

target_link_libraries(csol ${CURSES_LIBRARIES})

install(TARGETS csol DESTINATION bin COMPONENT binaries)
install(FILES "${CMAKE_BINARY_DIR}/csolrc" DESTINATION /etc/xdg/csol COMPONENT config)
install(DIRECTORY "${CMAKE_BINARY_DIR}/themes" DESTINATION /etc/xdg/csol COMPONENT config)
install(DIRECTORY "${CMAKE_BINARY_DIR}/games" DESTINATION /etc/xdg/csol COMPONENT config)
install(FILES "${CMAKE_BINARY_DIR}/doc/csol.1" DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1)

{'fraction_non_alphanumeric': 0.11546184738955824, 'fraction_numerical': 0.007028112449799197, 'mean_word_length': 8.400943396226415, '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': '2074828', 'n_tokens_mistral': 822, 'n_tokens_neox': 773, 'n_words': 129}