<commit_before>#!/bin/bash
# Write Docker tags for Drone CI: version-YYMMDD, version, major version, latest

VERSION="$1"

if test -z "$VERSION"; then
    echo "Usage: $0 <version>"
    exit 1
fi

if [[ "$VERSION" == *"alpha"* || "$VERSION" == *"dev"* ]]; then
    # This should never trigger if reference based tagging is enabled
    echo "ERROR: Pushing alpha / dev tags is not supported"
    exit 1
fi

major_version="$(printf '%s' "$VERSION" | cut -d . -f 1)"

# Date based tag
printf '%s' "$VERSION-$(date +%Y%m%d),"
# Program version
printf '%s' "$VERSION,"

if [[ "$VERSION" == *"beta"* ]]; then
    printf '%s' "$major_version-beta,"
    printf '%s' "latest-beta"
else  # Stable or rc build
    printf '%s' "$major_version,"
    printf '%s' "latest"
fi<commit_msg>drone CI: remove date based tags, it isn't strictly necessary<commit_after>#!/bin/bash
# Write Docker tags for Drone CI: version-YYMMDD, version, major version, latest

VERSION="$1"

if test -z "$VERSION"; then
    echo "Usage: $0 <version>"
    exit 1
fi

if [[ "$VERSION" == *"alpha"* || "$VERSION" == *"dev"* ]]; then
    # This should never trigger if reference based tagging is enabled
    echo "ERROR: Pushing alpha / dev tags is not supported"
    exit 1
fi

major_version="$(printf '%s' "$VERSION" | cut -d . -f 1)"

# Program version
printf '%s' "$VERSION,"

if [[ "$VERSION" == *"beta"* ]]; then
    printf '%s' "$major_version-beta,"
    printf '%s' "latest-beta"
else  # Stable or rc build
    printf '%s' "$major_version,"
    printf '%s' "latest"
fi
{'fraction_non_alphanumeric': 0.17263843648208468, 'fraction_numerical': 0.006514657980456026, 'mean_word_length': 3.697247706422018, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7419646', 'n_tokens_mistral': 524, 'n_tokens_neox': 503, 'n_words': 189}