<commit_before>###*
Creates an oscillator function with the given parameters.



@name Oscillator
@constructor
###
Oscillator = (options={}) ->
  {amplitude, period, offset} = options

  amplitude = 1 unless amplitude?
  period = 1 unless period?
  offset = 0 unless offset?

  return (t) ->
    amplitude * Math.cos(Math.TAU * t / period + offset)<commit_msg>Modified in browser at pixie.strd6.com<commit_after>###*
Creates an oscillator function with the given parameters.

@name Oscillator
@constructor
###
Oscillator = (options={}) ->
  {amplitude, period, offset} = options

  amplitude = 1 unless amplitude?
  period = 1 unless period?
  offset = 0 unless offset?

  return (t) ->
    amplitude * Math.cos(Math.TAU * t / period + offset)
{'fraction_non_alphanumeric': 0.12113055181695828, 'fraction_numerical': 0.009421265141318977, 'mean_word_length': 3.9271523178807946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1963701', 'n_tokens_mistral': 243, 'n_tokens_neox': 224, 'n_words': 77}