<commit_before># DYMRollingBanner
`DYMRollingBanner` is a clean and easy-to-use banner rolling control for your `homepage` screen.

### Why did I write this shit
Recently, I've been searching for a scrolling banner view on the hub, but no luck... none of them satisfies me, so I decide to write my own.

### Why you should use it   

* It's writen with clean code and very easy to use.    
* Support `AutoLayout` perfectly.    
* It internally implemented a memory reusing mechanism, so it behaves faster and costs less memory.    
* It can roll banners infinitely in a cycle patter, that mean it shows the first banner after the last one. 
* It uses block as the handler to handle image tapping events.
* It's free :-) 

 
### How to use    
Firstly...  
```objective-c
#import "DYMRollingBannerVC.h"
```

Secondly, Create a `DYMRollingBannerVC` object, and install it as the child view controller of your `homepage` view controller.   

Finally, feed it with you image URLs and you are good to go!
```objective-c
DYMRollingBannerVC *vc = (DYMRollingBannerVC *)segue.destinationViewController;
        vc.rollingInterval = 5;
        vc.rollingImageURLs = @[@"http://www.drpsychmom.com/wp-content/uploads/2014/10/large_4278047231.jpg"    // bridge
                                , @"https://c2.staticflickr.com/4/3345/5832660048_55f8b0935b.jpg"               // girl
                                , @"http://epaper.syd.com.cn/sywb/res/1/20080108/42241199752656275.jpg"         // another puppy
                                ];
        
        [vc addBannerTapHandler:^(NSInteger whichIndex) {
            NSLog(@"banner tapped, index = %@", @(whichIndex));
        }];
        
        [vc startRolling];
```
<commit_msg>([===])=======><commit_after># DYMRollingBanner
`DYMRollingBanner` is a clean and easy-to-use banner rolling control for your `homepage` screen.

### Why did I write this shit
Recently, I've been searching for a scrolling banner view on the hub, but no luck... none of them satisfies me, so I decide to write my own.

### Why you should use it   

* It's writen with clean code and very easy to use.    
* Support `AutoLayout` perfectly.    
* It internally implements a memory reusing mechanism, so it behaves faster and costs less memory.    
* It can roll banners infinitely in a cycle patter, that mean it shows the first banner after the last one. 
* It uses block as the handler to handle image tapping events.
* It's free :-) 

 
### How to use    
Firstly...  
```objective-c
#import "DYMRollingBannerVC.h"
```

Secondly, Create a `DYMRollingBannerVC` object, and install it as the child view controller of your `homepage` view controller.   

Finally, feed it with you image URLs and you are good to go!
```objective-c
DYMRollingBannerVC *vc = (DYMRollingBannerVC *)segue.destinationViewController;
        vc.rollingInterval = 5;
        vc.rollingImageURLs = @[@"http://www.drpsychmom.com/wp-content/uploads/2014/10/large_4278047231.jpg"    // bridge
                                , @"https://c2.staticflickr.com/4/3345/5832660048_55f8b0935b.jpg"               // girl
                                , @"http://epaper.syd.com.cn/sywb/res/1/20080108/42241199752656275.jpg"         // another puppy
                                ];
        
        [vc addBannerTapHandler:^(NSInteger whichIndex) {
            NSLog(@"banner tapped, index = %@", @(whichIndex));
        }];
        
        [vc startRolling];
```

{'fraction_non_alphanumeric': 0.10269019380966156, 'fraction_numerical': 0.03818339600809951, 'mean_word_length': 2.561277033985582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '993925', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1015, 'n_words': 352}