<commit_before>#!/bin/bash

# stash code not to be committed
git stash -q -keep-index

# Run tests and flake8
python main.py runtests && flake8 .
RESULT=$?

# restore stash
git stash pop -q
<commit_msg>Fix stash in pre-commit hook.<commit_after>#!/bin/bash

# stash code not to be committed
git stash -q --keep-index >/dev/null 2>&1

# Run tests and flake8
python main.py runtests && flake8 .
RESULT=$?

# restore stash
git stash pop -q >/dev/null 2>&1

{'fraction_non_alphanumeric': 0.12141280353200883, 'fraction_numerical': 0.017660044150110375, 'mean_word_length': 3.54, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5749935', 'n_tokens_mistral': 174, 'n_tokens_neox': 167, 'n_words': 60}