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

wd=$(realpath $(dirname $0)/..)
export BUILD_DIR=$(realpath $(dirname $0)/..)
pushd $BUILD_DIR > /dev/null
export GOVERSION=${GOVERSION:-1.11}
export REVISION=${GIT_COMMIT:-$(git rev-parse HEAD)}
export LIBRARY_REVISION="3f4dacd4d38a89e715d8c5f52f7cfbf776728a2f"
export VERSION=$(cat ${wd}/.version)
export SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)
export LAST_CHANGE=$(git log -1 --format=%cd)

if [[ -z $LIBRARY_REVISION ]]; then
  echo "unable to get library revision"
  exit 1
fi<commit_msg>Auto extract library revision again<commit_after>#!/bin/bash
set -e

wd=$(realpath $(dirname $0)/..)
export BUILD_DIR=$(realpath $(dirname $0)/..)
pushd $BUILD_DIR > /dev/null
export GOVERSION=${GOVERSION:-1.11}
export REVISION=${GIT_COMMIT:-$(git rev-parse HEAD)}
export LIBRARY_REVISION=$(cat Gopkg.lock | grep github.com/phrase/phraseapp-go -A 2 | tail -n 1 | cut -d '"' -f 2)
export VERSION=$(cat ${wd}/.version)
export SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)
export LAST_CHANGE=$(git log -1 --format=%cd)

if [[ -z $LIBRARY_REVISION ]]; then
  echo "unable to get library revision"
  exit 1
fi
{'fraction_non_alphanumeric': 0.17253521126760563, 'fraction_numerical': 0.03609154929577465, 'mean_word_length': 5.047872340425532, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2525138', 'n_tokens_mistral': 458, 'n_tokens_neox': 442, 'n_words': 109}