<commit_before>//
//  Arrays+.swift
//  LexisDatabase
//
//  Created by <NAME> on 8/31/16.
//  Copyright © 2016 RedRoma, Inc. All rights reserved.
//

import Foundation


extension Array
{
    
    var second: Element?
    {
        if count >= 2
        {
            return self[1]
        }
        
        return nil
    }
    
}

extension Array where Element: Equatable
{
    
    
    func containsMultiple(_ elements: Element...) -> Bool
    {
        for element in elements
        {
            if !self.contains(element)
            {
                return false
            }
        }
        
        return true
    }
}<commit_msg>Adds Arrays.notEmpty<commit_after>//
//  Arrays+.swift
//  LexisDatabase
//
//  Created by <NAME> on 8/31/16.
//  Copyright © 2016 RedRoma, Inc. All rights reserved.
//

import Foundation


extension Array
{
    
    var second: Element?
    {
        if count >= 2
        {
            return self[1]
        }
        
        return nil
    }
    
    var notEmpty: Bool
    {
        return !isEmpty
    }
    
}

extension Array where Element: Equatable
{
    
    
    func containsMultiple(_ elements: Element...) -> Bool
    {
        for element in elements
        {
            if !self.contains(element)
            {
                return false
            }
        }
        
        return true
    }
}
{'fraction_non_alphanumeric': 0.09276844411979547, 'fraction_numerical': 0.016070124178232285, 'mean_word_length': 1.1990369181380418, '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': '660598', 'n_tokens_mistral': 422, 'n_tokens_neox': 393, 'n_words': 106}