<commit_before>// Vuckt
// @author: <NAME>
// @license: Public Domain per The Unlicense.  See accompanying LICENSE file or <http://unlicense.org/>.

import Foundation



#if !swift(>=4.2)
	internal extension Float
	{
		static func random(in range:Range<Float>) -> Float {
			let delta = range.upperBound - range.lowerBound
			return Float(arc4random_uniform(UInt32.max)) / Float(UInt32.max - 1) * delta + range.lowerBound
		}
		static func random(in range:ClosedRange<Float>) -> Float {
			let delta = range.upperBound - range.lowerBound
			return Float(arc4random_uniform(UInt32.max)) / Float(UInt32.max) * delta + range.lowerBound
		}
	}

	internal extension Int32
	{
		static func random(in range:Range<Int32>) -> Int32 {
			let delta = UInt32(range.upperBound - range.lowerBound)
			return Int32(arc4random_uniform(delta)) + range.lowerBound
		}
		static func random(in range:ClosedRange<Int32>) -> Int32 {
			let delta = UInt32(range.upperBound - range.lowerBound)
			return Int32(arc4random_uniform(delta + 1)) + range.lowerBound
		}
	}
#endif
<commit_msg>Fix for Swift 4.0 compat re `range(in:)`<commit_after>// Vuckt
// @author: <NAME>
// @license: Public Domain per The Unlicense.  See accompanying LICENSE file or <http://unlicense.org/>.

import Foundation



#if !swift(>=4.2)
	internal extension Float
	{
		@inlinable static func random(in range:Range<Float>) -> Float {
			let delta = range.upperBound - range.lowerBound
			return Float(arc4random_uniform(UInt32.max)) / Float(UInt32.max - 1) * delta + range.lowerBound
		}
		@inlinable static func random(in range:ClosedRange<Float>) -> Float {
			let delta = range.upperBound - range.lowerBound
			return Float(arc4random_uniform(UInt32.max)) / Float(UInt32.max) * delta + range.lowerBound
		}
	}

	internal extension Int32
	{
		@inlinable static func random(in range:Range<Int32>) -> Int32 {
			let delta = UInt32(range.upperBound - range.lowerBound)
			return Int32(arc4random_uniform(delta)) + range.lowerBound
		}
		@inlinable static func random(in range:ClosedRange<Int32>) -> Int32 {
			let delta = UInt32(range.upperBound - range.lowerBound)
			return Int32(arc4random_uniform(delta + 1)) + range.lowerBound
		}
	}
#endif

{'fraction_non_alphanumeric': 0.12300683371298406, 'fraction_numerical': 0.03189066059225513, 'mean_word_length': 4.1069767441860465, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 25, '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': '5730197', 'n_tokens_mistral': 809, 'n_tokens_neox': 711, 'n_words': 172}