<commit_before># Generic makefile that captures some of the ideas of GNU Automake,
# especially in regard to naming targets.
#
# Author: <NAME>
#
# This makefile requires GNU Make, it has been tested with version
# 3.81.
#
# All variables listed in the section CONFIG VARIABLES are available
# for modification in config.mk, and they may also be overridden on
# the command line. For example, to enable PTHREADS and disable
# automatic dependency tracking, you could do this:
#
#   make CFLAGS_PTHREAD=-pthread CFLAGS_AUTODEP=""
#
# If CFLAGS is specified in the environment or on the command line, it
# will replace the value of CFLAGS_DEFAULT. Similarly with CXXFLAGS,
# LDFLAGS, and ARFLAGS.
#
# If EXTRA_CFLAGS is specified on the command line, its contents will
# be added to CFLAGS_DEFAULT (or to CFLAGS, if it is
# specified). Similarly with CXXFLAGS and LDFLAGS.
#
# If CC, CXX, LD, or AR is specified in the environment or on the
# command line, its value will be respected.
#
# NOTE: When you change the configuration specified via the
# environment or the command line from one invocation of make to the
# next, you should always start with a 'make clean'. MAKE does this
# automatically when you change config.mk.
#
# A function CC_CXX_AND_LD_ARE is made available to check for a
# specific compiler in config.mk. For example:
#
#   ifneq ($(call CC_CXX_AND_LD_ARE,clang),)
#   # Clang specific stuff
#   endif
#
# Likewise, a variable CC_CXX_AND_LD_ARE_GCC_LIKE is made available to
# check for any GCC like compiler in config.mk (gcc, llvm-gcc,
# clang). For example:
#
#   ifneq ($(CC_CXX_AND_LD_ARE_GCC_LIKE),)
#   # GCC specific stuff
#   endif



# CONFIG VARIABLES

# Relative path to root of source tree. If specified, a corresponding
# include option (-I) is added to the compiler command
# line. Specifying it, also permits installation of headers. Headers
# will be installed under the same relative path as they have with
# respect to the directory specified here. Headers are marked for
# installation by adding them to the INST_HEADERS variable in the
# local Makefile.
SOURCE_ROOT =

CFLAGS_DEFAULT   =
CXXFLAGS_DEFAULT = $(CFLAGS_DEFAULT)
CFLAGS_OPTIMIZE  =
CFLAGS_DEBUG     =
CFLAGS_COVERAGE  =
CFLAGS_SHARED    =
CFLAGS_PTHREAD   =
CFLAGS_INCLUDE   =
CFLAGS_AUTODEP   =
LDFLAGS_DEFAULT  =
LDFLAGS_OPTIMIZE = $(CFLAGS_OPTIMIZE)
LDFLAGS_SHARED   = $(CFLAGS_SHARED)
LDFLAGS_DEBUG    = $(CFLAGS_DEBUG)
LDFLAGS_COVERAGE = $(CFLAGS_COVERAGE)
LDFLAGS_PTHREAD  = $(CFLAGS_PTHREAD)
ARFLAGS_DEFAULT  = csr

SHARED_OBJ_DENOM    = .pic
DEBUG_OBJ_DENOM     = .dbg
COVERAGE_OBJ_DENOM  = .cov
DEBUG_LIB_DENOM     = -dbg
COVERAGE_LIB_DENOM  = -cov
DEBUG_PROG_DENOM    = -dbg
COVERAGE_PROG_DENOM = -cov

# When set to an empty value, 'make install' will also attempt to
# build everything as if by 'make all'. Set this variable to a
# nonempty value if you would rather want 'install' to simply accept
# what is there and attempt an installation from that.
NO_BUILD_ON_INSTALL =

# When set to an empty value, 'make install' will not install the
# debug versions of the programs mentioned in bin_PROGRAMS, and a
# plain 'make' will not even build them. When set to a nonempty value,
# the opposite is true.
INSTALL_DEBUG_PROGS =

OS   = $(shell uname)
ARCH = $(shell uname -m)
USE_LIB64 = $(and $(filter x86_64 ia64,$(ARCH)),$(shell [ -e /etc/redhat-release -o -e /etc/fedora-release ] && echo y))

# Installation (GNU style)
prefix          = /usr/local
exec_prefix     = $(prefix)
includedir      = $(prefix)/include
bindir          = $(exec_prefix)/bin
libdir          = $(if $(USE_LIB64),$(exec_prefix)/lib64,$(exec_prefix)/lib)
INSTALL         = install
INSTALL_DIR     = $(INSTALL) -d
INSTALL_DATA    = $(INSTALL) -m 644
INSTALL_LIBRARY = $(INSTALL)
INSTALL_PROGRAM = $(INSTALL)



