<commit_before>#!/bin/bash
if [ "$1" == "all" ]; then
    VERSION=
elif [ -z "$1" ] || [ "$1" == "default" ]; then
    if [ "$VERSION_SCRIPT" == "" ] || [ "$VERSION_SCRIPT" == "default" ]; then
        VERSION=latest
    else
        VERSION=$($VERSION_SCRIPT)
    fi
elif [ -n "$1" ]; then
    VERSION=$1
fi<commit_msg>version defaults to git head commit hash if available<commit_after>#!/bin/bash
if [ "$1" == "all" ]; then
    VERSION=
elif [ -z "$1" ] || [ "$1" == "default" ]; then
    if [ "$VERSION_SCRIPT" == "" ] || [ "$VERSION_SCRIPT" == "default" ]; then
         HEAD="$(git rev-parse HEAD 2>&1)"
         if [[ $HEAD =~ ^[0-9a-f]{5,40}$ ]]; then
            VERSION=$HEAD
        else
            VERSION=latest
        fi
    else
        VERSION=$($VERSION_SCRIPT)
    fi
elif [ -n "$1" ]; then
    VERSION=$1
fi
{'fraction_non_alphanumeric': 0.2079806529625151, 'fraction_numerical': 0.020556227327690448, 'mean_word_length': 2.3658536585365852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2795799', 'n_tokens_mistral': 309, 'n_tokens_neox': 284, 'n_words': 72}