<commit_before>#!/bin/bash
set -o errexit
set -o nounset

STUNNEL_VERSION="5.36"
STUNNEL_SHA1SUM="60f7c761214f1959f7d52f0164f77d8d2a9328e6"

STUNNEL_NAME="stunnel-${STUNNEL_VERSION}"
STUNNEL_ARCHIVE="${STUNNEL_NAME}.tar.gz"
STUNNEL_URL="https://www.stunnel.org/downloads/${STUNNEL_ARCHIVE}"

STUNNEL_BUILD_DEPS=(build-base linux-headers wget openssl-dev)

apk-install libssl1.0 libcrypto1.0 "${STUNNEL_BUILD_DEPS[@]}"

BUILD_DIR="$(mktemp -d)"
pushd "$BUILD_DIR"

wget "$STUNNEL_URL"
echo "${STUNNEL_SHA1SUM}  ${STUNNEL_ARCHIVE}" | sha1sum -c -
tar -xzf "$STUNNEL_ARCHIVE"

pushd "$STUNNEL_NAME"
./configure --disable-fips
make install
popd

popd
rm -rf "$BUILD_DIR"<commit_msg>Use Aptible mirror of stunnel<commit_after>#!/bin/bash
set -o errexit
set -o nounset

STUNNEL_VERSION="5.37"
STUNNEL_SHA1SUM="9ec0c64838b3013b38e2cac8e4500219a027831c"

STUNNEL_NAME="stunnel-${STUNNEL_VERSION}"
STUNNEL_ARCHIVE="${STUNNEL_NAME}.tar.gz"
STUNNEL_URL="https://s3.amazonaws.com/aptible-source-archives/${STUNNEL_ARCHIVE}"

STUNNEL_BUILD_DEPS=(build-base linux-headers wget openssl-dev)

apk-install libssl1.0 libcrypto1.0 "${STUNNEL_BUILD_DEPS[@]}"

BUILD_DIR="$(mktemp -d)"
pushd "$BUILD_DIR"

wget "$STUNNEL_URL"
echo "${STUNNEL_SHA1SUM}  ${STUNNEL_ARCHIVE}" | sha1sum -c -
tar -xzf "$STUNNEL_ARCHIVE"

pushd "$STUNNEL_NAME"
./configure --disable-fips
make install
popd

popd
rm -rf "$BUILD_DIR"
{'fraction_non_alphanumeric': 0.14708002883922133, 'fraction_numerical': 0.05623648161499639, 'mean_word_length': 6.84180790960452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6053694', 'n_tokens_mistral': 649, 'n_tokens_neox': 635, 'n_words': 93}