<commit_before>CodeGuard
---------------

A simple Guard library made in c#<commit_msg>Added some more info to the readme<commit_after>CodeGuard
---------------

A simple Guard library made in c#

Example of usage:

void SomeMethod(int arg1, int arg2)
{
	// This line will throw an exception when the arg1 is less or equal to arg2
	Guard.Check(() => arg1).IsGreaterThan(arg2);

	// This will check that arg1 is not null and that is in some range 1..100
	Guard.Check(() => arg2).IsNotNull().IsInRange(1,100);

	// Do stuff
}

The following checks are available. But the best documentation is currently the tests.

General:
Is<Type>
IsNotNull
IsNotDefault
IsTrue

String:
IsNotEmpty
IsNotNullOrEmpty

IComparable:
IsEqual
IsGreatherThan
IslessThan
IsInRange


{'fraction_non_alphanumeric': 0.11228533685601057, 'fraction_numerical': 0.021136063408190225, 'mean_word_length': 3.6790123456790123, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '7500512', 'n_tokens_mistral': 241, 'n_tokens_neox': 232, 'n_words': 91}