<commit_before>#!/bin/sh

# Runs all ruby tests in ~/Repos/Scripts/ruby/tests/.

input=$1

if [ "$input" != '' ]; then
    echo "Running: \x1B[92m$input\x1B[0m"
    ruby $input
else
    cd ~/Repos/Scripts/ruby/tests/
    for i in $(find . -type f -name "*.rb"); do
        echo "Running: \x1B[92m$i\x1B[0m"
        ruby $i
    done
fi<commit_msg>Updated test initializer shell script (no using common utilities to render messages).<commit_after>#!/bin/sh

# Runs all ruby tests in ~/Repos/Scripts/ruby/tests/.

. ~/Repos/Scripts/bash/common/common-utilities.sh

input=$1

if [ "$input" != '' ]; then
    message green "Running" "$input"
    ruby $input
else
    cd ~/Repos/Scripts/ruby/tests/
    for input in $(find . -type f -name "*.rb"); do
        message green "Running" "$input"
        ruby $input
    done
fi
{'fraction_non_alphanumeric': 0.1591187270501836, 'fraction_numerical': 0.014687882496940025, 'mean_word_length': 2.684684684684685, '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': '4986348', 'n_tokens_mistral': 318, 'n_tokens_neox': 301, 'n_words': 83}