<commit_before>#!/bin/bash
#
# -- Run as: ./run_range_test_lettvin_diffuse.sh 1> test_output/stdout.txt 2> test_output/stderr.txt
#
errecho(){ >&2 echo $@; }

# Declare test ranges:
declare -a range_n=$(seq 3 2 90) #$(seq 3 90)  #e.g. ("44" "45")
declare -a range_j=("0.001" "0.0001" "0.00001" "0.000001" "0.0000001")
declare -a range_r=("0")
max_iterations=50

# Declare test output location:
result_set="test_output/Results_RangeTest_"$(date -d "today" +"%Y-%m-%d_%H")"-00"
relative_result_path_from_run="exp/Lettvin_Repulsion/"

# Specify properties file location(s).
default_properties_filename="../../properties/default.properties"
pre_default_properties_filename=$default_properties_filename".pre-"${result_set//\//-}
post_default_properties_filename=$default_properties_filename".post-"${result_set//\//-}




function pre_test_file_organisation(){
    # Prep File Organisation & properties file backup:
    mkdir -p $result_set
    cp -n $default_properties_filename $pre_default_properties_filename
}

function post_test_file_organisation(){
    # Backup the finished properties file into $post_default_properties_filename. (ensure there's a backup)
    cp -b $default_properties_filename $post_default_properties_filename<commit_msg>Update exp range sequence to extend test range on issue #9.<commit_after>#!/bin/bash
#
# -- Run as: ./run_range_test_lettvin_diffuse.sh 1> test_output/stdout.txt 2> test_output/stderr.txt
#
errecho(){ >&2 echo $@; }

# Declare test ranges:
declare -a range_n=$(seq 4 2 90) #$(seq 3 90)  #e.g. ("44" "45")
declare -a range_j=("0.001" "0.0001" "0.00001" "0.000001" "0.0000001")
declare -a range_r=("0")
max_iterations=50

# Declare test output location:
result_set="test_output/Results_RangeTest_"$(date -d "today" +"%Y-%m-%d_%H")"-00"
relative_result_path_from_run="exp/Lettvin_Repulsion/"

# Specify properties file location(s).
default_properties_filename="../../properties/default.properties"
pre_default_properties_filename=$default_properties_filename".pre-"${result_set//\//-}
post_default_properties_filename=$default_properties_filename".post-"${result_set//\//-}




function pre_test_file_organisation(){
    # Prep File Organisation & properties file backup:
    mkdir -p $result_set
    cp -n $default_properties_filename $pre_default_properties_filename
}

function post_test_file_organisation(){
    # Backup the finished properties file into $post_default_properties_filename. (ensure there's a backup)
    cp -b $default_properties_filename $post_default_properties_filename
{'fraction_non_alphanumeric': 0.13902053712480253, 'fraction_numerical': 0.03909952606635071, 'mean_word_length': 5.701058201058201, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4437516', 'n_tokens_mistral': 926, 'n_tokens_neox': 825, 'n_words': 179}