<commit_before>//
//  AUV3DemoAudioUnit.swift
//  AUV3Demo
//
//  Created by <NAME> on 5/16/19.
//  Copyright © 2019 AudioKit. All rights reserved.
//

import Foundation
import AVFoundation
import AudioKit

class AUV3DemoAudioUnit: AKAUv3ExtensionAudioUnit {

    var engine = AVAudioEngine()    // each unit needs it's own avaudioEngine
    var conductor = Conductor()     // remember to add Conductor.swift to auv3 target

    override init(componentDescription: AudioComponentDescription, options: AudioComponentInstantiationOptions = []) throws {
        AKLog("initing auv3 demo unit")
        AudioKit.engine = engine    // AudioKit.engine needs to be set early on
        conductor.setupRoute()      // plug everything in once we have the engine

        do { //this is where the audio unit really starts firing up with the data it needs
            try engine.enableManualRenderingMode(.realtime, format: AudioKit.format, maximumFrameCount: 4096)
            try super.init(componentDescription: componentDescription, options: options)
            try setOutputBusArrays()
        } catch {
            AKLog("Could not init audio unit")<commit_msg>Removed redundant imports<commit_after>//
//  AUV3DemoAudioUnit.swift
//  AUV3Demo
//
//  Created by <NAME> on 5/16/19.
//  Copyright © 2019 AudioKit. All rights reserved.
//

import AudioKit

class AUV3DemoAudioUnit: AKAUv3ExtensionAudioUnit {

    var engine = AVAudioEngine()    // each unit needs it's own avaudioEngine
    var conductor = Conductor()     // remember to add Conductor.swift to auv3 target

    override init(componentDescription: AudioComponentDescription, options: AudioComponentInstantiationOptions = []) throws {
        AKLog("initing auv3 demo unit")
        AudioKit.engine = engine    // AudioKit.engine needs to be set early on
        conductor.setupRoute()      // plug everything in once we have the engine

        do { //this is where the audio unit really starts firing up with the data it needs
            try engine.enableManualRenderingMode(.realtime, format: AudioKit.format, maximumFrameCount: 4096)
            try super.init(componentDescription: componentDescription, options: options)
            try setOutputBusArrays()
        } catch {
            AKLog("Could not init audio unit")
{'fraction_non_alphanumeric': 0.0777972027972028, 'fraction_numerical': 0.016608391608391608, 'mean_word_length': 2.994764397905759, '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': '2011075', 'n_tokens_mistral': 643, 'n_tokens_neox': 590, 'n_words': 209}