<commit_before>cmake_minimum_required(VERSION 2.6)

# Using CCache to speed up compilation of ROCS
if(ROCS_CCACHE)
	set(CMAKE_CXX_COMPILER "ccache")
	set(CMAKE_CXX_COMPILER_ARG1 "g++")
	set(CMAKE_C_COMPILER "ccache")
	set(CMAKE_C_COMPILER_ARG1 "gcc")
endif(ROCS_CCACHE)

# Definition of the project starts here
project(ROCS)

# Define version
set(ROCS_VERSION "0.1")

# When defined, scripts know they are executed from within ROCS source tree.
set(INSIDE_ROCS YES)

# Get ROCS_SRC_ROOT
get_filename_component(ROCS_SRC_ROOT . ABSOLUTE)

# Set the output directory
set(ROCS_DIR_INIT ${ROCS_DIR})
if ("${ROCS_DIR_INIT}" STREQUAL "")
	set(ROCS_DIR_INIT $ENV{ROCS_DIR})
	if ("${ROCS_DIR_INIT}" STREQUAL "")
		set(ROCS_DIR_INIT ${ROCS_SRC_ROOT})
	endif("${ROCS_DIR_INIT}" STREQUAL "")
endif("${ROCS_DIR_INIT}" STREQUAL "")
set(ROCS_DIR ${ROCS_DIR_INIT} CACHE PATH "Path to the directory where ROCS should be installed.")

# Are we installing to SRC_ROOT?
get_filename_component(TMP_PATH1 ${ROCS_SRC_ROOT} ABSOLUTE)
get_filename_component(TMP_PATH2 ${ROCS_DIR} ABSOLUTE)
string(COMPARE EQUAL ${TMP_PATH1} ${TMP_PATH2} INSTALL_TO_SRC_ROOT)

# Set other paths
set(ROCS_SRC_DOC ${ROCS_SRC_ROOT}/doc)
set(ROCS_SRC_CMAKE ${ROCS_SRC_ROOT}/cmake)
set(ROCS_SRC_CONFIG ${ROCS_SRC_ROOT}/config)
set(ROCS_SRC_DATA ${ROCS_SRC_ROOT}/data)
set(ROCS_SRC_TEST ${ROCS_SRC_ROOT}/test)
set(ROCS_SRC_MODULES ${ROCS_SRC_ROOT}/src)
set(ROCS_SRC_THIRDPARTY ${ROCS_SRC_ROOT}/thirdparty)

# Use cmake files packaged with ROCS
set(CMAKE_MODULE_PATH "${ROCS_SRC_ROOT}/cmake" ${CMAKE_MODULE_PATH} )

# General build configuration
add_definitions(-Wall)

# Includes<commit_msg>ROCS_DIR is now available as a preprocessor definition.<commit_after>cmake_minimum_required(VERSION 2.6)

# Using CCache to speed up compilation of ROCS
if(ROCS_CCACHE)
	set(CMAKE_CXX_COMPILER "ccache")
	set(CMAKE_CXX_COMPILER_ARG1 "g++")
	set(CMAKE_C_COMPILER "ccache")
	set(CMAKE_C_COMPILER_ARG1 "gcc")
endif(ROCS_CCACHE)

# Definition of the project starts here
project(ROCS)

# Define version
set(ROCS_VERSION "0.1")

# When defined, scripts know they are executed from within ROCS source tree.
set(INSIDE_ROCS YES)

# Get ROCS_SRC_ROOT
get_filename_component(ROCS_SRC_ROOT . ABSOLUTE)

# Set the output directory
set(ROCS_DIR_INIT ${ROCS_DIR})
if ("${ROCS_DIR_INIT}" STREQUAL "")
	set(ROCS_DIR_INIT $ENV{ROCS_DIR})
	if ("${ROCS_DIR_INIT}" STREQUAL "")
		set(ROCS_DIR_INIT ${ROCS_SRC_ROOT})
	endif("${ROCS_DIR_INIT}" STREQUAL "")
endif("${ROCS_DIR_INIT}" STREQUAL "")
set(ROCS_DIR ${ROCS_DIR_INIT} CACHE PATH "Path to the directory where ROCS should be installed.")

# Make ROCS_DIR available as preprocessor definition
ADD_DEFINITIONS(-DROCS_DIR="${ROCS_DIR}")

# Are we installing to SRC_ROOT?
get_filename_component(TMP_PATH1 ${ROCS_SRC_ROOT} ABSOLUTE)
get_filename_component(TMP_PATH2 ${ROCS_DIR} ABSOLUTE)
string(COMPARE EQUAL ${TMP_PATH1} ${TMP_PATH2} INSTALL_TO_SRC_ROOT)

# Set other paths
set(ROCS_SRC_DOC ${ROCS_SRC_ROOT}/doc)
set(ROCS_SRC_CMAKE ${ROCS_SRC_ROOT}/cmake)
set(ROCS_SRC_CONFIG ${ROCS_SRC_ROOT}/config)
set(ROCS_SRC_DATA ${ROCS_SRC_ROOT}/data)
set(ROCS_SRC_TEST ${ROCS_SRC_ROOT}/test)
set(ROCS_SRC_MODULES ${ROCS_SRC_ROOT}/src)
set(ROCS_SRC_THIRDPARTY ${ROCS_SRC_ROOT}/thirdparty)

# Use cmake files packaged with ROCS
set(CMAKE_MODULE_PATH "${ROCS_SRC_ROOT}/cmake" ${CMAKE_MODULE_PATH} )

# General build configuration
add_definitions(-Wall)

# Includes
{'fraction_non_alphanumeric': 0.1125073056691993, 'fraction_numerical': 0.0058445353594389245, 'mean_word_length': 8.079575596816976, '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': '3164384', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1427, 'n_words': 271}