<commit_before>#!/usr/bin/env bash

set -euo pipefail

if [[ $INPUT_USE_BUILDPACK == "true" ]]; then
    export STACK=$INPUT_STACK

    # Fetch buildpack
    curl -o buildpack.tgz "$INPUT_BUILDPACK_URL"
    mkdir -p build/pack
    mkdir -p build/cache
    tar -xf buildpack.tgz -C build/pack
    rm buildpack.tgz

    # Run buildpack
    ./build/pack/bin/compile . ./build/cache/
    mkdir -p vendor/cache
    mv ./build/cache ./vendor/cache
    rm -rf build/
fi

# Install AWS CLI
export AWS_REGION=$INPUT_AWS_REGION \
    AWS_ACCESS_KEY_ID=$INPUT_AWS_ACCESS_KEY_ID \
    AWS_SECRET_ACCESS_KEY=$INPUT_AWS_SECRET_ACCESS_KEY

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -qq awscliv2.zip
./aws/install
rm -rf aws awscliv2.zip

# Only build for branches
if [[ ! $INPUT_GITHUB_REF == "refs/heads"* ]];
then
    exit 0
fi
<commit_msg>add go install package spec env<commit_after>#!/usr/bin/env bash

set -euo pipefail

if [[ $INPUT_USE_BUILDPACK == "true" ]]; then
    export STACK=$INPUT_STACK
    export GO_INSTALL_PACKAGE_SPEC="./cmd/*"

    # Fetch buildpack
    curl -o buildpack.tgz "$INPUT_BUILDPACK_URL"
    mkdir -p build/pack
    mkdir -p build/cache
    tar -xf buildpack.tgz -C build/pack
    rm buildpack.tgz

    # Run buildpack
    ./build/pack/bin/compile . ./build/cache/
    mkdir -p vendor/cache
    mv ./build/cache ./vendor/cache
    rm -rf build/
fi

# Install AWS CLI
export AWS_REGION=$INPUT_AWS_REGION \
    AWS_ACCESS_KEY_ID=$INPUT_AWS_ACCESS_KEY_ID \
    AWS_SECRET_ACCESS_KEY=$INPUT_AWS_SECRET_ACCESS_KEY

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -qq awscliv2.zip
./aws/install
rm -rf aws awscliv2.zip

# Only build for branches
if [[ ! $INPUT_GITHUB_REF == "refs/heads"* ]];
then
    exit 0
fi

{'fraction_non_alphanumeric': 0.11774461028192372, 'fraction_numerical': 0.008844665561083471, 'mean_word_length': 3.14187643020595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1770161', 'n_tokens_mistral': 724, 'n_tokens_neox': 701, 'n_words': 155}