<commit_before>#!/bin/bash
set -e

if [[ "$CODENAME" == "" ]]; then
  echo "Error: Missing \$CODENAME (stable or unstable)"
  exit 1
fi

function build() {
  echo "--- Building debian package $1/$2"

  BINARY_FILENAME="buildkite-agent-$1-$2"

  # Download the built binary artifact
  buildbox-agent artifact download "pkg/$BINARY_FILENAME" . --job ""

  # Build the debian package using the architectre and binary
  ./scripts/utils/build-debian-package.sh $2 $BINARY_FILENAME
}

function publish() {
  echo "--- Shipping $1"
  ./scripts/utils/publish-debian-package.sh $1 $CODENAME<commit_msg>Search and use the debian artifact from the right location.<commit_after>#!/bin/bash
set -e

if [[ "$CODENAME" == "" ]]; then
  echo "Error: Missing \$CODENAME (stable or unstable)"
  exit 1
fi

function build() {
  echo "--- Building debian package $1/$2"

  BINARY_FILENAME="pkg/buildkite-agent-$1-$2"

  # Download the built binary artifact
  buildbox-agent artifact download $BINARY_FILENAME . --job ""

  # Build the debian package using the architectre and binary
  ./scripts/utils/build-debian-package.sh $2 $BINARY_FILENAME
}

function publish() {
  echo "--- Shipping $1"
  ./scripts/utils/publish-debian-package.sh $1 $CODENAME
{'fraction_non_alphanumeric': 0.13902439024390245, 'fraction_numerical': 0.013008130081300813, 'mean_word_length': 3.7164750957854404, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4860580', 'n_tokens_mistral': 439, 'n_tokens_neox': 384, 'n_words': 116}