<commit_before>//
//  Senoid+OCWaveView.swift
//  OCWaveView
//
//  Created by <NAME> on 08/05/20.
//

import Foundation

public class BowlSenoid {
    
    var center: Double
    
    var s = 0.0
    
    private func senoid(_ x: Double) -> Double {
        return sin(s + x)
    }
    
    private func bowl(_ x: Double, center: Double = 0) -> Double {
        let x = abs(x - center)
        return -x * x + (center * center)
    }
    
    public init(center: Double) {
        self.center = center
    }
    
    public func f(_ x: Double) -> Double {
        return bowl(x, center: center) * senoid(x)<commit_msg>Fix wrong import<commit_after>//
//  Senoid+OCWaveView.swift
//  OCWaveView
//
//  Created by <NAME> on 08/05/20.
//

import UIKit

public class BowlSenoid {
    
    var center: Double
    
    var s = 0.0
    
    private func senoid(_ x: Double) -> Double {
        return sin(s + x)
    }
    
    private func bowl(_ x: Double, center: Double = 0) -> Double {
        let x = abs(x - center)
        return -x * x + (center * center)
    }
    
    public init(center: Double) {
        self.center = center
    }
    
    public func f(_ x: Double) -> Double {
        return bowl(x, center: center) * senoid(x)
{'fraction_non_alphanumeric': 0.12297734627831715, 'fraction_numerical': 0.014563106796116505, 'mean_word_length': 1.7797752808988765, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5000186', 'n_tokens_mistral': 436, 'n_tokens_neox': 412, 'n_words': 125}