<commit_before># An animation sequence is an array of frames where each frame includes:
# * A pattern
# * A duration (ms)
class AnimationSequence

  # Initializes an animation sequence with a pattern and a duration for that pattern
  # @param pattern A single pattern or array of patterns
  # @param duration A single duration or array of durations
  constructor: (pattern, duration) ->
    @patterns = [].concat(pattern)
    @durations = [].concat(duration)

  # Returns a concatted animation sequence
  concat: (animationSequence) ->
    newPatterns = @patterns.concat(animationSequence.patterns)
    newDurations = @durations.concat(animationSequence.durations)
    return new AnimationSequence(newPatterns, newDurations)<commit_msg>Add set speed method<commit_after># An animation sequence is an array of frames where each frame includes:
# * A pattern
# * A duration (ms)
class AnimationSequence

  # Initializes an animation sequence with a pattern and a duration for that pattern
  # @param pattern A single pattern or array of patterns
  # @param duration A single duration or array of durations
  constructor: (pattern, duration) ->
    @patterns = [].concat(pattern)
    @durations = [].concat(duration)

  # Returns a concatted animation sequence
  concat: (animationSequence) ->
    newPatterns = @patterns.concat(animationSequence.patterns)
    newDurations = @durations.concat(animationSequence.durations)
    return new AnimationSequence(newPatterns, newDurations)

  # Sets the speed for animation interpolation
  setSpeed: (@animationSpeed) ->

  # Interpolates between two frames
  # @param pattern The next pattern to animate to.
  # @param duration The duration that the interpolation should take
  interpolate: (pattern, duration) ->
    # TODO
{'fraction_non_alphanumeric': 0.07592067988668555, 'fraction_numerical': 0.0, 'mean_word_length': 4.501557632398754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6183581', 'n_tokens_mistral': 461, 'n_tokens_neox': 442, 'n_words': 181}