<commit_before>//
//  AKTuningTable+NorthIndianRaga.swift
//  AudioKit
//
//  Created by <NAME> on 4/28/17.
//  Copyright © 2017 AudioKit. All rights reserved.
//

extension AKTuningTable {

    /// Set tuning to 22 Indian Scale.
    /// From <NAME>.  See http://anaphoria.com/Khiasmos.pdf
    public func khiasmos22Indian() -> Int {

        let masterSet: [Frequency] = [1 / 1,
                                      256 / 243,
                                      16 / 15,
                                      10 / 9,
                                      9 / 8,
                                      32 / 27,
                                      6 / 5,
                                      5 / 4,
                                      81 / 64,
                                      4 / 3,
                                      27 / 20,
                                      45 / 32,
                                      729 / 512,
                                      3 / 2,
                                      128 / 81,
                                      8 / 5,
                                      5 / 3,
                                      405 / 240,
                                      16 / 9,
                                      9 / 5,
                                      15 / 8,
                                      243 / 128]
        tuningTable(fromFrequencies: masterSet)
        return masterSet.count
    }

    /// From <NAME>son.  See http://anaphoria.com/genus.pdf
    static let persianNorthIndianMasterSet: [Frequency] = [1 / 1,
                                                           135 / 128,
                                                           10 / 9,
                                                           9 / 8,
                                                           1_215 / 1_024,
                                                           5 / 4,
                                                           81 / 64,
                                                           4 / 3,
                                                           45 / 32,
                                                           729 / 512,
                                                           3 / 2,
                                                           405 / 256,
                                                           5 / 3,
                                                           27 / 16,
                                                           16 / 9,
                                                           15 / 8,
                                                           243 / 128]

    fileprivate func helper(_ input: [Int]) -> [Frequency] {
        assert(input.count < AKTuningTable.persianNorthIndianMasterSet.count - 1, "internal error: index out of bounds")
        let retVal: [Frequency] = input.map({(number: Int) -> Frequency in<commit_msg>suppress warning<commit_after>//
//  AKTuningTable+NorthIndianRaga.swift
//  AudioKit
//
//  Created by <NAME> on 4/28/17.
//  Copyright © 2017 AudioKit. All rights reserved.
//

extension AKTuningTable {

    /// Set tuning to 22 Indian Scale.
    /// From <NAME>.  See http://anaphoria.com/Khiasmos.pdf
    public func khiasmos22Indian() -> Int {

        let masterSet: [Frequency] = [1 / 1,
                                      256 / 243,
                                      16 / 15,
                                      10 / 9,
                                      9 / 8,
                                      32 / 27,
                                      6 / 5,
                                      5 / 4,
                                      81 / 64,
                                      4 / 3,
                                      27 / 20,
                                      45 / 32,
                                      729 / 512,
                                      3 / 2,
                                      128 / 81,
                                      8 / 5,
                                      5 / 3,
                                      405 / 240,
                                      16 / 9,
                                      9 / 5,
                                      15 / 8,
                                      243 / 128]
        _ = tuningTable(fromFrequencies: masterSet)
        return masterSet.count
    }

    /// From <NAME>.  See http://anaphoria.com/genus.pdf
    static let persianNorthIndianMasterSet: [Frequency] = [1 / 1,
                                                           135 / 128,
                                                           10 / 9,
                                                           9 / 8,
                                                           1_215 / 1_024,
                                                           5 / 4,
                                                           81 / 64,
                                                           4 / 3,
                                                           45 / 32,
                                                           729 / 512,
                                                           3 / 2,
                                                           405 / 256,
                                                           5 / 3,
                                                           27 / 16,
                                                           16 / 9,
                                                           15 / 8,
                                                           243 / 128]

    fileprivate func helper(_ input: [Int]) -> [Frequency] {
        assert(input.count < AKTuningTable.persianNorthIndianMasterSet.count - 1, "internal error: index out of bounds")
        let retVal: [Frequency] = input.map({(number: Int) -> Frequency in
{'fraction_non_alphanumeric': 0.06401502219187435, 'fraction_numerical': 0.052919085011949474, 'mean_word_length': 0.3831444759206799, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 132, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7393995', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1001, 'n_words': 292}