<commit_before># set variables (options) for whole cmake
option(USE_PETSC "USE_PETSC" ON)
option(FIND_PETSC "FIND_PETSC" OFF)

if(${USE_PETSC})
	message(STATUS "${Blue}loading petsc library${ColourReset}")

	# include cmake functions directory
	set(CMAKE_MODULE_PATH "${PASCINFERENCE_ROOT}/util/cmake/petsc" ${CMAKE_MODULE_PATH})
	
	# PETSc: include
	if(${FIND_PETSC})
		message(STATUS "${Blue}PETSC_INCLUDES is not specified, trying to run find_package(PETSc)${ColourReset}")
		# magic function from <NAME>
		find_package(PETSc)

		include_directories(${PETSC_INCLUDES})
	endif()

	# append to flags definitions
	set(FLAGS_DEF "-USE_PETSC ${FLAGS_DEF}")
	set(FLAGS_DEF_D "-DUSE_PETSC ${FLAGS_DEF_D}")
	set(LIBRARIES_DEF ${PETSC_LIBRARIES} ${LIBRARIES_DEF})
#	set(LIBRARIES_DEF ${PETSC_LIBRARIES} ${LIBRARIES_DEF})

	set(CMAKE_CXX_COMPILER "${PETSC_DIR}/${PETSC_ARCH}/bin/mpicxx")

endif()



# define print info (will be called in printsetting.cmake)
macro(PRINTSETTING_PETSC)
	if(${USE_PETSC})
		printinfo_green("USE_PETSC\t\t\t" "YES")
		printinfo(" - PETSC_DIR\t\t\t" "$ENV{PETSC_DIR}")
		printinfo(" - PETSC_ARCH\t\t\t" "$ENV{PETSC_ARCH}")
		printinfo(" - PETSC_INCLUDES\t\t" "${PETSC_INCLUDES}")
		printinfo(" - PETSC_LIBRARIES\t\t" "${PETSC_LIBRARIES}")
		printinfo(" - FIND_PETSC\t\t\t" "${FIND_PETSC}")
	else()
		printinfo_red("USE_PETSC\t\t\t" "NO")
	endif()

endmacro()
<commit_msg>set of c++ compiler added to find petsc<commit_after># set variables (options) for whole cmake
option(USE_PETSC "USE_PETSC" ON)
option(FIND_PETSC "FIND_PETSC" OFF)

if(${USE_PETSC})
	message(STATUS "${Blue}loading petsc library${ColourReset}")

	# include cmake functions directory
	set(CMAKE_MODULE_PATH "${PASCINFERENCE_ROOT}/util/cmake/petsc" ${CMAKE_MODULE_PATH})
	
	# PETSc: include
	if(${FIND_PETSC})
		message(STATUS "${Blue}PETSC_INCLUDES is not specified, trying to run find_package(PETSc)${ColourReset}")
		# magic function from <NAME>
		find_package(PETSc)

		include_directories(${PETSC_INCLUDES})

		set(CMAKE_CXX_COMPILER "${PETSC_DIR}/${PETSC_ARCH}/bin/mpicxx")
	endif()

	# append to flags definitions
	set(FLAGS_DEF "-USE_PETSC ${FLAGS_DEF}")
	set(FLAGS_DEF_D "-DUSE_PETSC ${FLAGS_DEF_D}")
	set(LIBRARIES_DEF ${PETSC_LIBRARIES} ${LIBRARIES_DEF})

endif()



# define print info (will be called in printsetting.cmake)
macro(PRINTSETTING_PETSC)
	if(${USE_PETSC})
		printinfo_green("USE_PETSC\t\t\t" "YES")
		printinfo(" - PETSC_DIR\t\t\t" "$ENV{PETSC_DIR}")
		printinfo(" - PETSC_ARCH\t\t\t" "$ENV{PETSC_ARCH}")
		printinfo(" - PETSC_INCLUDES\t\t" "${PETSC_INCLUDES}")
		printinfo(" - PETSC_LIBRARIES\t\t" "${PETSC_LIBRARIES}")
		printinfo(" - FIND_PETSC\t\t\t" "${FIND_PETSC}")
	else()
		printinfo_red("USE_PETSC\t\t\t" "NO")
	endif()

endmacro()

{'fraction_non_alphanumeric': 0.15856313497822933, 'fraction_numerical': 0.0, 'mean_word_length': 6.274406332453826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4199280', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1116, 'n_words': 194}