<commit_before>#
# The list of raaz packages to build. The order of listing the
# packages is important as the packages are unregistered in the order
# given below. When in doubt arrange it in the reverse order of
# dependency, i.e if a package foo depends on bar then list foo before
# bar. In any case make sure that raaz-config is the last in this
# list.

PACKAGES= raaz raaz-random raaz-cipher \
          raaz-hash raaz-ssh raaz-benchmarks \
          raaz-core raaz-modular



# Do not edit this file beyond this point unless you know what you are
# doing.

# The targets provided by this make file are the following:

.PHONY: install # Installs all the packages.
.PHONY: clean   # removes all the packages and cleans up the dirs.
.PHONY: tests   # Runs the tests. Assumes that install is already done.
.PHONY: echo-variables        # Shows make variables. mainly for debugging
.PHONY: travis-before-install # Sets up the travis environment.
.PHONY: travis-cabal-config   # Sets up the travis cabal config file
.PHONY: hlint   # runs hlint on the sources
.PHONY: src-tarball # Creates the source tarballs in the respective directories.
.PHONY: scripts     # builds the scripts in the scripts directory
.PHONY: tags        # create the ctags and etags files
#
# For each package we have a target with the same name and a target
# with the suffix clean. The former builds the package and the latter
# cleans it up. The Makefile.configure should set the variable
# PACKAGES variable and add rules to capture dependencies between the
# package targets (see the comments in Makefile.configure). The
# cleaning targets are auto generated from them.
#


PACKAGE_CLEAN=$(addsuffix -clean, ${PACKAGES})

.PHONY: ${PACKAGES} # There is a target for each packages. You set this
                    # variable in the Makefile.configure.
.PHONY: ${PACKAGE_CLEAN}


# External variables that govern the building process.


TEST_PATH=dist/build/tests/tests # path to the tests in any package.

export PACKAGES

#
# Sets up the cabal config. The directory platform contains the cabal
# config file to use for each platform. Typically you need to put the
# package constraints there. The platform/default.cabal.conf contains
# the default config to use.
#

ROOTDIR=$(abspath .)

# Include the platform specific configurarions from the platform make
# file.

ifdef HASKELL_PLATFORM
include ${ROOTDIR}/platform/${HASKELL_PLATFORM}/Makefile.configure
endif

# In travis builds you can set particular versions of the compiler. In
# particular, the platform specific Makefile.configure should set the
# appropriate GHC version.

ifdef GHC_VERSION

GHC_PKG=ghc-${GHC_VERSION}
PATH:=/opt/ghc/${GHC_VERSION}/bin:${PATH}

else

GHC_PKG=ghc

endif

ifdef CABAL_VERSION

CABAL_PKG=cabal-install-${CABAL_VERSION}
CABAL=cabal-${CABAL_VERSION}

else

CABAL_PKG=cabal-install
CABAL=cabal

endif

ifeq ($(strip ${PARALLEL_BUILDS}),yes)
PARALLEL_OPTS=-j
else
PARALLEL_OPTS=
endif



# Setting the cabal install DEPENDENCIES
DEPENDENCIES=$(foreach cons, ${PACKAGE_CONSTRAINTS} \
			     ${ADDITIONAL_CONSTRAINTS}\
	,--constraint='${cons}' )

# Package tarballs. We install directly from the tarballs
RAAZ_TAR_GZ=$(foreach pkg, ${PACKAGES}, \
	$(wildcard ${ROOTDIR}/${pkg}/dist/*.tar.gz))
<commit_msg>cleaned up the make file.<commit_after>#
# The list of raaz packages to build. The order of listing the
# packages is important as the packages are unregistered in the order
# given below. When in doubt arrange it in the reverse order of
# dependency, i.e if a package foo depends on bar then list foo before
# bar. In any case make sure that raaz-config is the last in this
# list.

PACKAGES= raaz raaz-random raaz-cipher \
          raaz-hash raaz-ssh raaz-benchmarks \
          raaz-core raaz-modular

ROOTDIR=$(abspath .)


# Do not edit this file beyond this point unless you know what you are
# doing.

# The targets provided by this make file are the following:

.PHONY: install # Installs all the packages.
.PHONY: clean   # removes all the packages and cleans up the dirs.
.PHONY: tests   # Runs the tests. Assumes that install is already done.
.PHONY: echo-variables        # Shows make variables. mainly for debugging
.PHONY: travis-before-install # Sets up the travis environment.
.PHONY: travis-cabal-config   # Sets up the travis cabal config file
.PHONY: hlint       # runs hlint on the sources
.PHONY: src-tarball # Create source tarballs
.PHONY: scripts     # builds the scripts in the scripts directory
.PHONY: tags        # create the ctags and etags files

#
# For each package we have a target with the same name and a target
# with the suffix clean. The former builds the package and the latter
# cleans it up. The Makefile.configure should set the variable
# PACKAGES variable and add rules to capture dependencies between the
# package targets (see the comments in Makefile.configure). The
# cleaning targets are auto generated from them.
#

PACKAGE_CLEAN=$(addsuffix -clean, ${PACKAGES})

.PHONY: ${PACKAGE_CLEAN}



# Include the platform specific configurarions from the platform make
# file.

ifdef HASKELL_PLATFORM
include platform/${HASKELL_PLATFORM}/Makefile.configure
endif


# Sets up the cabal config. The directory platform contains the cabal
# config file to use for each platform. Typically you need to put the
# package constraints there. The platform/default.cabal.conf contains
# the default config to use.


# In travis builds you can set particular versions of the compiler. In
# particular, the platform specific Makefile.configure should set the
# appropriate GHC version.

ifdef GHC_VERSION

GHC_PKG=ghc-${GHC_VERSION}
PATH:=/opt/ghc/${GHC_VERSION}/bin:${PATH}

else

GHC_PKG=ghc

endif

ifdef CABAL_VERSION

CABAL_PKG=cabal-install-${CABAL_VERSION}
CABAL=cabal-${CABAL_VERSION}

else

CABAL_PKG=cabal-install
CABAL=cabal

endif

ifeq ($(strip ${PARALLEL_BUILDS}),yes)
PARALLEL_OPTS=-j
else
PARALLEL_OPTS=
endif



# Setting the cabal install DEPENDENCIES
DEPENDENCIES=$(foreach cons, ${PACKAGE_CONSTRAINTS}  \
	                     ${ADDITIONAL_CONSTRAINTS}\
	,--constraint='${cons}' )

# Package tarballs. We install directly from the tarballs
RAAZ_TAR_GZ=$(foreach pkg, ${PACKAGES}, \
	$(wildcard ${ROOTDIR}/${pkg}/dist/*.tar.gz))

{'fraction_non_alphanumeric': 0.0780550223928343, 'fraction_numerical': 0.0, 'mean_word_length': 3.9864433811802233, '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': '3641748', 'n_tokens_mistral': 1990, 'n_tokens_neox': 1923, 'n_words': 766}