<commit_before>
util_dir="$(dirname $(readlink -f $BASH_SOURCE))"
hookit_dir="$(readlink -f ${util_dir}/../../src)"
payloads_dir=$(readlink -f ${util_dir}/../payloads)

payload() {
  cat ${payloads_dir}/${1}.json
}

run_hook() {
  container=$1
  hook=$2
  payload=$3

  docker exec \
    $container \
    /opt/nanobox/hooks/$hook "$payload"
}

start_container() {
  name=$1
  ip=$2

  docker run \
    --name=$name \
    -d \
    -m 1024M \
    -e "PATH=$(path)" \
    --privileged \
    --net=nanobox \
    --ip=$ip \<commit_msg>put a quota on filesystem for tests to keep it from using too much when test system has lots of disk space<commit_after>
util_dir="$(dirname $(readlink -f $BASH_SOURCE))"
hookit_dir="$(readlink -f ${util_dir}/../../src)"
payloads_dir=$(readlink -f ${util_dir}/../payloads)

payload() {
  cat ${payloads_dir}/${1}.json
}

run_hook() {
  container=$1
  hook=$2
  payload=$3

  docker exec \
    $container \
    /opt/nanobox/hooks/$hook "$payload"
}

start_container() {
  name=$1
  ip=$2

  docker run \
    --name=$name \
    -d \
    -m 1024M \
    -e "PATH=$(path)" \
    --privileged \
    --net=nanobox \
    --ip=$ip \
    --storage-opt size=5G \
{'fraction_non_alphanumeric': 0.1955969517358171, 'fraction_numerical': 0.017781541066892465, 'mean_word_length': 2.5709969788519635, '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': '4583999', 'n_tokens_mistral': 467, 'n_tokens_neox': 441, 'n_words': 97}