<commit_before>import Foundation

extension Date {

    /// Return a randomized `Date` in the next midnight hour. Will return nil if a `Date` can't be constructed given the calendar
    /// and component constraints, though in practice will likely always return some value.
    func randomDateShortlyAfterMidnight(calendar: Calendar = .current) -> Date? {
        let components = DateComponents(day: 1, minute: .random(in: 0..<60), second: .random(in: 0..<60))
        let startOfDay = calendar.startOfDay(for: self)
        return calendar.date(byAdding: components, to: startOfDay)
    }

}<commit_msg>Update date randomization interval to within 30 minutes.<commit_after>import Foundation

extension Date {

    /// Return a randomized `Date` in the next midnight hour. Will return nil if a `Date` can't be constructed given the calendar
    /// and component constraints, though in practice will likely always return some value.
    func randomDateShortlyAfterMidnight(calendar: Calendar = .current) -> Date? {
        let components = DateComponents(day: 1, minute: .random(in: 0..<30), second: .random(in: 0..<60))
        let startOfDay = calendar.startOfDay(for: self)
        return calendar.date(byAdding: components, to: startOfDay)
    }

}
{'fraction_non_alphanumeric': 0.09976057462090981, 'fraction_numerical': 0.012769353551476457, 'mean_word_length': 3.6273062730627306, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1443857', 'n_tokens_mistral': 355, 'n_tokens_neox': 328, 'n_words': 129}