<commit_before>#!/bin/bash

set -e

if [[ $TRAVIS_TAG ]]; then
    _version=$TRAVIS_TAG;
elif [[ $APPVEYOR_REPO_TAG_NAME ]]; then
    _version=$APPVEYOR_REPO_TAG_NAME;
else
    _version=$(git rev-parse --short HEAD)
fi

echo $_version;<commit_msg>fix: fixed getversion.sh script used in packaging<commit_after>#!/bin/bash

# set -e

if [[ $TRAVIS_TAG ]]; then
    _version=$TRAVIS_TAG;
elif [[ $APPVEYOR_REPO_TAG_NAME ]]; then
    _version=$APPVEYOR_REPO_TAG_NAME;
else
    # Exact
    _version=$(git describe --tags --abbrev=0 --exact-match 2>/dev/null)
    if [[ -z $_version ]]; then
        # Latest tag + commit ID
        _version="$(git describe --tags --abbrev=0).dev-$(git rev-parse --short HEAD)"
    fi
fi

echo $_version;
{'fraction_non_alphanumeric': 0.15006821282401092, 'fraction_numerical': 0.004092769440654843, 'mean_word_length': 3.503067484662577, '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': '6861700', 'n_tokens_mistral': 288, 'n_tokens_neox': 279, 'n_words': 62}