<commit_before>_DEBUG="${_DEBUG:=}"
if [[ "${_DEBUG}" -eq 1 ]]; then
  gsutil() {
    echo "DEBUG: would have run 'gsutil ${*}'" >&2
  }

  git() {
    echo "DEBUG: would have run 'git ${*}'" >&2
  }

  curl() {
    echo "DEBUG: would have run 'curl ${*}'" >&2
  }
fi

BUCKET_URL="https://storage.googleapis.com"
BUCKET_PATH="csm-artifacts/asm"; readonly BUCKET_PATH

CURRENT_RELEASE="release-1.10-asmcli"; readonly CURRENT_RELEASE

STABLE_VERSION_FILE="ASMCLI_VERSIONS"; readonly STABLE_VERSION_FILE
STABLE_VERSION_FILE_PATH="${BUCKET_PATH}/${STABLE_VERSION_FILE}"; readonly STABLE_VERSION_FILE_PATH
HOLD_TYPE="temp"; readonly HOLD_TYPE
trap 'gsutil retention "${HOLD_TYPE}" release gs://"${STABLE_VERSION_FILE_PATH}"' ERR # hope that the hold is cleared

prod_releases() {
  cat << EOF
release 1.11
EOF
}

staging_releases() {
  cat << EOF
staging 1.11
EOF
}

other_releases() {
  cat << EOF
main alpha
EOF
}

# all_releases should write two strings to stdout: <branch-name> <file-suffix>
# <file_suffix> is the string that comes after the script name in the GCS bucket
# e.g. the pair "branch" "demo" will check out the git branch "branch" and
# upload a file called "<SCRIPT_NAME>_demo" to the GCS bucket.
all_releases() {
  while read -r type version; do
    echo "${type}-${version}" "${version}"<commit_msg>Update release script<commit_after>_DEBUG="${_DEBUG:=}"
if [[ "${_DEBUG}" -eq 1 ]]; then
  gsutil() {
    echo "DEBUG: would have run 'gsutil ${*}'" >&2
  }

  git() {
    echo "DEBUG: would have run 'git ${*}'" >&2
  }

  curl() {
    echo "DEBUG: would have run 'curl ${*}'" >&2
  }
fi

BUCKET_URL="https://storage.googleapis.com"
BUCKET_PATH="csm-artifacts/asm"; readonly BUCKET_PATH

CURRENT_RELEASE="release-1.10-asmcli"; readonly CURRENT_RELEASE

STABLE_VERSION_FILE="ASMCLI_VERSIONS"; readonly STABLE_VERSION_FILE
STABLE_VERSION_FILE_PATH="${BUCKET_PATH}/${STABLE_VERSION_FILE}"; readonly STABLE_VERSION_FILE_PATH
HOLD_TYPE="temp"; readonly HOLD_TYPE
trap 'gsutil retention "${HOLD_TYPE}" release gs://"${STABLE_VERSION_FILE_PATH}"' ERR # hope that the hold is cleared

prod_releases() {
  cat << EOF
release 1.11
release 1.12
EOF
}

staging_releases() {
  cat << EOF
staging 1.11
EOF
}

other_releases() {
  cat << EOF
main alpha
EOF
}

# all_releases should write two strings to stdout: <branch-name> <file-suffix>
# <file_suffix> is the string that comes after the script name in the GCS bucket
# e.g. the pair "branch" "demo" will check out the git branch "branch" and
# upload a file called "<SCRIPT_NAME>_demo" to the GCS bucket.
all_releases() {
  while read -r type version; do
    echo "${type}-${version}" "${version}"
{'fraction_non_alphanumeric': 0.1423178557946395, 'fraction_numerical': 0.010947527368818422, 'mean_word_length': 4.81140350877193, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 17, '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': '3283833', 'n_tokens_mistral': 972, 'n_tokens_neox': 921, 'n_words': 269}