<commit_before>//
//  Utilities.swift
//  SwiftGraphics
//
//  Created by <NAME> on 1/10/15.
//  Copyright (c) 2015 schwa.io. All rights reserved.
//

import Foundation

extension Array {
    init(count:Int, block:(Void) -> T) {
        self.init()
        for N in 0..<count {
            self.append(block())
        }
    }
}

public func arrayOfRandomPoints(count:Int, range:CGRect) -> Array <CGPoint> {
    return Array <CGPoint> (count:10) {
        return Random.rng.random(range)
    }
}<commit_msg>oops - we were ignoring the count.<commit_after>//
//  Utilities.swift
//  SwiftGraphics
//
//  Created by <NAME> on 1/10/15.
//  Copyright (c) 2015 schwa.io. All rights reserved.
//

import Foundation

extension Array {
    init(count:Int, block:(Void) -> T) {
        self.init()
        for N in 0..<count {
            self.append(block())
        }
    }
}

public func arrayOfRandomPoints(count:Int, range:CGRect) -> Array <CGPoint> {
    return Array <CGPoint> (count:count) {
        return Random.rng.random(range)
    }
}
{'fraction_non_alphanumeric': 0.14836223506743737, 'fraction_numerical': 0.02119460500963391, 'mean_word_length': 2.2984126984126982, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6800955', 'n_tokens_mistral': 371, 'n_tokens_neox': 348, 'n_words': 85}