<commit_before>Git update hook Nitty Committy
==============================
Git update hook that manages a commit message histogram
and complains about or blocks pushes with messages that are too common.

Usage as hook
-------------
Copy/symlink update.py to hooks/update in the git repo to protect.

This script will be invoked by git with three arguments: 
1) ref name
2) current SHA1 of that ref (or 0000...0 for new refs)
3) newly pushed SHA1 for the ref

Additional usage
----------------
Additionally you can also invoke this script manually without with extra
options (and possibly without those hook-related argments) 
for inspection or additional functionality. 
Use option --help for more info.<commit_msg>tweaked readme<commit_after>Git update hook Nitty Committy
==============================
Git update hook that manages a commit message histogram
and complains about or blocks pushes with messages that are too common.

Usage as hook
-------------

Usage as a git hook is very easy: just copy/symlink the file ``update.py`` to a file
``hooks/update`` (without extension) inside the git repo to protect and you're done.

As a hook, this script will be invoked by git with three arguments: 

1. ref name (e.g. 'refs/head/master')

2. current SHA1 of that ref (or 0000...0 for new refs)

3. newly pushed SHA1 for the ref

Depending on the operational mode, the hook will just complain on standard output
with a warning or block the git push.

Additional usage
----------------
Additionally you can also invoke this script manually without with extra
options (and possibly without those hook-related argments) 
for inspection or additional functionality. 
Use option --help for more info.

Configuration
-------------
TBW
{'fraction_non_alphanumeric': 0.11656087709174841, 'fraction_numerical': 0.01154068090017311, 'mean_word_length': 3.5873015873015874, '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': '3971446', 'n_tokens_mistral': 445, 'n_tokens_neox': 413, 'n_words': 248}