<commit_before>#!/bin/bash

set -e
set -u

BUILDKITE_VERSION=3.0-beta.19

install_buildkite() {
  echo "Installing buildkite-agent"
  curl -Lfs -o buildkite.tar.gz "https://github.com/buildkite/agent/releases/download/v${BUILDKITE_VERSION}/buildkite-agent-linux-amd64-${BUILDKITE_VERSION}.tar.gz"
  mkdir -p "$HOME/buildkite-agent"
  tar -xzf buildkite.tar.gz -C "$HOME/buildkite-agent"
  sudo mkdir -p /usr/local/bin
  sudo chmod +x "$HOME/buildkite-agent/buildkite-agent"
  sudo ln -snf "$HOME/buildkite-agent/buildkite-agent" /usr/local/bin/
}

install_service() {
  sudo mv /tmp/vmkite/vmkite-buildkite-agent.sh /usr/local/bin/vmkite-buildkite-agent
  sudo mv /tmp/vmkite/vmkite-buildkite-agent.service /lib/systemd/system/vmkite-buildkite-agent.service
  sudo systemctl enable vmkite-buildkite-agent
}

install_buildkite<commit_msg>Add debugging for provisioned scripts<commit_after>#!/bin/bash

set -e
set -u

BUILDKITE_VERSION=3.0-beta.19

install_buildkite() {
  echo "Installing buildkite-agent"
  curl -Lfs -o buildkite.tar.gz "https://github.com/buildkite/agent/releases/download/v${BUILDKITE_VERSION}/buildkite-agent-linux-amd64-${BUILDKITE_VERSION}.tar.gz"
  mkdir -p "$HOME/buildkite-agent"
  tar -xzf buildkite.tar.gz -C "$HOME/buildkite-agent"
  sudo mkdir -p /usr/local/bin
  sudo chmod +x "$HOME/buildkite-agent/buildkite-agent"
  sudo ln -snf "$HOME/buildkite-agent/buildkite-agent" /usr/local/bin/
}

install_service() {
  ls -al /tmp/vmkite
  sudo mv /tmp/vmkite/vmkite-buildkite-agent.sh /usr/local/bin/vmkite-buildkite-agent
  sudo mv /tmp/vmkite/vmkite-buildkite-agent.service /lib/systemd/system/vmkite-buildkite-agent.service
  sudo systemctl enable vmkite-buildkite-agent
}

install_buildkite
{'fraction_non_alphanumeric': 0.13903432228039558, 'fraction_numerical': 0.006980802792321117, 'mean_word_length': 4.227963525835866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '636275', 'n_tokens_mistral': 721, 'n_tokens_neox': 688, 'n_words': 106}