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

__crossarch_common_version="1.1.0"

__crossarch_archs=(${CROSSARCH_ARCHS:="amd64 armhf aarch64"})
__crossarch_alpine_branch=(${CROSSARCH_ALPINE_BRANCH:="v3.7 v3.9 v3.10"})
__crossarch_use_multiarch_alpine=${CROSSARCH_USE_MULTIARCH_ALPINE:="true"}

__crossarch_build_is_semver=${CROSSARCH_BUILD_IS_SEMVER:="true"}
__crossarch_build_squash=${CROSSARCH_BUILD_SQUASH:="false"}

__die () {
  printf '  ❌ \033[1;31mERROR: %s\033[0m\n' "$@" >&2  # bold red
  exit 1
}

__info () {
  printf '  \033[1;36m> %s\033[0m\n' "$@" >&2  # bold cyan
}

__warn () {
  printf '  ⚠ \033[1;33mWARNING: %s\033[0m\n' "$@" >&2  # bold yellow
}

__crossarch_welcome () {
  local welcome
  welcome=$(cat <<EOF<commit_msg>Fix SC2206 Error<commit_after>#!/usr/bin/env bash

__crossarch_common_version="1.1.0"

__crossarch_archs=(${CROSSARCH_ARCHS:="amd64 armhf aarch64"}) || true
__crossarch_alpine_branch=(${CROSSARCH_ALPINE_BRANCH:="v3.7 v3.9 v3.10"}) || true
__crossarch_use_multiarch_alpine=${CROSSARCH_USE_MULTIARCH_ALPINE:="true"}

__crossarch_build_is_semver=${CROSSARCH_BUILD_IS_SEMVER:="true"}
__crossarch_build_squash=${CROSSARCH_BUILD_SQUASH:="false"}

__die () {
  printf '  ❌ \033[1;31mERROR: %s\033[0m\n' "$@" >&2  # bold red
  exit 1
}

__info () {
  printf '  \033[1;36m> %s\033[0m\n' "$@" >&2  # bold cyan
}

__warn () {
  printf '  ⚠ \033[1;33mWARNING: %s\033[0m\n' "$@" >&2  # bold yellow
}

__crossarch_welcome () {
  local welcome
  welcome=$(cat <<EOF
{'fraction_non_alphanumeric': 0.18230925050641458, 'fraction_numerical': 0.0675219446320054, 'mean_word_length': 5.957746478873239, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '1175890', 'n_tokens_mistral': 735, 'n_tokens_neox': 670, 'n_words': 87}