<commit_before>githooks
========

My personal githooks

pre-commit
----------
1. Catches common errors, such as checking in...
    1. git merge conflict markers
    2. personalized debug statements
2. Catches other suspicious code, such as calls to alert (very uncommon for me)
3. Syntax-check all .rb files
4. Prevents accidental changes to .ruby-version (and .rbenv-version)
5. Ensures that changes to assets are accompanied by a change to production.rb (required in my main work environment).
6. Check for probable private key commits.

Bypassing the Checks
--------------------
Call git commit with the --no-verify flag

Installation
============
Clone the repository locally, then run the setup script, passing the location of the
 repo that you want to add hooks to as an input argument:
    
    git clone <EMAIL>:bobgilmore/githooks.git
    cd (into the newly-created repository directory)
    chmod 777 ./setup.sh
    ./setup.sh path_to_repo_that_you_want_to_add_hooks_to
<commit_msg>Remove unnecessary chmod from README<commit_after>githooks
========

My personal githooks

pre-commit
----------
1. Catches common errors, such as checking in...
    1. git merge conflict markers
    2. personalized debug statements
2. Catches other suspicious code, such as calls to alert (very uncommon for me)
3. Syntax-check all .rb files
4. Prevents accidental changes to .ruby-version (and .rbenv-version)
5. Ensures that changes to assets are accompanied by a change to production.rb (required in my main work environment).
6. Check for probable private key commits.

Bypassing the Checks
--------------------
Call git commit with the --no-verify flag

Installation
============
Clone the repository locally, then run the setup script, passing the location of the
 repo that you want to add hooks to as an input argument:
    
    git clone <EMAIL>:bobgilmore/githooks.git
    cd (into the newly-created repository directory)
    ./setup.sh path_to_repo_that_you_want_to_add_hooks_to

{'fraction_non_alphanumeric': 0.10131048387096774, 'fraction_numerical': 0.009576612903225807, 'mean_word_length': 3.420935412026726, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5138052', 'n_tokens_mistral': 563, 'n_tokens_neox': 541, 'n_words': 253}