<commit_before>#!/bin/bash

set -e

platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
   platform='linux'
elif [[ "$unamestr" == 'MINGW32_NT-6.2' ]]; then
   platform='windows'
fi

echo "platform = $platform"

install_and_test(){
    HERE=`pwd`
    PKG=$1
    DOTEST=$2
    echo
    echo
    echo "[1;32m>>> compiling $PKG <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<[0m"
    cd $PKG
    touch *.go
    go install
    if [ "$DOTEST" -eq 1 ]; then
        go test
    fi
    cd $HERE
}

for p in chk io utl; do
    install_and_test $p 1
done

if [[ $platform == 'linux' ]]; then
    install_and_test mpi 0
fi

for p in la plt fdm num fun ode gm rnd opt graph; do
    install_and_test $p 1
done

if [[ $platform == 'linux' ]]; then
    install_and_test vtk 0
    install_and_test tsr 1
fi
<commit_msg>added win10 option to all.bash<commit_after>#!/bin/bash

set -e

platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
   platform='linux'
elif [[ "$unamestr" == 'MINGW32_NT-6.2' ]]; then
   platform='windows'
elif [[ "$unamestr" == 'MINGW64_NT-10.0' ]]; then
   platform='windows'
fi

echo "platform = $platform"

install_and_test(){
    HERE=`pwd`
    PKG=$1
    DOTEST=$2
    echo
    echo
    echo "[1;32m>>> compiling $PKG <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<[0m"
    cd $PKG
    touch *.go
    go install
    if [ "$DOTEST" -eq 1 ]; then
        go test
    fi
    cd $HERE
}

for p in chk io utl; do
    install_and_test $p 1
done

if [[ $platform == 'linux' ]]; then
    install_and_test mpi 0
fi

for p in la plt fdm num fun ode gm rnd opt graph; do
    install_and_test $p 1
done

if [[ $platform == 'linux' ]]; then
    install_and_test vtk 0
    install_and_test tsr 1
fi

{'fraction_non_alphanumeric': 0.1996615905245347, 'fraction_numerical': 0.021996615905245348, 'mean_word_length': 3.096997690531178, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 9, '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': '577970', 'n_tokens_mistral': 724, 'n_tokens_neox': 726, 'n_words': 193}