<commit_before>//
//  easing.swift
//
//  Created by CraigGrummitt on 6/08/2014.
//  Copyright (c) 2014 CraigGrummitt. All rights reserved.
//
//  Based on easing.c
//
//  Copyright (c) 2011, Auerhaus Development, LLC
//
//  This program is free software. It comes without any warranty, to
//  the extent permitted by applicable law. You can redistribute it
//  and/or modify it under the terms of the Do What The Fuck You Want
//  To Public License, Version 2, as published by Sam Hocevar. See
//  http://sam.zoy.org/wtfpl/COPYING for more details.
//

import UIKit

let M_PI_2_f = Float(M_PI_2)
let M_PI_f = Float(M_PI)

public typealias AHEasingFunction = (Float)->Float

public func dub(_ num:Float)->Float {
    return (Float(Int32(num)))
}
public func sinFloat(_ num:Float)->Float {
    return sin(num)
}
// Modeled after the line y = x
public func LinearInterpolation(_ p:Float)->Float
{
    return p;
}

// Modeled after the parabola y = x^2
public func  QuadraticEaseIn(_ p:Float)->Float
{
    return p * p;
}

// Modeled after the parabola y = -x^2 + 2x
public func QuadraticEaseOut(_ p:Float)->Float<commit_msg>Silencing warnings by changing M_PI to .pi<commit_after>//
//  easing.swift
//
//  Created by CraigGrummitt on 6/08/2014.
//  Copyright (c) 2014 CraigGrummitt. All rights reserved.
//
//  Based on easing.c
//
//  Copyright (c) 2011, Auerhaus Development, LLC
//
//  This program is free software. It comes without any warranty, to
//  the extent permitted by applicable law. You can redistribute it
//  and/or modify it under the terms of the Do What The Fuck You Want
//  To Public License, Version 2, as published by <NAME>. See
//  http://sam.zoy.org/wtfpl/COPYING for more details.
//

import UIKit

let M_PI_2_f = Float(Double.pi / 2)
let M_PI_f = Float(Double.pi)

public typealias AHEasingFunction = (Float)->Float

public func dub(_ num:Float)->Float {
    return (Float(Int32(num)))
}
public func sinFloat(_ num:Float)->Float {
    return sin(num)
}
// Modeled after the line y = x
public func LinearInterpolation(_ p:Float)->Float
{
    return p;
}

// Modeled after the parabola y = x^2
public func  QuadraticEaseIn(_ p:Float)->Float
{
    return p * p;
}

// Modeled after the parabola y = -x^2 + 2x
public func QuadraticEaseOut(_ p:Float)->Float
{'fraction_non_alphanumeric': 0.11754385964912281, 'fraction_numerical': 0.02017543859649123, 'mean_word_length': 3.2555970149253732, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7023739', 'n_tokens_mistral': 804, 'n_tokens_neox': 766, 'n_words': 271}