<commit_before>#!/bin/bash

DefaultWidth=20
DefaultHeight=10
DefaultAnts=10
DefaultSteps=100

Width=${1:-$DefaultWidth}
Height=${2:-$DefaultHeight}
Ants=${3:-$DefaultAnts}
Steps=${4:-$DefaultSteps}

echo ""
echo "# version seq"
erl -pa ebin -pa deps/skel/ebin -eval "parallant:start(parallant_seq, gbtree_based,$Width,$Height,$Ants,$Steps,false)." -run init stop -noshell

echo ""
echo "# version tiled no_skel"
erl -pa ebin -pa deps/skel/ebin -eval "parallant:start(parallant_tiled, gbtree_based,$Width,$Height,$Ants,$Steps,false)." -run init stop -noshell

#start(Model, Impl, Width, Height, PopulationSize, Steps)

# make clean
# ./rebar clean compile -D skel<commit_msg>Run all 4 pairs of model and backend in tests<commit_after>#!/bin/bash

DefaultWidth=20
DefaultHeight=10
DefaultAnts=10
DefaultSteps=100

Width=${1:-$DefaultWidth}
Height=${2:-$DefaultHeight}
Ants=${3:-$DefaultAnts}
Steps=${4:-$DefaultSteps}

models="parallant_seq parallant_tiled"
backends="list_based gbtree_based"

for model in $models; do
    for backend in $backends; do
        echo ""
        echo "# version $model with $backend backend"
        erl -pa ebin -pa deps/skel/ebin -eval "parallant:start($model, $backend,$Width,$Height,$Ants,$Steps,false)." -run init stop -noshell
    done
done

# make clean
# ./rebar clean compile -D skel
{'fraction_non_alphanumeric': 0.14696969696969697, 'fraction_numerical': 0.020454545454545454, 'mean_word_length': 5.320574162679426, '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': '577183', 'n_tokens_mistral': 497, 'n_tokens_neox': 471, 'n_words': 114}