<commit_before>//
//  Thali CordovaPlugin
//  String+Random.swift
//
//  Copyright (C) Microsoft. All rights reserved.
//  Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//

import Foundation

extension String {
    static func random(length length: Int) -> String {
        let letters: String = "abcdefghkmnopqrstuvxyzABCDEFGHKLMNOPQRSTUXYZ"
        var randomString = ""

        let length = UInt32(letters.characters.count)
        for _ in 0..<length {
            let rand = Int(arc4random_uniform(length))
            let char = letters[letters.startIndex.advancedBy(rand)]
            randomString.append(char)<commit_msg>fixed error in random string name<commit_after>//
//  Thali CordovaPlugin
//  String+Random.swift
//
//  Copyright (C) Microsoft. All rights reserved.
//  Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//

import Foundation

extension String {
    static func random(length length: Int) -> String {
        let letters: String = "abcdefghkmnopqrstuvxyzABCDEFGHKLMNOPQRSTUXYZ"
        var randomString = ""

        let lettersLength = UInt32(letters.characters.count)
        for _ in 0..<length {
            let rand = Int(arc4random_uniform(lettersLength))
            let char = letters[letters.startIndex.advancedBy(rand)]
            randomString.append(char)
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.005681818181818182, 'mean_word_length': 2.8922651933701657, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1785730', 'n_tokens_mistral': 415, 'n_tokens_neox': 392, 'n_words': 114}