<commit_before>//
//  ManualAnimator.swift
//  AnyAnimation
//
//  Created by <NAME> on 2017-09-05.
//  Copyright © 2017 Gavrix. All rights reserved.
//

import Foundation

public class ManualAnimator: Animator {
  
  struct EmptyAnimation: Animation {
    var duration: TimeInterval = 0
    func tick(at time: RelativeTimeInterval) {}
  }
  
  var currentAnimation: Animation = EmptyAnimation()
  
  public init() {}
  
  public func run(animation: Animation) {
    self.currentAnimation = animation
    self.time = .zero
  }
  
  public var time: RelativeTimeInterval = .zero {
    didSet {
      self.currentAnimation.tick(at: time)
    }
  }
}<commit_msg>Remove EmptyAnimation type from ManualAnimator<commit_after>//
//  ManualAnimator.swift
//  AnyAnimation
//
//  Created by <NAME> on 2017-09-05.
//  Copyright © 2017 Gavrix. All rights reserved.
//

import Foundation

public class ManualAnimator: Animator {
  
  var currentAnimation: Animation?
  
  public init() {}
  
  public func run(animation: Animation) {
    self.currentAnimation = animation
    self.time = .zero
  }
  
  public var time: RelativeTimeInterval = .zero {
    didSet {
      self.currentAnimation?.tick(at: time)
    }
  }
}
{'fraction_non_alphanumeric': 0.1052195526097763, 'fraction_numerical': 0.020712510356255178, 'mean_word_length': 2.8842443729903535, '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': '3846622', 'n_tokens_mistral': 407, 'n_tokens_neox': 370, 'n_words': 100}