<commit_before>#! /bin/bash

#SBATCH --exclusive
#SBATCH --job-name              = DMRG
#SBATCH --time                  = 0-1:30:00
#SBATCH --time-min              = 0-0:30:00
#SBATCH --error                 = log.error
#SBATCH --output                = log.out
#SBATCH --mem-per-cpu           = 2000
#SBATCH --cpus-per-task         = 1
#SBATCH --ntasks                = 1
#SBATCH --ntasks-per-core       = 1
#SBATCH --kill-on-invalid-dep   =yes

if [[ "$HOSTNAME" == *"tetralith"* ]];then
    echo "Running on tetralith"
    echo $@
    exec=$1
    file=$2
    module load buildenv-gcc/2018a-eb
    module load GCCcore/7.3.0
    module load CMake/3.12.1
    module load zlib/1.2.8
    export CC=gcc
    export CXX=g++
    echo $LD_LIBRARY_PATH
    LD_LIBRARY_PATH=$(gcc -print-file-name=libstdc++.so)
    export LD_LIBRARY_PATH
    export OMP_NUM_THREADS=1


    $exec $file
fi<commit_msg>Adapting run script for Tetralith<commit_after>#! /bin/bash

#SBATCH --exclusive
#SBATCH --job-name               DMRG
#SBATCH --time                   0-1:30:00
#SBATCH --time-min               0-0:30:00
#SBATCH --error                  log.error
#SBATCH --output                 log.out
#SBATCH --mem-per-cpu            2G
#SBATCH --cpus-per-task          1
#SBATCH --ntasks                 1
#SBATCH --ntasks-per-core        1
#SBATCH --kill-on-invalid-dep    yes


echo "Running on tetralith"
echo $@
exec=$1
file=$2
module load buildenv-gcc/2018a-eb
module load GCCcore/7.3.0
module load CMake/3.12.1
module load zlib/1.2.8
export CC=gcc
export CXX=g++
echo $LD_LIBRARY_PATH
LD_LIBRARY_PATH=$(gcc -print-file-name=libstdc++.so)
export LD_LIBRARY_PATH
export OMP_NUM_THREADS=1


$exec $file

{'fraction_non_alphanumeric': 0.13056379821958458, 'fraction_numerical': 0.04094955489614243, 'mean_word_length': 1.9321739130434783, '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': '3899963', 'n_tokens_mistral': 679, 'n_tokens_neox': 613, 'n_words': 142}