<commit_before>
import Foundation

func _uniform<T: FloatingPoint>(low: T = 0, high: T = 1) -> T {
    return (high-low)*(T(arc4random_uniform(UInt32.max)) / T(UInt32.max))+low
}
<commit_msg>Fix: arc4random_uniform for linux<commit_after>
#if os(Linux)
    import Glibc
    import SwiftShims
#else
    import Darwin
#endif

func cs_arc4random_uniform(_ upperBound : UInt32 = UINT32_MAX) -> UInt32 {
    #if os(Linux)
        return _swift_stdlib_cxx11_mt19937_uniform(upperBound)
    #else
        return arc4random_uniform(upperBound)
    #endif
}

import Foundation

func _uniform<T: FloatingPoint>(low: T = 0, high: T = 1) -> T {
    return (high-low)*(T(cs_arc4random_uniform(UInt32.max)) / T(UInt32.max))+low
}

{'fraction_non_alphanumeric': 0.12430167597765363, 'fraction_numerical': 0.04189944134078212, 'mean_word_length': 4.195652173913044, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4129291', 'n_tokens_mistral': 287, 'n_tokens_neox': 263, 'n_words': 57}