<commit_before>// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/

#if !os(macOS)
    extension AKSettings {
        /// Global audio format AudioKit will default to for new objects and connections
        public private(set) static var audioFormat = defaultAudioFormat {
            didSet {
                do {
                    try AVAudioSession.sharedInstance().setPreferredSampleRate(audioFormat.sampleRate)
                } catch {
                    AKLog("Could not set preferred sample rate to \(sampleRate) " + error.localizedDescription,
                          log: OSLog.settings,
                          type: .error)
                }
            }
        }

        /// Whether haptics and system sounds are played while a microphone is setup or recording is active
        public static var allowHapticsAndSystemSoundsDuringRecording: Bool = false {
            didSet {
                if #available(iOS 13.0, tvOS 13.0, *) {
                    do {<commit_msg>Had to make this unprivate to separate the files out<commit_after>// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/

#if !os(macOS)
    extension AKSettings {
        /// Global audio format AudioKit will default to for new objects and connections
        public static var audioFormat = defaultAudioFormat {
            didSet {
                do {
                    try AVAudioSession.sharedInstance().setPreferredSampleRate(audioFormat.sampleRate)
                } catch {
                    AKLog("Could not set preferred sample rate to \(sampleRate) " + error.localizedDescription,
                          log: OSLog.settings,
                          type: .error)
                }
            }
        }

        /// Whether haptics and system sounds are played while a microphone is setup or recording is active
        public static var allowHapticsAndSystemSoundsDuringRecording: Bool = false {
            didSet {
                if #available(iOS 13.0, tvOS 13.0, *) {
                    do {
{'fraction_non_alphanumeric': 0.06736242884250475, 'fraction_numerical': 0.0056925996204933585, 'mean_word_length': 1.735408560311284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2275299', 'n_tokens_mistral': 520, 'n_tokens_neox': 482, 'n_words': 166}