<commit_before># setup the project
# =================

cmake_minimum_required(VERSION 2.6)
project(points2grid)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH} )

set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)

# set build type
# ==============

if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING 
        "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)
endif()
message(STATUS "Setting ${CMAKE_PROJECT_NAME} build type - ${CMAKE_BUILD_TYPE}")

set (P2G_VERSION_MAJOR 1)
set (P2G_VERSION_MINOR 1)
set (P2G_VERSION_PATCH 1)

set (P2G_VERSION_STRING "${P2G_VERSION_MAJOR}.${P2G_VERSION_MINOR}.${P2G_VERSION_PATCH}")

# setup dependencies
# ==================

# Boost (required) 
# ----------------

find_package( Boost 1.40 COMPONENTS iostreams program_options system filesystem REQUIRED )

if(Boost_FOUND
  AND Boost_IOSTREAMS_FOUND
  AND Boost_PROGRAM_OPTIONS_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
endif()

# make these available for the user to set.
mark_as_advanced(CLEAR Boost_INCLUDE_DIR) 
mark_as_advanced(CLEAR Boost_LIBRARY_DIRS) 
link_directories(${Boost_LIBRARY_DIRS}) 

set(Boost_SEMVER
  ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}
  CACHE STRING "The Boost version you are linking against.")

#provide a fallback in case version detection fails
mark_as_advanced(Boost_SEMVER)

# message("Boost semantic version:" ${Boost_SEMVER})<commit_msg>increment version to 1.2.1 in CMakeLists<commit_after># setup the project
# =================

cmake_minimum_required(VERSION 2.6)
project(points2grid)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH} )

set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)

# set build type
# ==============

if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING 
        "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)
endif()
message(STATUS "Setting ${CMAKE_PROJECT_NAME} build type - ${CMAKE_BUILD_TYPE}")

set (P2G_VERSION_MAJOR 1)
set (P2G_VERSION_MINOR 2)
set (P2G_VERSION_PATCH 1)

set (P2G_VERSION_STRING "${P2G_VERSION_MAJOR}.${P2G_VERSION_MINOR}.${P2G_VERSION_PATCH}")

# setup dependencies
# ==================

# Boost (required) 
# ----------------

find_package( Boost 1.40 COMPONENTS iostreams program_options system filesystem REQUIRED )

if(Boost_FOUND
  AND Boost_IOSTREAMS_FOUND
  AND Boost_PROGRAM_OPTIONS_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
endif()

# make these available for the user to set.
mark_as_advanced(CLEAR Boost_INCLUDE_DIR) 
mark_as_advanced(CLEAR Boost_LIBRARY_DIRS) 
link_directories(${Boost_LIBRARY_DIRS}) 

set(Boost_SEMVER
  ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}
  CACHE STRING "The Boost version you are linking against.")

#provide a fallback in case version detection fails
mark_as_advanced(Boost_SEMVER)

# message("Boost semantic version:" ${Boost_SEMVER})
{'fraction_non_alphanumeric': 0.12611422911852097, 'fraction_numerical': 0.011554968636513702, 'mean_word_length': 6.690355329949239, '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': '2074752', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1064, 'n_words': 224}