<commit_before>#!/bin/bash

COMMAND=$1
COMMAND=${COMMAND:?"must be specified"}

shift

. /etc/default/<%= name %>

cd $HOME && exec "vendor/pkgr/processes/${COMMAND}" $@<commit_msg>Improve runner.<commit_after>#!/bin/bash

function usage {
  echo "Usage: $0 run COMMAND [options]"
  exit 1
}

COMMAND_TYPE=""
COMMAND=""

while : ; do
  case "$1" in
    run)
      COMMAND_TYPE="$1"
      shift
      COMMAND="$1"
      shift ;;
    *)
      [ "${COMMAND_TYPE}" = "run" ] || usage
      [ "${COMMAND}" = "" ] && usage
      . /etc/default/<%= name %>
      cd $HOME && exec "vendor/pkgr/processes/${COMMAND}" "$@"
      break ;;
  esac
done
{'fraction_non_alphanumeric': 0.20187793427230047, 'fraction_numerical': 0.009389671361502348, 'mean_word_length': 2.78698224852071, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7311457', 'n_tokens_mistral': 241, 'n_tokens_neox': 232, 'n_words': 50}