<commit_before>BOZPongRefreshControl
=====================

A pull-down-to-refresh control for iOS that plays pong

<p align="center"><img src="http://i.imgur.com/cdh7eVE.gif"/></p>

Using It
--------

Place ```BOZPongRefreshControl.h``` and ```BOZPongRefreshControl.m``` in your project anywhere you'd like. Then, you can attach it to a ```UITableView``` or ```UIScrollView``` like so:

```objective-c
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    /* NOTE: Do NOT attach the refresh control in viewDidLoad!
     * If you do this here, it'll act very funny if you have
     * a navigation bar or other such similar thing that iOS 7
     * automatically offsets content for. You have to wait for
     * the subviews to get laid out first so the refresh
     * control knows how big that offset is!
     */
}

- (void)viewDidLayoutSubviews
{
    self.pongRefreshControl = [BOZPongRefreshControl attachToTableView:self.tableView
                                                     withRefreshTarget:self
                                                      andRefreshAction:@selector(refreshTriggered)];
}
```<commit_msg>Updated the README to include CocoaPods<commit_after>BOZPongRefreshControl
=====================

A pull-down-to-refresh control for iOS that plays pong

<p align="center"><img src="http://i.imgur.com/cdh7eVE.gif"/></p>

Installation
------------

It's on CocoaPods! Put ```pod 'BOZPongRefreshControl'``` in your Podfile.

Alternatively, just place ```BOZPongRefreshControl.h``` and ```BOZPongRefreshControl.m``` in your project anywhere you'd like.

Usage
--------

Attach it to a ```UITableView``` or ```UIScrollView``` like so:

```objective-c
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    /* NOTE: Do NOT attach the refresh control in viewDidLoad!
     * If you do this here, it'll act very funny if you have
     * a navigation bar or other such similar thing that iOS 7
     * automatically offsets content for. You have to wait for
     * the subviews to get laid out first so the refresh
     * control knows how big that offset is!
     */
}

- (void)viewDidLayoutSubviews
{
    self.pongRefreshControl = [BOZPongRefreshControl attachToTableView:self.tableView
                                                     withRefreshTarget:self
                                                      andRefreshAction:@selector(refreshTriggered)];
}
```
{'fraction_non_alphanumeric': 0.12081939799331104, 'fraction_numerical': 0.0016722408026755853, 'mean_word_length': 2.675883256528418, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6356065', 'n_tokens_mistral': 682, 'n_tokens_neox': 656, 'n_words': 221}