<commit_before>#!/bin/bash

ITERATIONS=$1
shift
PROGRAM=$1
shift
ARGS="$@"

for I in `seq $ITERATIONS`
do
	printf "%d,%s,%s %s,$PROGRAM,$ARGS," $I `hostname` \
		   `date --rfc-3339=seconds -u`
	$PROGRAM -b "$ARGS"
done<commit_msg>Fiddle with bench.sh<commit_after>#!/bin/bash

ITERATIONS=$1
shift
TAG=$1
shift
# seriously shell scripts are the worst and I should stop
ARGS="$1"
shift
PROGRAMS="$@"

for I in `seq $ITERATIONS`
do
    for PROGRAM in $PROGRAMS
    do
	FILE=data/$PROGRAM-$TAG.csv
	printf "%d,%s,%s %s,$PROGRAM,$ARGS," $I `hostname` \
		   `date --rfc-3339=seconds -u` >> $FILE
	./$PROGRAM -b "$ARGS" >> $FILE
	#sleep 60 # evade, don't solve, temperature problems
    done
done
{'fraction_non_alphanumeric': 0.17655571635311143, 'fraction_numerical': 0.02170767004341534, 'mean_word_length': 4.0510948905109485, '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': '656957', 'n_tokens_mistral': 300, 'n_tokens_neox': 266, 'n_words': 77}