<commit_before>Sanction - to impose a sanction on; penalize, especially by way of discipline. 

===============================================================================

This script is meant to be a quick and effective method to block entire ip 
blocks belonging  to a specific country. You can block a specific port or ban 
the IP outright.

Note: Long term network filtering management is better handled by an external 
device (firewall, DoS mitigation services, etc). That said, sometimes you need 
a quick way to stem the tide until you can get those services in place. That's
where Sanction comes in.

Example usage:

![sanction usage example shot](screenshot/sanction.png "sanction usage example shot")

You will be prompted for the options (or choices) and you will be provided 
with a script to remove the iptables rules that sanction creates.

In the event more than one country is matched, it will present you a menu
of options.

Any issues, questions, or ideas for improvements can be sent to <EMAIL>

Current wishlist: write the iptables rules into their own chain.

Changelog:

0.9.2 : Modification of matching on ALL.
0.9.1 : Routines for multiple country matches and error checking in place. 
	General clean up of code and pushed to public beta.

<commit_msg>beta push<commit_after>Sanction - to impose a sanction on; penalize, especially by way of discipline. 

===============================================================================

This script is meant to be a quick and effective method to block entire ip 
blocks belonging  to a specific country. You can block a specific port or ban 
the IP outright.

Note: Long term network filtering management is better handled by an external 
device (firewall, DoS mitigation services, etc). That said, sometimes you need 
a quick way to stem the tide until you can get those services in place. That's
where Sanction comes in.

Example usage:

![sanction usage example shot](screenshot/sanction.png "sanction usage example shot")

You will be prompted for the options (or choices) and you will be provided 
with a script to remove the iptables rules that sanction creates.

In the event more than one country is matched, it will present you a menu
of options.

Any issues, questions, or ideas for improvements can be sent to <EMAIL>

Current wishlist: write the iptables rules into their own chain.

Changelog:

0.9.2 : Modification of matching on ALL.

0.9.1 : Routines for multiple country matches and error checking in place. 
	General clean up of code and pushed to public beta.


{'fraction_non_alphanumeric': 0.10082063305978899, 'fraction_numerical': 0.004689331770222743, 'mean_word_length': 4.458422174840085, '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': '844721', 'n_tokens_mistral': 651, 'n_tokens_neox': 619, 'n_words': 379}