<commit_before>//
//  AKClipRecorder.swift
//  AudioKit
//
//  Created by <NAME>, revision history on GitHub.
//  Copyright © 2017 Audive Inc. All rights reserved.
//

/// A closure that will be called when the clip is finished recording.
/// Result will be an error or a clip. ClipRecording.url is the location
/// of the recording in the temporary diretory, it should be moved or copied
/// from this location within this closure, it will be deleted after.
/// startTime and duration may be different than parameters given in recordClip().
///
public typealias ClipRecordingCompletion = (ClipRecordingResult) -> Void

public struct ClipRecording {
    var url: URL
    var startTime: Double
    var duration: Double
}
public enum ClipRecordingResult {<commit_msg>Made clip struct properties public lets.<commit_after>//
//  AKClipRecorder.swift
//  AudioKit
//
//  Created by <NAME>, revision history on GitHub.
//  Copyright © 2017 Audive Inc. All rights reserved.
//

/// A closure that will be called when the clip is finished recording.
/// Result will be an error or a clip. ClipRecording.url is the location
/// of the recording in the temporary diretory, it should be moved or copied
/// from this location within this closure, it will be deleted after.
/// startTime and duration may be different than parameters given in recordClip().
///
public typealias ClipRecordingCompletion = (ClipRecordingResult) -> Void

public struct ClipRecording {
    public let url: URL
    public let startTime: Double
    public let duration: Double
}
public enum ClipRecordingResult {
{'fraction_non_alphanumeric': 0.08048162230671736, 'fraction_numerical': 0.005069708491761723, 'mean_word_length': 3.4353932584269664, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1565920', 'n_tokens_mistral': 422, 'n_tokens_neox': 404, 'n_words': 202}