<commit_before>#! /bin/sh
set -eu

commit_message_file="$1"

# Pass if message has 1 or fewer lines
test 1 -ge "$(< $commit_message_file wc --lines)" ||
# Pass if second line is blank
test -z "$(< $commit_message_file head --lines 2 | tail --lines 1)"
<commit_msg>Use short option for mac compat<commit_after>#! /bin/sh
set -eu

commit_message_file="$1"

# Pass if message has 1 or fewer lines
test 1 -ge "$(< $commit_message_file wc -l)" ||
# Pass if second line is blank
test -z "$(< $commit_message_file head --lines 2 | tail --lines 1)"

{'fraction_non_alphanumeric': 0.1423290203327172, 'fraction_numerical': 0.018484288354898338, 'mean_word_length': 3.8828828828828827, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1264588', 'n_tokens_mistral': 196, 'n_tokens_neox': 183, 'n_words': 73}