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

set -e

composer bin box install

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

php $DIR/improve_class_alias.php

vendor/bin/box compile

SIGNING_KEY_ID=${SIGNING_KEY_ID:-<KEY>}

if [[ "$GPG_ENCRYPTION" != '' ]] ; then
    echo "$GPG_ENCRYPTION" | gpg --batch --passphrase-fd 0 keys.asc.gpg
    gpg --batch --yes --import keys.asc
    echo "$SIGNING_KEY" | gpg --batch --passphrase-fd 0 --pinentry-mode loopback -u "$SIGNING_KEY_ID" --armor --detach-sig build/psalm.phar
fi
<commit_msg>Don’t try to import local keys<commit_after>#!/usr/bin/env bash

set -e

composer bin box install

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

php $DIR/improve_class_alias.php

vendor/bin/box compile

SIGNING_KEY_ID=${SIGNING_KEY_ID:-<KEY>}

if [[ "$GPG_ENCRYPTION" != '' ]] ; then
    echo "$GPG_ENCRYPTION" | gpg --batch --passphrase-fd 0 keys.asc.gpg
#    gpg --batch --yes --import keys.asc
    echo "$SIGNING_KEY" | gpg --batch --passphrase-fd 0 --pinentry-mode loopback -u "$SIGNING_KEY_ID" --armor --detach-sig build/psalm.phar
fi

{'fraction_non_alphanumeric': 0.18100358422939067, 'fraction_numerical': 0.008960573476702509, 'mean_word_length': 3.540650406504065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7273675', 'n_tokens_mistral': 467, 'n_tokens_neox': 442, 'n_words': 103}