<commit_before>//
//  ArrayArithmeticExtensions.swift
//  Surge
//
//  Created by <NAME> on 9/7/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

// TODO: Add rest of Arithmetic functions

extension Array where Element : VectorArithmetic {
    public func add(y: [Element]) -> [Element] {
        return Element.add(self, y)
    }
}<commit_msg>Implemented NegativeOnes init for [VectorArithmetic]<commit_after>//
//  ArrayArithmeticExtensions.swift
//  Surge
//
//  Created by <NAME> on 9/7/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

// TODO: Add rest of Arithmetic functions

extension Array where Element : VectorArithmetic {
    public init(negativeOnes: Int) {
        self = Element.negativeOnes(negativeOnes)
    }
    
    public func add(y: [Element]) -> [Element] {
        return Element.add(self, y)
    }
}
{'fraction_non_alphanumeric': 0.12400455062571103, 'fraction_numerical': 0.01820250284414107, 'mean_word_length': 2.911111111111111, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3731881', 'n_tokens_mistral': 290, 'n_tokens_neox': 266, 'n_words': 81}