# UTILITY FUNCTIONS<commit_msg>Fix for: Install in /usr/local/lib64 on Fedora and other RedHat derivatives<commit_after># Generic makefile that captures some of the ideas of GNU Automake,
# especially in regard to naming targets.
#
# Author: <NAME>
#
# This makefile requires GNU Make, it has been tested with version
# 3.81.
#
# All variables listed in the section CONFIG VARIABLES are available
# for modification in config.mk, and they may also be overridden on
# the command line. For example, to enable PTHREADS and disable
# automatic dependency tracking, you could do this:
#
#   make CFLAGS_PTHREAD=-pthread CFLAGS_AUTODEP=""
#
# If CFLAGS is specified in the environment or on the command line, it
# will replace the value of CFLAGS_DEFAULT. Similarly with CXXFLAGS,
# LDFLAGS, and ARFLAGS.
#
# If EXTRA_CFLAGS is specified on the command line, its contents will
# be added to CFLAGS_DEFAULT (or to CFLAGS, if it is
# specified). Similarly with CXXFLAGS and LDFLAGS.
#
# If CC, CXX, LD, or AR is specified in the environment or on the
# command line, its value will be respected.
#
# NOTE: When you change the configuration specified via the
# environment or the command line from one invocation of make to the
# next, you should always start with a 'make clean'. MAKE does this
# automatically when you change config.mk.
#
# A function CC_CXX_AND_LD_ARE is made available to check for a
# specific compiler in config.mk. For example:
#
#   ifneq ($(call CC_CXX_AND_LD_ARE,clang),)
#   # Clang specific stuff
#   endif
#
# Likewise, a variable CC_CXX_AND_LD_ARE_GCC_LIKE is made available to
# check for any GCC like compiler in config.mk (gcc, llvm-gcc,
# clang). For example:
#
#   ifneq ($(CC_CXX_AND_LD_ARE_GCC_LIKE),)
#   # GCC specific stuff
#   endif



# CONFIG VARIABLES

# Relative path to root of source tree. If specified, a corresponding
# include option (-I) is added to the compiler command
# line. Specifying it, also permits installation of headers. Headers
# will be installed under the same relative path as they have with
# respect to the directory specified here. Headers are marked for
# installation by adding them to the INST_HEADERS variable in the
# local Makefile.
SOURCE_ROOT =

CFLAGS_DEFAULT   =
CXXFLAGS_DEFAULT = $(CFLAGS_DEFAULT)
CFLAGS_OPTIMIZE  =
CFLAGS_DEBUG     =
CFLAGS_COVERAGE  =
CFLAGS_SHARED    =
CFLAGS_PTHREAD   =
CFLAGS_INCLUDE   =
CFLAGS_AUTODEP   =
LDFLAGS_DEFAULT  =
LDFLAGS_OPTIMIZE = $(CFLAGS_OPTIMIZE)
LDFLAGS_SHARED   = $(CFLAGS_SHARED)
LDFLAGS_DEBUG    = $(CFLAGS_DEBUG)
LDFLAGS_COVERAGE = $(CFLAGS_COVERAGE)
LDFLAGS_PTHREAD  = $(CFLAGS_PTHREAD)
ARFLAGS_DEFAULT  = csr

SHARED_OBJ_DENOM    = .pic
DEBUG_OBJ_DENOM     = .dbg
COVERAGE_OBJ_DENOM  = .cov
DEBUG_LIB_DENOM     = -dbg
COVERAGE_LIB_DENOM  = -cov
DEBUG_PROG_DENOM    = -dbg
COVERAGE_PROG_DENOM = -cov

# When set to an empty value, 'make install' will also attempt to
# build everything as if by 'make all'. Set this variable to a
# nonempty value if you would rather want 'install' to simply accept
# what is there and attempt an installation from that.
NO_BUILD_ON_INSTALL =

# When set to an empty value, 'make install' will not install the
# debug versions of the programs mentioned in bin_PROGRAMS, and a
# plain 'make' will not even build them. When set to a nonempty value,
# the opposite is true.
INSTALL_DEBUG_PROGS =

# Installation (GNU style)
prefix          = /usr/local
exec_prefix     = $(prefix)
includedir      = $(prefix)/include
bindir          = $(exec_prefix)/bin
libdir          = $(if $(USE_LIB64),$(exec_prefix)/lib64,$(exec_prefix)/lib)
INSTALL         = install
INSTALL_DIR     = $(INSTALL) -d
INSTALL_DATA    = $(INSTALL) -m 644
INSTALL_LIBRARY = $(INSTALL)
INSTALL_PROGRAM = $(INSTALL)



# PLATFORM SPECIFICS

OS       = $(shell uname)
ARCH     = $(shell uname -m)
USE_LIB64 =
ifeq ($(OS),Linux)
IS_64BIT = $(filter x86_64 ia64,$(ARCH))
ifneq ($(IS_64BIT),)
ifeq ($(shell [ -e /etc/redhat-release -o -e /etc/SuSE-release -o -e /etc/fedora-release ] && echo yes),yes)
USE_LIB64 = 1
else ifneq ($(shell [ -e /etc/system-release ] && grep Amazon /etc/system-release),)
USE_LIB64 = 1
endif
endif
endif
$(info LIBDIR IS $(libdir))



# UTILITY FUNCTIONS
{'fraction_non_alphanumeric': 0.08239559889972493, 'fraction_numerical': 0.006001500375093774, 'mean_word_length': 4.0819567979669635, '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': '2909236', 'n_tokens_mistral': 2674, 'n_tokens_neox': 2512, 'n_words': 979}