<commit_before>#!/bin/bash

TIMINGS_FILE=/tmp/osrm.timings
NAME=$1
CMD=${@:2}
START=$(date "+%s.%N")
/bin/bash -c "$CMD"
END=$(date "+%s.%N")
TIME="$(echo "$END - $START" | bc)s"
NEW_ENTRY="$NAME\t$TIME\t$(date -Iseconds)"

echo -e "$NEW_ENTRY" >> $TIMINGS_FILE<commit_msg>Removes Gnu Date Usage 👴<commit_after>#!/bin/bash

TIMINGS_FILE=/tmp/osrm.timings
NAME=$1
CMD=${@:2}
START=$(date "+%s.%N")
/bin/bash -c "$CMD"
END=$(date "+%s.%N")
TIME="$(echo "$END - $START" | bc)s"
NEW_ENTRY="$NAME\t$TIME"

echo -e "$NEW_ENTRY" >> $TIMINGS_FILE
{'fraction_non_alphanumeric': 0.27137546468401486, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 5.573170731707317, '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': '717146', 'n_tokens_mistral': 253, 'n_tokens_neox': 235, 'n_words': 44}