<commit_before>ErrorKit
========

**ErrorKit** is a handy iOS library for making `NSError` handling easier.

It covers error objects creation, inspection, presentation and recovery.

Usage
-----

1. To use **ErrorKit** you simply need to drag and drop the *ErrorKit* folder to your project.
2. And that's it, there is no step 2.

Examples
--------

**Log error (if any)**

    MRLogError(error);

**Assert**

    MRNotErrorAssert(error);
    
**Access error values**

	NSString *helpAnchor = error.helpAnchor;
    NSArray *errors = error.detailedErrors;
    NSURLRequest *request = error.failingURLRequest;
    // and so on...

**Present error to the user**

        if (!error.isCancelledError) {
	        [[UIAlertView alertWithTitle:nil error:error] show];
	    }

**Attempt to recover from error**

        if (error.code == NSURLErrorNotConnectedToInternet) {
	        MRErrorBuilder *builder = [MRErrorBuilder builderWithError:error];
	        builder.recoveryAttempter = _attempter;
	        builder.localizedRecoverySuggestion = NSLocalizedString(@"Please check your internet connection.", nil);
	        builder.localizedRecoveryOptions = @[ NSLocalizedString(@"Retry", nil) ];
	        [[UIAlertView alertWithTitle:nil error:builder.error] show];
	    }

See *ErrorKit-Example* project for further reference.

License
-------

ErrorKit is available under the MIT license. See the LICENSE file for more info.<commit_msg>Updating README<commit_after>ErrorKit
========

**Error Kit** is a handy iOS library for making `NSError` handling easier.

It covers error objects creation, inspection, presentation and recovery.

Usage
-----

1. To use **Error Kit** you simply need to drag and drop the *ErrorKit* folder to your project.
2. And that's it, there is no step 2.

Examples
--------

**Log error (if any)**

    MRLogError(error);

**Assert**

    MRNotErrorAssert(error);
    
**Access error values**

	NSString *helpAnchor = error.helpAnchor;
    NSArray *errors = error.detailedErrors;
    NSURLRequest *request = error.failingURLRequest;
    // and so on...

**Present error to the user**

        if (!error.isCancelledError) {
	        [[UIAlertView alertWithTitle:nil error:error] show];
	    }

**Attempt to recover from error**

        if (error.code == NSURLErrorNotConnectedToInternet) {
	        MRErrorBuilder *builder = [MRErrorBuilder builderWithError:error];
	        builder.recoveryAttempter = _attempter;
	        builder.localizedRecoverySuggestion = NSLocalizedString(@"Please check your internet connection.", nil);
	        builder.localizedRecoveryOptions = @[ NSLocalizedString(@"Retry", nil) ];
	        [[UIAlertView alertWithTitle:nil error:builder.error] show];
	    }

See *ErrorKit-Example* project or browse online [documentation](http://hectr.github.com/ErrorKit/) for further reference.

License
-------

**Error Kit** is available under the MIT license. See the LICENSE file for more info.
{'fraction_non_alphanumeric': 0.1161839863713799, 'fraction_numerical': 0.0020442930153321977, 'mean_word_length': 3.5238828967642526, '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': '3450175', 'n_tokens_mistral': 867, 'n_tokens_neox': 817, 'n_words': 269}