<commit_before>#!/bin/bash -eu

function main() {
  local cwd
  cwd="${1}"

  chmod +x tool-om/om-linux
  local om
  om="tool-om/om-linux"

  printf 'Waiting for opsman to come up'
  until $(curl --output /dev/null --silent --head --fail -k ${OPSMAN_URI}); do
    printf '.'
    sleep 5
  done

  om --target "${OPSMAN_URI}" \
     --skip-ssl-validation \
     import-installation \
     --installation "${cwd}/opsmgr-settings/${OPSMAN_SETTINGS_FILENAME}" \
     --decryption-passphrase "${OPSMAN_PASSPHRASE}"
 }

 main "${PWD}"<commit_msg>Fix path to om tool<commit_after>#!/bin/bash -eu

function main() {
  local cwd
  cwd="${1}"

  chmod +x tool-om/om-linux
  local om="tool-om/om-linux"

  printf "Waiting for %s to come up" "$OPSMAN_URI"
  until $(curl --output /dev/null --silent --head --fail -k ${OPSMAN_URI}); do
    printf '.'
    sleep 5
  done
  printf '\n'

  $om --target "${OPSMAN_URI}" \
      --skip-ssl-validation \
      import-installation \
      --installation "${cwd}/opsmgr-settings/${OPSMAN_SETTINGS_FILENAME}" \
      --decryption-passphrase "${OPSMAN_PASSPHRASE}"
 }

 main "${PWD}"
{'fraction_non_alphanumeric': 0.17477477477477477, 'fraction_numerical': 0.0036036036036036037, 'mean_word_length': 2.703333333333333, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3207235', 'n_tokens_mistral': 424, 'n_tokens_neox': 413, 'n_words': 95}