<commit_before>local LCS = require("LuaCanSound")
local Synth
do
  local _class_0
  local env, generator_cache, cache
  local _base_0 = {
    load_gen = function(self, gen)
      if not generator_cache[gen] then
        generator_cache[gen] = LCS.generators[gen]:new()
      end
      return generator_cache[gen]
    end,
    generate = function(self, arg)
      local generator = self:load_gen(arg.gen)
      generator:start(arg.freq)
      env:start()
      local length = LCS.settings.sampleRate * arg.length
      local sample = love.sound.newSoundData(length, LCS.settings.sampleRate, 16, 1)
      for i = 0, length - 1 do
        sample:setSample(i, generator:tick() * env:tick() * 0.1)
      end
      return sample
    end,
    play = function(self, arg)
      arg.gen = arg.gen or "WhiteNoise"
      local arg_serialized = arg.gen .. ":" .. arg.freq .. ":" .. arg.length
      if not cache[arg_serialized] then
        cache[arg_serialized] = self:generate(arg)
      end
      return love.audio.play(love.audio.newSource(cache[arg_serialized]))
    end
  }
  _base_0.__index = _base_0
  _class_0 = setmetatable({<commit_msg>Somehow forgot to add<commit_after>local LCS = require("LuaCanSound")
local Synth
do
  local _class_0
  local env, generator_cache, cache
  local _base_0 = {
    load_gen = function(self, gen)
      if not generator_cache[gen] then
        generator_cache[gen] = LCS.generators[gen]:new()
      end
      return generator_cache[gen]
    end,
    generate = function(self, arg)
      local generator = self:load_gen(arg.gen)
      generator:start(arg.freq)
      env:start()
      local length = LCS.settings.sampleRate * arg.length
      local sample = love.sound.newSoundData(length, LCS.settings.sampleRate, 16, 1)
      for i = 0, length - 1 do
        sample:setSample(i, generator:tick() * env:tick() * 0.1)
      end
      return sample
    end,
    play = function(self, arg)
      arg.gen = arg.gen or "Triangle"
      local arg_serialized = arg.gen .. ":" .. arg.freq .. ":" .. arg.length
      if not cache[arg_serialized] then
        cache[arg_serialized] = self:generate(arg)
      end
      return love.audio.play(love.audio.newSource(cache[arg_serialized]))
    end
  }
  _base_0.__index = _base_0
  _class_0 = setmetatable({
{'fraction_non_alphanumeric': 0.11345646437994723, 'fraction_numerical': 0.010554089709762533, 'mean_word_length': 2.8043478260869565, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, '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': '3894390', 'n_tokens_mistral': 760, 'n_tokens_neox': 747, 'n_words': 172}