<commit_before>#!/bin/bash

set -x

LOG=`mktemp -t log-XXXXXX`

(
    scripts/run_remote.sh triangle_counting theirs twitter_rv org 2>&1
    scripts/run_remote.sh hop_dist theirs twitter_rv org 2>&1
) | tee $LOG

echo "Log is at $LOG"<commit_msg>Added script to test all configuration/programs<commit_after>#!/bin/bash

#set -x

PROG=pagerank
OPTS=

txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtrst='\e[0m'    # Text Reset

(
	for PROG in "pagerank" "triangle_counting" "hop_dist"; do
		for OPTS in "" "-d" "-d -r" "-d -r -p" "-d -r -p -h"; do
			TMP=`mktemp /tmp/tmp-run_all-XXXXXX`
			scripts/run.sh $OPTS $PROG 32 ours soc-LiveJournal1 &> $TMP
			RC=$?
			if [[ $RC -eq 0 ]]; then
				RCS=$txtgrn"ok  "$txtrst
			else
				RCS=$txtred"fail"$txtrst
			fi
			echo -e "Return code [$RCS] for [$PROG] with [$OPTS] was [$RC] ... log at [$TMP]"
		done
	done
)
{'fraction_non_alphanumeric': 0.16917728852838934, 'fraction_numerical': 0.01738122827346466, 'mean_word_length': 3.235294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5767813', 'n_tokens_mistral': 417, 'n_tokens_neox': 368, 'n_words': 98}