<commit_before>NSObject-Dealloc
================

Category used to know when your object has been deallocated. Most of the time, you shouldn't need this kind of tool. Sometimes you are not sure why a given `UIViewController` is not being deallocated. This can be seen on Instruments, by analysing the allocations between different push/pops of this `UIViewController`. The goal of this category, is to inform you (by `NSLogs`) what is being deallocated. 

------------------------------------
Advantages
============

There are two advantages with this category:

* It allows you to add the deallocation on a class basis. 
* It allows you to add your own custom message, by using the `NSObjectDeallocProtocol` protocol. It's useful to distinguish objects of the same class


------------------------------------
Demo project
============

The demo project is quite straightforward:

```objective-c
[APHTestingClass RP_toggleSwizzDealloc];
    
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
    
    for (int i = 0; i < 10; i++)
    {
        APHTestingClass *object = [[APHTestingClass alloc] init];
    }
    
#pragma clang diagnostic pop
```

First we turn on the swizzling on the `APHTestingClass`. We then create a 10 objects so we can see them be deallocated after:

```
2013-12-25 13:11:09.403 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.404 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.405 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.405 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.406 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.406 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.407 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.407 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.407 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.408 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
```

The `| This a specific description, that can be helpful while debugging |` is a custom message that you can add, to further help you debugging. 



<commit_msg>Small change on the README<commit_after>NSObject-Dealloc
================

Category used to know when your object has been deallocated. Most of the time, you shouldn't need this kind of tool. Sometimes you are not sure why a given `UIViewController` is not being deallocated. This can be seen on Instruments, by analysing the allocations between different push/pops of this `UIViewController`. The goal of this category, is to inform you (by `NSLogs`) what is being deallocated. 

------------------------------------
Advantages
============

There are two advantages with this category:

* It allows you to add the deallocation on a class basis. 
* It allows you to add your own custom message, by using the `NSObjectDeallocProtocol` protocol. It's useful to distinguish objects of the same class


------------------------------------
Demo project
============

The demo project is quite straightforward:

```objective-c
[APHTestingClass RP_toggleSwizzDealloc];
    
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
    
    for (int i = 0; i < 10; i++)
    {
        APHTestingClass *object = [[APHTestingClass alloc] init];
    }
    
#pragma clang diagnostic pop
```

First we turn on the swizzling on the `APHTestingClass`. We then create a 10 objects so we can see them be deallocated after:

```
2013-12-25 13:11:09.403 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.404 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.405 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.405 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.406 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.406 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.407 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.407 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.407 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
2013-12-25 13:11:09.408 DemoProject[473:70b] Deallocated -> APHTestingClass | This a specific description, that can be helpful while debugging |
```

The `| This a specific description, that can be helpful while debugging |` is a custom message that you can add to help you debugging. 




{'fraction_non_alphanumeric': 0.11071428571428571, 'fraction_numerical': 0.07653061224489796, 'mean_word_length': 4.1678383128295255, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '35379', 'n_tokens_mistral': 1960, 'n_tokens_neox': 1604, 'n_words': 685}