<commit_before># AAA

[![release](https://img.shields.io/github/release/minacle/AAA.svg?maxAge=600)](https://github.com/minacle/AAA/releases) [![Travis](https://img.shields.io/travis/minacle/AAA/dev.svg?maxAge=600)](https://travis-ci.org/minacle/AAA) [![license](https://img.shields.io/github/license/minacle/AAA.svg?maxAge=43200)](https://github.com/minacle/AAA/blob/master/LICENSE) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?maxAge=604800)](https://github.com/Carthage/Carthage)

> An `Any` Accessory.

## An `Any` Accessory?

Well.. it sounds great. So, what is it?

You probably encountered at least once the situation that upcasted `[Any]`, `[AnyHashable: Any]` or anything as `Any`. If so, you wrote as follows:

```swift
func tion(_ anAny: Any) -> Int {
    var anArray: [Int]?
    var aDictionary: [String: Int]?
    var result = 0
    if anAny is [Int] {
        anArray = anAny as! [Int]<commit_msg>grey license<commit_after># AAA

[![release](https://img.shields.io/github/release/minacle/AAA.svg?maxAge=600)](https://github.com/minacle/AAA/releases) [![Travis](https://img.shields.io/travis/minacle/AAA/dev.svg?maxAge=600)](https://travis-ci.org/minacle/AAA) [![license](https://img.shields.io/badge/license-MIT-lightgrey.svg?maxAge=43200)](https://github.com/minacle/AAA/blob/master/LICENSE) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?maxAge=604800)](https://github.com/Carthage/Carthage)

> An `Any` Accessory.

## An `Any` Accessory?

Well.. it sounds great. So, what is it?

You probably encountered at least once the situation that upcasted `[Any]`, `[AnyHashable: Any]` or anything as `Any`. If so, you wrote as follows:

```swift
func tion(_ anAny: Any) -> Int {
    var anArray: [Int]?
    var aDictionary: [String: Int]?
    var result = 0
    if anAny is [Int] {
        anArray = anAny as! [Int]
{'fraction_non_alphanumeric': 0.18105263157894738, 'fraction_numerical': 0.022105263157894735, 'mean_word_length': 4.526162790697675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 16, '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': '549055', 'n_tokens_mistral': 757, 'n_tokens_neox': 691, 'n_words': 136}