<commit_before>#!/usr/bin/env bash
#
# Copyright (c) 2021 The Gridcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

export LC_ALL=C.UTF-8

DOCKER_EXEC mv release/* /release

if [[ $HOST = *-apple-* ]]; then
	KV=$(cat $BASE_ROOT_DIR/depends/hosts/darwin.mk | grep "OSX_MIN_VERSION=")
	VER=${KV#OSX_MIN_VERSION=}
	for f in /tmp/release/*.dmg; do
		mv $f ${f%.dmg}-min-$VER.dmg
	done
fi

cd /tmp/release/
for f in *; do
    sha256sum $f > $f.SHA256
done<commit_msg>Use cd ... || exit in case cd fails.<commit_after>#!/usr/bin/env bash
#
# Copyright (c) 2021 The Gridcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

export LC_ALL=C.UTF-8

DOCKER_EXEC mv release/* /release

if [[ $HOST = *-apple-* ]]; then
	KV=$(cat $BASE_ROOT_DIR/depends/hosts/darwin.mk | grep "OSX_MIN_VERSION=")
	VER=${KV#OSX_MIN_VERSION=}
	for f in /tmp/release/*.dmg; do
		mv $f ${f%.dmg}-min-$VER.dmg
	done
fi

cd /tmp/release/ || { echo "Failure"; exit 1; }
for f in *; do
    sha256sum $f > $f.SHA256
done
{'fraction_non_alphanumeric': 0.15682967959527824, 'fraction_numerical': 0.0193929173693086, 'mean_word_length': 3.8252032520325203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6492422', 'n_tokens_mistral': 488, 'n_tokens_neox': 454, 'n_words': 121}