<commit_before>project(CuteWrappers)
if(NOT DEFINED CuteWrappers_VERSION)
	find_package(Git)
	if(EXISTS ${GIT_EXECUTABLE})
		execute_process(COMMAND "${GIT_EXECUTABLE}"	describe --tags --abbrev=1
			RESULT_VARIABLE GIT_RESULT
			OUTPUT_VARIABLE CuteWrappers_VERSION
			WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
		)
		string(STRIP "${CuteWrappers_VERSION}" CuteWrappers_VERSION)
		if(NOT GIT_RESULT EQUAL 0)
			message(FATAL_ERROR "Cannot get 'git describe' version!")
		endif()
	else()
		message(FATAL_ERROR "No Git executable or valid Wireless Stickies version argument found.\nPlease pass a version to CMake e.g. cmake -DCuteWrappers_VERSION=1.0.0")
	endif()
endif()

string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.(.*)" CuteWrappers_VERSION "${CuteWrappers_VERSION}")
set(CuteWrappers_VERSION_MAJOR "${CMAKE_MATCH_1}")
set(CuteWrappers_VERSION_MINOR "${CMAKE_MATCH_2}")
set(CuteWrappers_VERSION_PATCH "${CMAKE_MATCH_3}")
set(CuteWrappers_VERSION_COUNT 3)

if(NOT CMAKE_BUILD_TYPE)
	set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()


message(STATUS "Building MadeByAI CuteWrappers ${CuteWrappers_VERSION} in ${CMAKE_BUILD_TYPE} mode" )


# Treat link_directories as relative
cmake_policy(SET CMP0015 NEW)
cmake_minimum_required(VERSION 2.8)

set(CMAKE_CXX_FLAGS "-Wall")

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
find_package(Qt4 4.8.1 COMPONENTS QtCore REQUIRED)
include(UseQt4)
enable_testing()

if(CMAKE_BUILD_TYPE MATCHES "^[Rr]elease$")
	add_definitions(-DQT_NO_DEBUG_OUTPUT)
else()
	message(WARNING	"Only build CuteWrappers in Debug mode if you are doing development!")
endif()

set(
	CuteWrappers_Sources

	CuteSettings.cpp
)

set(
	CuteWrappers_Headers

	CuteSettings.h
)

set(
	CuteWrappers_Forms
)

qt4_wrap_cpp(CuteWrappers_Sources ${CuteWrappers_Headers})
qt4_wrap_ui(CuteWrappers_Sources ${CuteWrappers_Forms})


add_library(
	CuteWrappers
	SHARED

	${CuteWrappers_Sources}
)

target_link_libraries(
	CuteWrappers
	${QT_LIBRARIES}
)


install(TARGETS CuteWrappers
	LIBRARY DESTINATION lib COMPONENT libraries
	ARCHIVE DESTINATION lib COMPONENT libraries
)

# Fixme HACK this gets the headers to the right place on Linux... probably not Windows?
install(
	FILES
	${CuteWrappers_Headers}
	DESTINATION include/CuteWrappers
)
<commit_msg>Made library static again<commit_after>project(CuteWrappers)
if(NOT DEFINED CuteWrappers_VERSION)
	find_package(Git)
	if(EXISTS ${GIT_EXECUTABLE})
		execute_process(COMMAND "${GIT_EXECUTABLE}"	describe --tags --abbrev=1
			RESULT_VARIABLE GIT_RESULT
			OUTPUT_VARIABLE CuteWrappers_VERSION
			WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
		)
		string(STRIP "${CuteWrappers_VERSION}" CuteWrappers_VERSION)
		if(NOT GIT_RESULT EQUAL 0)
			message(FATAL_ERROR "Cannot get 'git describe' version!")
		endif()
	else()
		message(FATAL_ERROR "No Git executable or valid Wireless Stickies version argument found.\nPlease pass a version to CMake e.g. cmake -DCuteWrappers_VERSION=1.0.0")
	endif()
endif()

string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.(.*)" CuteWrappers_VERSION "${CuteWrappers_VERSION}")
set(CuteWrappers_VERSION_MAJOR "${CMAKE_MATCH_1}")
set(CuteWrappers_VERSION_MINOR "${CMAKE_MATCH_2}")
set(CuteWrappers_VERSION_PATCH "${CMAKE_MATCH_3}")
set(CuteWrappers_VERSION_COUNT 3)

if(NOT CMAKE_BUILD_TYPE)
	set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()


message(STATUS "Building MadeByAI CuteWrappers ${CuteWrappers_VERSION} in ${CMAKE_BUILD_TYPE} mode" )


# Treat link_directories as relative
cmake_policy(SET CMP0015 NEW)
cmake_minimum_required(VERSION 2.8)

set(CMAKE_CXX_FLAGS "-Wall")

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
find_package(Qt4 4.8.1 COMPONENTS QtCore REQUIRED)
include(UseQt4)
enable_testing()

if(CMAKE_BUILD_TYPE MATCHES "^[Rr]elease$")
	add_definitions(-DQT_NO_DEBUG_OUTPUT)
else()
	message(WARNING	"Only build CuteWrappers in Debug mode if you are doing development!")
endif()

set(
	CuteWrappers_Sources

	CuteSettings.cpp
)

set(
	CuteWrappers_Headers

	CuteSettings.h
)

set(
	CuteWrappers_Forms
)

qt4_wrap_cpp(CuteWrappers_Sources ${CuteWrappers_Headers})
qt4_wrap_ui(CuteWrappers_Sources ${CuteWrappers_Forms})


add_library(
	CuteWrappers
	STATIC

	${CuteWrappers_Sources}
)

target_link_libraries(
	CuteWrappers
	${QT_LIBRARIES}
)


install(TARGETS CuteWrappers
	LIBRARY DESTINATION lib COMPONENT libraries
	ARCHIVE DESTINATION lib COMPONENT libraries
)

# Fixme HACK this gets the headers to the right place on Linux... probably not Windows?
install(
	FILES
	${CuteWrappers_Headers}
	DESTINATION include/CuteWrappers
)

{'fraction_non_alphanumeric': 0.10083663584324086, 'fraction_numerical': 0.011448701012769706, 'mean_word_length': 6.9423076923076925, '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': '5471994', 'n_tokens_mistral': 1800, 'n_tokens_neox': 1737, 'n_words': 349}