<commit_before># Git pre-commit hook
# To install, run "rake hooks"

# Test the version that's about to be committed, stashing all unindexed changes
git stash -q --keep-index
rspec spec
git stash pop -q<commit_msg>Only stash unindexed changes if there are any.<commit_after># Git pre-commit hook
# To install, run "rake hooks"

if git diff-index --quiet HEAD --; then
        # no changes between index and working copy; just run tests
        rspec spec
else
        # Test the version that's about to be committed,
        # stashing all unindexed changes
        git stash -q --keep-index
        rspec spec
        git stash pop -q
fi
{'fraction_non_alphanumeric': 0.06896551724137931, 'fraction_numerical': 0.0, 'mean_word_length': 2.736842105263158, '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': '3996951', 'n_tokens_mistral': 187, 'n_tokens_neox': 182, 'n_words': 88}