<commit_before>cmake_minimum_required(VERSION 2.6)
project(featuresqueeze)

include (CheckIncludeFile)

if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
  set (CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)

list(APPEND CMAKE_MODULE_PATH "${featuresqueeze_SOURCE_DIR}/cmake")

# SSE/SSE2
set(CMAKE_FEATURESQUEEZE_HAS_SSE 1)
set(DISABLE_SSE2 OFF CACHE BOOL "Compilation *without* SSE2/MMX extensions")
mark_as_advanced(DISABLE_SSE2)
if(DISABLE_SSE2)
	set(CMAKE_FEATURESQUEEZE_HAS_SSE 0)
endif(DISABLE_SSE2)

include_directories(${featuresqueeze_SOURCE_DIR}/libfsqueeze)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wno-long-long -DUSE_SSE")

if (CMAKE_FEATURESQUEEZE_HAS_SSE)
	CHECK_INCLUDE_FILE("emmintrin.h" HAVE_EMMINTRIN_H)
	
	if (HAVE_EMMINTRIN_H)<commit_msg>Do not enable SSE2 by default.<commit_after>cmake_minimum_required(VERSION 2.6)
project(featuresqueeze)

include (CheckIncludeFile)

if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
  set (CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)

list(APPEND CMAKE_MODULE_PATH "${featuresqueeze_SOURCE_DIR}/cmake")

# SSE/SSE2
set(CMAKE_FEATURESQUEEZE_HAS_SSE 0)
set(ENABLE_SSE2 OFF CACHE BOOL "Compilation with SSE2/MMX extensions")
if(ENABLE_SSE2)
	set(CMAKE_FEATURESQUEEZE_HAS_SSE 1) 
endif()

include_directories(${featuresqueeze_SOURCE_DIR}/libfsqueeze)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wno-long-long -DUSE_SSE")

if (CMAKE_FEATURESQUEEZE_HAS_SSE)
	CHECK_INCLUDE_FILE("emmintrin.h" HAVE_EMMINTRIN_H)
	
	if (HAVE_EMMINTRIN_H)
{'fraction_non_alphanumeric': 0.08477722772277228, 'fraction_numerical': 0.011757425742574257, 'mean_word_length': 9.043478260869565, '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': '7410103', 'n_tokens_mistral': 699, 'n_tokens_neox': 660, 'n_words': 107}