<commit_before>#!/bin/bash

DIRS=$*

for d in $DIRS
do
   LAST_PREDICTIONS=`ls -t1 $d/results*predictions*csv 2>/dev/null | head -n 1`
   auc=nan
   [ -n "$LAST_PREDICTIONS" ] && auc=`python3 auc_pred_csv.py --threshold 5.0 $LAST_PREDICTIONS`

   real=`grep ^real $d/time | cut -d ' ' -f 2`
   echo "$d;$auc;$real"
done<commit_msg>tests: continue if not run<commit_after>#!/bin/bash

DIRS=$*

for d in $DIRS
do
   test -f $d/time || continue
   LAST_PREDICTIONS=`ls -t1 $d/results*predictions*csv 2>/dev/null | head -n 1`
   auc=nan
   [ -n "$LAST_PREDICTIONS" ] && auc=`python3 auc_pred_csv.py --threshold 5.0 $LAST_PREDICTIONS`

   real=`grep ^real $d/time | cut -d ' ' -f 2`
   echo "$d;$auc;$real"
done
{'fraction_non_alphanumeric': 0.17563739376770537, 'fraction_numerical': 0.019830028328611898, 'mean_word_length': 3.5031847133757963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4894355', 'n_tokens_mistral': 329, 'n_tokens_neox': 304, 'n_words': 71}