<commit_before># Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.

auto_process() {
  ./bin/auto_process_reject_lists "$@"
}

setup() {
  tmpfile="$(mktemp config-XXXXXX.cfg)"
}

teardown() {
  rm "$tmpfile"
}

@test "Script requires arguments" {
  run auto_process
  [ "$status" -eq 2 ]
  [[ ${lines[0]} =~ "usage:" ]]
}

@test "Can display help" {
  run auto_process -h
  [ "$status" -eq 0 ]
}
<commit_msg>Setup file works<commit_after># Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.

auto_process() {
  ./bin/auto_process_reject_lists "$@"
}

setup() {
  tmpfile="$(mktemp config-XXXXXX.cfg)"
  cat << EOF > "$tmpfile"
maaatt
EOF
}

teardown() {
  rm "$tmpfile"
}

@test "Script requires arguments" {
  run auto_process
  [ "$status" -eq 2 ]
  [[ ${lines[0]} =~ "usage:" ]]
}

@test "Can display help" {
  run auto_process -h
  [ "$status" -eq 0 ]
}

@test "Setup file works" {
  grep -q maaatt "$tmpfile"
}

{'fraction_non_alphanumeric': 0.14982876712328766, 'fraction_numerical': 0.011986301369863013, 'mean_word_length': 3.713709677419355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6256827', 'n_tokens_mistral': 431, 'n_tokens_neox': 410, 'n_words': 129}