<commit_before>;@ map LOGsub LOGlow LOGhii
;@ ins k k
;@ outs k
opcode Delay, 0, kkkkkkk
  kTime,kMod,kRange,kMode,kIn,kTMod,kout xin
  kCurrent init 0
  kOut init 0
  kin zkr kIn
  ktmod zkr kTMod

  kin K2Y kin

  kON trigger kin, 0, 0
  kOFF trigger kin,0, 1

  if kON != 1 goto Next
    kCurr1 = 0
  Next:
    kCurr1 limit kCurr1, 0, kTime
      if kMode != 1 goto Modes0_2
      kOut1 = kin
      goto Next2
  Modes0_2:
    kOut1 = (kCurr1 < kTime ? 0:kin)
  Next2:
    kCurr1 += 1/kr

  if kOFF != 1 goto Next3
    kCurr2 = 0
    Next3:
    kCurr2 limit kCurr2, 0, kTime
        if kMode != 0 goto Modes1_2
        kOut2 = kin
        goto Next4
    Modes1_2:
      kOut2 = (kCurr2 < kTime ? kin:0)
    Next4:
      kCurr2 += 1/kr

  kOut = kOut1 + kOut2
  kOut limit kOut, 0, 1
  zkw kOut, kout
endop
<commit_msg>Delay (LOGIC) works. It was tough.<commit_after>;@ map LOGsub LOGlow LOGhii
;@ ins k k
;@ outs k
opcode Delay, 0, kkkkkkk
  kTime,kMod,kRange,kMode,kIn,kTMod,kout xin
  kin zkr kIn
  ktmod zkr kTMod

  kTime += kMod * ktmod/127
  if kRange == 0 then
      kTime table kTime, giLOGlow
  elseif kRange == 1 then
      kTime table kTime, giLOGhii
  elseif kRange == 2 then
      kTime table kTime, giLOGsub
  endif

kTime /= 1000

  kin K2Y kin

  kON trigger kin, .5, 0
  kOFF trigger kin,.5, 1

  if kON != 1 goto Next
    kCurr1 = 0
  Next:
    kCurr1 limit kCurr1, 0, kTime
      if kMode != 1 goto Modes0_2
      kOut1 = kin
      goto Next2
  Modes0_2:
    kOut1 = (kCurr1 < kTime ? 0:kin)
  Next2:
    kCurr1 += 1/kr

  if kOFF != 1 goto Next3
    kCurr2 = 0
    Next3:
    kCurr2 limit kCurr2, 0, kTime
        if kMode != 0 goto Modes1_2
        kOut2 = 0
        goto Next4
    Modes1_2:
      kOut2 = (kCurr2 < kTime ? 1:0)
    Next4:
      kCurr2 += 1/kr

  kOut = kOut1 + kOut2
  kOut limit kOut, 0, 1
  zkw kOut, kout
endop

;@ ins a a
;@ outs a
opcode Delay, 0, kkkkkkk
  kTime,kMod,kRange,kMode,kIn,kTMod,kout xin
  setksmps 1
  ain zar kIn
  atmod zar kTMod
  kin = k(ain)
  ktmod = k(atmod)

  kTime += kMod * ktmod/127
  if kRange == 0 then
      kTime table kTime, giLOGlow
  elseif kRange == 1 then
      kTime table kTime, giLOGhii
  elseif kRange == 2 then
      kTime table kTime, giLOGsub
  endif

kTime /= 1000

  kin K2Y kin

  kON trigger kin, .5, 0
  kOFF trigger kin,.5, 1

  if kON != 1 goto Next
    kCurr1 = 0
  Next:
    kCurr1 limit kCurr1, 0, kTime
      if kMode != 1 goto Modes0_2
      kOut1 = kin
      goto Next2
  Modes0_2:
    kOut1 = (kCurr1 < kTime ? 0:kin)
  Next2:
    kCurr1 += 1/kr

  if kOFF != 1 goto Next3
    kCurr2 = 0
    Next3:
    kCurr2 limit kCurr2, 0, kTime
        if kMode != 0 goto Modes1_2
        kOut2 = 0
        goto Next4
    Modes1_2:
      kOut2 = (kCurr2 < kTime ? 1:0)
    Next4:
      kCurr2 += 1/kr

  kOut = kOut1 + kOut2
  kOut limit kOut, 0, 1
  zaw a(kOut), kout
endop

{'fraction_non_alphanumeric': 0.08342059336823734, 'fraction_numerical': 0.061780104712041886, 'mean_word_length': 2.1118349619978285, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 3, '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': '5989785', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1259, 'n_words': 390}