<commit_before># ARNAlert

[![CI Status](http://img.shields.io/travis/Airin/ARNAlert.svg?style=flat)](https://travis-ci.org/xxxAIRINxxx/ARNAlert)
[![Version](https://img.shields.io/cocoapods/v/ARNAlert.svg?style=flat)](http://cocoadocs.org/docsets/ARNAlert)
[![License](https://img.shields.io/cocoapods/l/ARNAlert.svg?style=flat)](http://cocoadocs.org/docsets/ARNAlert)
[![Platform](https://img.shields.io/cocoapods/p/ARNAlert.svg?style=flat)](http://cocoadocs.org/docsets/ARNAlert)

Wrapper of UIAlertView & UIAlertController.

## Usage

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

* iOS 7.0+
* ARC

## Installation

ARNAlert is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

    pod "ARNAlert"

## Dependency

[BlocksKit](https://github.com/zwaldowski/BlocksKit)

## License

ARNAlert is available under the MIT license. See the LICENSE file for more info.

<commit_msg>edit readme<commit_after># ARNAlert

[![CI Status](http://img.shields.io/travis/Airin/ARNAlert.svg?style=flat)](https://travis-ci.org/xxxAIRINxxx/ARNAlert)
[![Version](https://img.shields.io/cocoapods/v/ARNAlert.svg?style=flat)](http://cocoadocs.org/docsets/ARNAlert)
[![License](https://img.shields.io/cocoapods/l/ARNAlert.svg?style=flat)](http://cocoadocs.org/docsets/ARNAlert)
[![Platform](https://img.shields.io/cocoapods/p/ARNAlert.svg?style=flat)](http://cocoadocs.org/docsets/ARNAlert)

Wrapper of UIAlertView & UIAlertController.

## Usage

To run the example project, clone the repo, and run `pod install` from the Example directory first.

### Show No Action Alert

```objective-c

	[ARNAlert showNoActionAlertWithTitle:@"no action title" message:@"no action message" buttonTitle:@"No Acttion"];

	// iOS8 >= : UIAlertController addAction(UIAlertActionStyleCancel)
	// iOS7 <= : UIAlertView  bk_setCancelButtonWithTitle(BlocksKit)

```

### Show Simple Action Alert

```objective-c

	[ARNAlert shoAlertWithTitle:@"test Title"
                        message:@"test Message"
              cancelButtonTitle:@"Cancel"
                    cancelBlock:^(id action){
                        NSLog(@"cancelBlock call!");

                        // iOS8 >= : UIAlertController addAction(UIAlertActionStyleCancel)
						// iOS7 <= : UIAlertView  bk_setCancelButtonWithTitle(BlocksKit)
                    }
                  okButtonTitle:@"OK"
                        okBlock:^(id action){
          				NSLog(@"okBlock call!");

                        // iOS8 >= : UIAlertController addAction(UIAlertActionStyleCancel)
        				// iOS7 <= : UIAlertView  bk_setCancelButtonWithTitle(BlocksKit)
                        }];

```

### Show Some Action Alert

```objective-c

    ARNAlert *alert = [[ARNAlert alloc] initWithTitle:@"test Title" message:@"test Message"];
    [alert addActionTitle:@"button" actionBlock:^(id action) {
        NSLog(@"button Button tapped!");

        // iOS8 >= : UIAlertController addAction(UIAlertActionStyleDefault)
        // iOS7 <= : UIAlertView bk_addButtonWithTitle(BlocksKit)
    }];
    [alert setCancelTitle:@"cancel" cancelBlock:^(id action) {
        NSLog(@"cancel Button tapped!");

        // iOS8 >= : UIAlertController addAction(UIAlertActionStyleCancel)
        // iOS7 <= : UIAlertView  bk_setCancelButtonWithTitle(BlocksKit)
    }];
    [alert show];

```

## Requirements

* iOS 7.0+
* ARC

## Installation

ARNAlert is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

    pod "ARNAlert"

## Dependency

[BlocksKit](https://github.com/zwaldowski/BlocksKit)

## License

ARNAlert is available under the MIT license. See the LICENSE file for more info.


{'fraction_non_alphanumeric': 0.13924050632911392, 'fraction_numerical': 0.003691983122362869, 'mean_word_length': 3.5698795180722893, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 10, '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': '7161634', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1215, 'n_words': 232}