<commit_before># This script takes care of building your crate and packaging it for release

set -ex

main() {
    local src=$(pwd) \
          stage=

    case $TRAVIS_OS_NAME in
        linux)
            stage=$(mktemp -d)
            ;;
        osx)
            stage=$(mktemp -d -t tmp)
            ;;
    esac

    cargo build --release --all

    cp target/release/sputnikvm $stage/

    cd $stage
    tar czf $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz *
    sha256sum $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz
    if [ "$TRAVIS_OS_NAME" -eq "osx" ]
    then
        shasum -a 256 $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz > $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz.sha256
    else
        sha256sum $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz > $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz.sha256
    fi
    cd $src

    rm -rf $stage
}

main<commit_msg>Try to change to use shasum altogether for deployment<commit_after># This script takes care of building your crate and packaging it for release

set -ex

main() {
    local src=$(pwd) \
          stage=

    case $TRAVIS_OS_NAME in
        linux)
            stage=$(mktemp -d)
            ;;
        osx)
            stage=$(mktemp -d -t tmp)
            ;;
    esac

    cargo build --release --all

    cp target/release/sputnikvm $stage/

    cd $stage
    tar czf $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz *
    shasum -a 256 $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz
    shasum -a 256 $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz > $src/sputnikvm-$TRAVIS_OS_NAME-$TRAVIS_TAG.tar.gz.sha256
    cd $src

    rm -rf $stage
}

main
{'fraction_non_alphanumeric': 0.11392405063291139, 'fraction_numerical': 0.014466546112115732, 'mean_word_length': 2.2358674463937622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3057045', 'n_tokens_mistral': 669, 'n_tokens_neox': 631, 'n_words': 133}