<commit_before>#!/bin/bash

RES_DIR="results"
# results file name format: DATASET_THETA_LAMBDA_ALGO-INDEX
confs=$(ls $RES_DIR | cut -d '_' -f 1-3 | sort | uniq)
algos=$(ls $RES_DIR | cut -d '_' -f 4 | sort | uniq)

parallel -u -j0 "[[ \"{2}\" -eq \"{3}\" ]] || scripts/diff.py $RES_DIR/{1}_{2} $RES_DIR/{1}_{3}" ::: $confs ::: $algos ::: $algos
<commit_msg>More robust script to check results (ignore temp files)<commit_after>#!/bin/bash

RES_DIR="results"
# results file name format: DATASET_THETA_LAMBDA_ALGO-INDEX
confs=$(ls $RES_DIR | grep '_' | cut -d '_' -f 1-3 | sort | uniq)
algos=$(ls $RES_DIR | grep '_' | cut -d '_' -f 4   | sort | uniq)

parallel -u -j0 "[[ \"{2}\" -eq \"{3}\" ]] || scripts/diff.py $RES_DIR/{1}_{2} $RES_DIR/{1}_{3}" ::: $confs ::: $algos ::: $algos

{'fraction_non_alphanumeric': 0.23333333333333334, 'fraction_numerical': 0.02564102564102564, 'mean_word_length': 3.911949685534591, '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': '6310761', 'n_tokens_mistral': 344, 'n_tokens_neox': 334, 'n_words': 80}