<commit_before>#!/usr/bin/env bash

PROGRAM="run"
WORKERS=2
TIME=15

while getopts "p:t:w:" opt; do
        case $opt in
                p)
                        PROGRAM=${OPTARG}
                        ;;
                t)
			TIME=${OPTARG}
			;;
                w)
                        WORKERS=${OPTARG}
                        ;;
                \?)
                        echo "Invalid option: -$OPTARG" >&2
                        ;;
        esac
done

./${PROGRAM} -w ${WORKERS} > tmp & sleep ${TIME}; kill -s 9 $!<commit_msg>Changing to “ctrl+c” equivalent quit…<commit_after>#!/usr/bin/env bash

PROGRAM="run"
WORKERS=2
TIME=15

while getopts "p:t:w:" opt; do
        case $opt in
                p)
                        PROGRAM=${OPTARG}
                        ;;
                t)
			TIME=${OPTARG}
			;;
                w)
                        WORKERS=${OPTARG}
                        ;;
                \?)
                        echo "Invalid option: -$OPTARG" >&2
                        ;;
        esac
done

./${PROGRAM} -w ${WORKERS} > tmp & sleep ${TIME}; kill -2 $!
{'fraction_non_alphanumeric': 0.132486388384755, 'fraction_numerical': 0.009074410163339383, 'mean_word_length': 0.9283216783216783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '849152', 'n_tokens_mistral': 361, 'n_tokens_neox': 311, 'n_words': 73}