<commit_before>#!/usr/bin/env bash 
set -e

CURRENT_VERSION=`npm show vlocity version`

if [ $CI_BRANCH == "master" ]; then
    npm version $CURRENT_VERSION --no-git-tag-version --allow-same-version

    if [[ $CI_COMMIT_MESSAGE == *"New Minor Version"* ]]; then
        npm version minor --no-git-tag-version
    else
        npm version patch --no-git-tag-version
    fi
else 
    echo $CI_COMMIT_MESSAGE

    TOTAL_COMMITS_COUNT=`git rev-parse --short HEAD`

    npm version ${CURRENT_VERSION}-${CI_BRANCH}-${TOTAL_COMMITS_COUNT} --no-git-tag-version
fi

./codeship/decryptFiles.sh

if [ $CI_BRANCH == "master" ]; then

    npm run-script build

    P_VERSION=`cat package.json | jq -r '. | .version'` 

    GITHUB_ASSETS="dist/vlocity-linux,dist/vlocity-macos,dist/vlocity-win.exe"

    publish-release --notes "$P_VERSION" --token $GITHUB --target_commitish $CI_BRANCH --owner vlocityinc --repo vlocity_build --name "v$P_VERSION" --tag "v$P_VERSION" --assets "$GITHUB_ASSETS" --draft
fi

cp codeship/unencrypted_files/npmrc .npmrc

if [ $CI_BRANCH == "master" ]; then
    npm publish .
else 
    npm publish . --tag="$CI_BRANCH"
fi<commit_msg>Retry getting count from commits in version.<commit_after>#!/usr/bin/env bash 
set -e

CURRENT_VERSION=`npm show vlocity version`

if [ $CI_BRANCH == "master" ]; then
    npm version $CURRENT_VERSION --no-git-tag-version --allow-same-version

    if [[ $CI_COMMIT_MESSAGE == *"New Minor Version"* ]]; then
        npm version minor --no-git-tag-version
    else
        npm version patch --no-git-tag-version
    fi
else 
    echo $CI_COMMIT_MESSAGE

    TOTAL_COMMITS_COUNT=`git rev-list --count HEAD`

    npm version ${CURRENT_VERSION}-${CI_BRANCH}-${TOTAL_COMMITS_COUNT} --no-git-tag-version
fi

./codeship/decryptFiles.sh

if [ $CI_BRANCH == "master" ]; then

    npm run-script build

    P_VERSION=`cat package.json | jq -r '. | .version'` 

    GITHUB_ASSETS="dist/vlocity-linux,dist/vlocity-macos,dist/vlocity-win.exe"

    publish-release --notes "$P_VERSION" --token $GITHUB --target_commitish $CI_BRANCH --owner vlocityinc --repo vlocity_build --name "v$P_VERSION" --tag "v$P_VERSION" --assets "$GITHUB_ASSETS" --draft
fi

cp codeship/unencrypted_files/npmrc .npmrc

if [ $CI_BRANCH == "master" ]; then
    npm publish .
else 
    npm publish . --tag="$CI_BRANCH"
fi
{'fraction_non_alphanumeric': 0.14058469475494412, 'fraction_numerical': 0.0, 'mean_word_length': 3.2775735294117645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4290063', 'n_tokens_mistral': 892, 'n_tokens_neox': 829, 'n_words': 189}