<commit_before>#!/bin/bash -e
# this should be run after check-build finishes.
. /etc/profile.d/modules.sh
echo ${SOFT_DIR}
module add deploy
echo ${SOFT_DIR}
cd ${WORKSPACE}/${NAME}
echo "All tests have passed, will now build into ${SOFT_DIR}"
FC=`which gfortran` MPIF90=`which mpif90` ./configure \
--prefix=${SOFT_DIR} \
--enable-parallel=no \
--enable-shared \
--enable-environment \
--with-internal-blas \
--with-internal-lapack

make -j2 install
echo "Creating the modules file directory "
mkdir -p ${CHEMISTRY_MODULES}/${NAME}
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
    puts stderr "       This module does nothing but alert the user"
    puts stderr "       that the [module-info name] module is not available"
}

module-whatis   "$NAME $VERSION : See https://github.com/SouthAfricaDigitalScience/gmp-deploy"
setenv       GMP_VERSION       $VERSION
setenv       GMP_DIR           $::env(CVMFS_DIR)/$::env(SITE)/$::env(OS)/$::env(ARCH)/$NAME/$VERSION
prepend-path LD_LIBRARY_PATH   $::env(GMP_DIR)/lib
prepend-path GCC_INCLUDE_DIR   $::env(GMP_DIR)/include
MODULE_FILE
) > ${CHEMISTRY_MODULES}/${NAME}/${VERSION}<commit_msg>wrong paths in deploy.sh<commit_after>#!/bin/bash -e
# this should be run after check-build finishes.
. /etc/profile.d/modules.sh
echo ${SOFT_DIR}
module add deploy
echo ${SOFT_DIR}
cd ${WORKSPACE}/${NAME}
echo "All tests have passed, will now build into ${SOFT_DIR}"
FC=`which gfortran` MPIF90=`which mpif90` ./configure \
--prefix=${SOFT_DIR} \
--enable-parallel=no \
--enable-shared \
--enable-environment \
--with-internal-blas \
--with-internal-lapack

make -j2 install
echo "Creating the modules file directory "
mkdir -p ${CHEMISTRY_MODULES}/${NAME}
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
    puts stderr "       This module does nothing but alert the user"
    puts stderr "       that the [module-info name] module is not available"
}

module-whatis   "$NAME $VERSION : See https://github.com/SouthAfricaDigitalScience/gmp-deploy"
setenv       QE_VERSION       $VERSION
setenv       QE_DIR           $::env(CVMFS_DIR)/$::env(SITE)/$::env(OS)/$::env(ARCH)/$NAME/$VERSION
prepend-path LD_LIBRARY_PATH   $::env(QE_DIR)/lib
prepend-path GCC_INCLUDE_DIR   $::env(QE_DIR)/include
MODULE_FILE
) > ${CHEMISTRY_MODULES}/${NAME}/${VERSION}
{'fraction_non_alphanumeric': 0.14955262036642522, 'fraction_numerical': 0.005965061780997018, 'mean_word_length': 3.9224318658280923, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6973206', 'n_tokens_mistral': 853, 'n_tokens_neox': 816, 'n_words': 198}