<commit_before>var cm, cmconsole, exampleCode, AudioContext = AudioContext || webkitAudioContext,
isStereo = false, jsdsp, shouldUseJSDSP = false

window.onload = function() {
  cm = CodeMirror( document.querySelector('#editor'), {
    mode:   'javascript',
    value:  'loading...',
    keyMap: 'playground',
    autofocus: true,
    theme:'monokai',
    matchBrackets:true
  })

  cm.setSize( null, '100%' )

  cmconsole = CodeMirror( document.querySelector('#console'), {
    mode:'javascript',
    value:'// genish playground, v0.0.1: https://github.com/charlieroberts/genish.js',
    readOnly:'nocursor',
    theme:'monokai'
  })     

  cmconsole.setSize( null, '100%' )
  genish.export( window )


  let ctxInit = false
  window.onclick = ()=> { 
    if( ctxInit === false ) {
      utilities.createContext()
      ctxInit = true
    }
  }

  utilities.console = cmconsole
  utilities.editor  = cm

  window.play = function( v, name, debug ) { //, memType=Float32Array ) {
    if( name === undefined || name === null ) {
      name = 'ugen' + ( Math.round( Math.random() * 100000 ) )
    }
    if( dat !== undefined ) {
      dat.GUI.__all__.forEach( v => v.destroy() )
      dat.GUI.__all__.length = 0
    }
    var cb = utilities.playWorklet( v, name, debug ) 

    return cb
  }

  Babel.registerPlugin( 'jsdsp', jsdsp )

  let select = document.querySelector( 'select' ),
      files = [
        'intro',
        'thereminish_worklet',         
        'hardsync_worklet',
        'bitcrusher_worklet',
        'enveloping',
        'bandlimitedFM_worklet',
        'biquad_worklet',
        'zeroDelay_worklet',
        'zeroDelayLadder_worklet',
        'slicingAndDicing_worklet', 
        'oneDelayLine',
        'combfilter_worklet',
        'freeverb_worklet',
        'gigaverb_worklet',
        'gardenOfDelays_worklet', 
        'karplusStrong_worklet'
      ]
  
  let currentFile = 'intro'
  select.onchange = function( e ) {<commit_msg>fixed path for combFilter demo<commit_after>var cm, cmconsole, exampleCode, AudioContext = AudioContext || webkitAudioContext,
isStereo = false, jsdsp, shouldUseJSDSP = false

window.onload = function() {
  cm = CodeMirror( document.querySelector('#editor'), {
    mode:   'javascript',
    value:  'loading...',
    keyMap: 'playground',
    autofocus: true,
    theme:'monokai',
    matchBrackets:true
  })

  cm.setSize( null, '100%' )

  cmconsole = CodeMirror( document.querySelector('#console'), {
    mode:'javascript',
    value:'// genish playground, v0.0.1: https://github.com/charlieroberts/genish.js',
    readOnly:'nocursor',
    theme:'monokai'
  })     

  cmconsole.setSize( null, '100%' )
  genish.export( window )


  let ctxInit = false
  window.onclick = ()=> { 
    if( ctxInit === false ) {
      utilities.createContext()
      ctxInit = true
    }
  }

  utilities.console = cmconsole
  utilities.editor  = cm

  window.play = function( v, name, debug ) { //, memType=Float32Array ) {
    if( name === undefined || name === null ) {
      name = 'ugen' + ( Math.round( Math.random() * 100000 ) )
    }
    if( dat !== undefined ) {
      dat.GUI.__all__.forEach( v => v.destroy() )
      dat.GUI.__all__.length = 0
    }
    var cb = utilities.playWorklet( v, name, debug ) 

    return cb
  }

  Babel.registerPlugin( 'jsdsp', jsdsp )

  let select = document.querySelector( 'select' ),
      files = [
        'intro',
        'thereminish_worklet',         
        'hardsync_worklet',
        'bitcrusher_worklet',
        'enveloping',
        'bandlimitedFM_worklet',
        'biquad_worklet',
        'zeroDelay_worklet',
        'zeroDelayLadder_worklet',
        'slicingAndDicing_worklet', 
        'oneDelayLine',
        'combFilter_worklet',
        'freeverb_worklet',
        'gigaverb_worklet',
        'gardenOfDelays_worklet', 
        'karplusStrong_worklet'
      ]
  
  let currentFile = 'intro'
  select.onchange = function( e ) {
{'fraction_non_alphanumeric': 0.13773824650571792, 'fraction_numerical': 0.00914866581956798, 'mean_word_length': 2.634349030470914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '5492748', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1295, 'n_words': 248}