<commit_before>#!/usr/bin/env sh
stable="0.3.0"
gitrevs="$(git rev-list v$stable..HEAD 2> /dev/null | wc -l)"
githash="$(git rev-parse --short HEAD 2> /dev/null)"

if [ "$gitrevs" -eq "0" ]; then
    unset gitrevs
fi

if [ -n "$gitrevs" ]; then
    gitrevs=".$gitrevs"
fi

printf "namespace KSPNameGen\n{\n\tpublic static class ProductVersion\n\t{\n\t\tpublic const string productVersion = \"%s%s-g%s\";\n\t}\n}\n" "$stable" "$gitrevs" "$githash" > KSPNameGen/ProductVersion.cs
<commit_msg>KSPNameGen v0.3.1<commit_after>#!/usr/bin/env sh
stable="0.3.1"

printf "namespace KSPNameGen\n{\n\tpublic static class ProductVersion\n\t{\n\t\tpublic const string productVersion = \"%s\";\n\t}\n}\n" "$stable" > KSPNameGen/ProductVersion.cs

{'fraction_non_alphanumeric': 0.20081967213114754, 'fraction_numerical': 0.01639344262295082, 'mean_word_length': 4.198581560283688, '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': '303618', 'n_tokens_mistral': 299, 'n_tokens_neox': 299, 'n_words': 60}