<commit_before># -*- mode: cmake -*-

#--------------------------------------------------------------------------------#
# Package File for                                                               #
# Author : <NAME> (<EMAIL>)                                       #
# Variables Defined :                                                            #
#                                                                                #
# SRCS - C++ source files                                                        #
# HDRS - C++ header files                                                        #
# DHDR - ROOT Dictionary Linkdef header file                                     #
# CSRCS - C source files                                                         #
# CHDRS - C header files                                                         #
# EINCLUDE - Include directories                                                 #
# EDEFINE - Compiler definitions                                                 #
# ELIBS - Extra libraries to link                                                #
# ELIBSDIR - Extra library directories                                           #
# PACKFFLAGS - Fortran compiler flags for package                                #
# PACKCXXFLAGS - C++ compiler flags for package                                  #
# PACKCFLAGS - C compiler flags for package                                      #
# PACKSOFLAGS - Shared library linking flags                                     #
# PACKLDFLAGS - Module linker flags                                              #
# PACKBLIBS - Libraries to link (Executables only)                               #
# EXPORT - Header files to be exported                                           #
# CINTHDRS - Dictionary header files                                             #
# CINTAUTOLINK - Set automatic dictionary generation                             #
# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
#--------------------------------------------------------------------------------#

execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f1
                 OUTPUT_VARIABLE MACOSX_MAJOR
                 OUTPUT_STRIP_TRAILING_WHITESPACE )
execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f2
                 OUTPUT_VARIABLE MACOSX_MINOR
                 OUTPUT_STRIP_TRAILING_WHITESPACE )

set(FINK_ROOT $ENV{FINK_ROOT})
if( NOT FINK_ROOT )
		
	set ( FINK_ROOT /usr/local)

endif( NOT FINK_ROOT )

# Global Optimization		
set ( OPT )
# ------- Setting optimization flags for default configuration -------
if((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
    set(DEFAULT_CXX_FLAGS "-O -g")
    set(OPT "${DEFAULT_CXX_FLAGS}")
    message("-- Setting compiler flags for default configuration: ${DEFAULT_CXX_FLAGS}")
endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
# --------------------------------------------------------------------
set ( NOOPT  "-g")

set ( CXXOPT  ${OPT})
set ( CXXNOOPT  ${NOOPT})
set ( COPT  ${OPT})

if( F77 MATCHES "g95")
	
	set ( FOPT "${FOPT}  -fbounds-check")

endif( F77 MATCHES "g95")

set ( CLIBDEFS  "-DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
set ( CLIBCXXOPTS )
set ( CLIBCOPT )
set ( CLIBFOPT  ${CLIBDEFS})

set ( CXXWARN  "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")

set ( CXXSTF  "-pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include")

set ( CXXFLAGS  "${CXXOPT} ${CXXSTF}")

set ( CXXFLAGSNO  "${CXXNOOPT} ${CXXSTF}")

set ( CFLAGS  "${COPT} -Wall -W -fno-common -pipe -I${FINK_ROOT}/include")

set ( FFLAGS "${FFLAGS} -DFORTRAN_GFORTRAN")

set ( CINTFLAGS )

set ( LDFLAGS  "${OPT} ${DICTLOAD}")

set ( SOFLAGS  "-m64 -dynamiclib -undefined dynamic_lookup -single_module")

set ( ALLIB )
<commit_msg>Removing flags unrecognised by clang<commit_after># -*- mode: cmake -*-

#--------------------------------------------------------------------------------#
# Package File for                                                               #
# Author : <NAME> (<EMAIL>)                                       #
# Variables Defined :                                                            #
#                                                                                #
# SRCS - C++ source files                                                        #
# HDRS - C++ header files                                                        #
# DHDR - ROOT Dictionary Linkdef header file                                     #
# CSRCS - C source files                                                         #
# CHDRS - C header files                                                         #
# EINCLUDE - Include directories                                                 #
# EDEFINE - Compiler definitions                                                 #
# ELIBS - Extra libraries to link                                                #
# ELIBSDIR - Extra library directories                                           #
# PACKFFLAGS - Fortran compiler flags for package                                #
# PACKCXXFLAGS - C++ compiler flags for package                                  #
# PACKCFLAGS - C compiler flags for package                                      #
# PACKSOFLAGS - Shared library linking flags                                     #
# PACKLDFLAGS - Module linker flags                                              #
# PACKBLIBS - Libraries to link (Executables only)                               #
# EXPORT - Header files to be exported                                           #
# CINTHDRS - Dictionary header files                                             #
# CINTAUTOLINK - Set automatic dictionary generation                             #
# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
#--------------------------------------------------------------------------------#

execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f1
                 OUTPUT_VARIABLE MACOSX_MAJOR
                 OUTPUT_STRIP_TRAILING_WHITESPACE )
execute_process (COMMAND sw_vers | sed -n 's/ProductVersion://p' | cut -d. -f2
                 OUTPUT_VARIABLE MACOSX_MINOR
                 OUTPUT_STRIP_TRAILING_WHITESPACE )

set(FINK_ROOT $ENV{FINK_ROOT})
if( NOT FINK_ROOT )
		
	set ( FINK_ROOT /usr/local)

endif( NOT FINK_ROOT )

# Global Optimization		
set ( OPT )
# ------- Setting optimization flags for default configuration -------
if((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
    set(DEFAULT_CXX_FLAGS "-O -g")
    set(OPT "${DEFAULT_CXX_FLAGS}")
    message("-- Setting compiler flags for default configuration: ${DEFAULT_CXX_FLAGS}")
endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None"))
# --------------------------------------------------------------------
set ( NOOPT  "-g")

set ( CXXOPT  ${OPT})
set ( CXXNOOPT  ${NOOPT})
set ( COPT  ${OPT})

if( F77 MATCHES "g95")
	
	set ( FOPT "${FOPT}  -fbounds-check")

endif( F77 MATCHES "g95")

set ( CLIBDEFS  "-DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC")
set ( CLIBCXXOPTS )
set ( CLIBCOPT )
set ( CLIBFOPT  ${CLIBDEFS})

set ( CXXWARN  "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi")

if ( CMAKE_CXX_COMPILER MATCHES "clang") 
     
     set ( CXXSTF  "-pipe -fsigned-char -fno-common -fmessage-length=0 -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include")

else( CMAKE_CXX_COMPILER MATCHES "clang")

     set ( CXXSTF  "-pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include")

endif( CMAKE_CXX_COMPILER MATCHES "clang")


set ( CXXFLAGS  "${CXXOPT} ${CXXSTF}")

set ( CXXFLAGSNO  "${CXXNOOPT} ${CXXSTF}")

set ( CFLAGS  "${COPT} -Wall -W -fno-common -pipe -I${FINK_ROOT}/include")

set ( FFLAGS "${FFLAGS} -DFORTRAN_GFORTRAN")

set ( CINTFLAGS )

set ( LDFLAGS  "${OPT} ${DICTLOAD}")

set ( SOFLAGS  "-m64 -dynamiclib -undefined dynamic_lookup -single_module")

set ( ALLIB )

{'fraction_non_alphanumeric': 0.1456599286563615, 'fraction_numerical': 0.0047562425683709865, 'mean_word_length': 1.2070322749934401, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 62, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3678828', 'n_tokens_mistral': 2282, 'n_tokens_neox': 2171, 'n_words': 577}