<commit_before>//
//  ArrayExtensions.swift
//  Pods
//
//  Created by <NAME> on 3/13/17.
//
//

import UIKit

import Foundation
import Alamofire

private let arrayParametersKey = "arrayParametersKey"

/// Extenstion that allows an array be sent as a request parameters
extension Array {
    /// Convert the receiver array to a `Parameters` object.
    func asParameters() -> Parameters {
        return [arrayParametersKey: self]
    }
}

extension Dictionary {
    func validArrayRequest() -> Bool {
        if let dic = self as? [String:Any], dic[arrayParametersKey] != nil {
            return true<commit_msg>Fix for Xcode 8<commit_after>//
//  ArrayExtensions.swift
//  Pods
//
//  Created by <NAME> on 3/13/17.
//
//

import UIKit

import Foundation
import Alamofire

private let arrayParametersKey = "arrayParametersKey"

/// Extenstion that allows an array be sent as a request parameters
extension Array {
    /// Convert the receiver array to a `Parameters` object.
    func asParameters() -> Parameters {
        return [arrayParametersKey: self]
    }
}

extension Dictionary where Key: ExpressibleByStringLiteral, Key.StringLiteralType == String, Value: Any {
    func validArrayRequest() -> Bool {
        let key = Key(stringLiteral: arrayParametersKey)
        if self[key] != nil {
            return true
{'fraction_non_alphanumeric': 0.09901738473167045, 'fraction_numerical': 0.008314436885865457, 'mean_word_length': 2.9404761904761907, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2274470', 'n_tokens_mistral': 379, 'n_tokens_neox': 367, 'n_words': 128}