<commit_before>const createAction = type => payload => ({type, payload})

export const [
  [ADD_CHANNEL, addChannel],
  [ADD_EFFECT_TO_CHANNEL, addEffectToChannel],
  [ADD_EFFECT, addEffect],
  [ADD_INSTRUMENT_TO_CHANNEL, addInstrumentToChannel],
  [ADD_NEW_PATTERN, addNewPattern],
  [DELETE_PATTERN, deletePattern],
  [INSTANTIATE_EFFECT, instantiateEffect],
  [INSTANTIATE_INSTRUMENT, instantiateInstrument],
  [LOAD_PLUGIN_EFFECT, loadPluginEffect],
  [LOAD_PLUGIN_INSTRUMENT, loadPluginInstrument],
  [PATTERN_CELL_CLICK, patternCellClick],
  [REMOVE_CHANNEL, removeChannel],
  [REMOVE_EFFECT_FROM_CHANNEL, removeEffectFromChannel],
  [REMOVE_INSTRUMENT_FROM_CHANNEL, removeInstrumentFromChannel],
  [SET_PATTERN_ACTIVE_POSITION, setPatternActivePosition],
  [SET_PATTERN_PLAYING, setPatternPlaying],
  [SET_PATTERN_Y_LENGTH, setPatternYLength],
  [SET_SONG_ACTIVE_POSITION, setSongActivePosition],
  [SONG_CELL_CLICK, songCellClick],
  [UPDATE_BPM, updateBpm],
  [UPDATE_CONTROL_PAD_ARPEGGIATOR_IS_ON, updateControlPadArpeggiatorIsOn],
  [UPDATE_CONTROL_PAD_ARPEGGIATOR_OCTAVES, updateControlPadArpeggiatorOctaves],
  [UPDATE_CONTROL_PAD_INSTRUMENT, updateControlPadInstrument],
  [UPDATE_CONTROL_PAD_NO_SCALE, updateControlPadNoScale],
  [UPDATE_CONTROL_PAD_OCTAVE, updateControlPadOctave],
  [UPDATE_CONTROL_PAD_PORTAMENTO, updateControlPadPortamento],
  [UPDATE_CONTROL_PAD_RANGE, updateControlPadRange],
  [UPDATE_CONTROL_PAD_SELECTED_ARPEGGIATOR_PATTERN, updateControlPadSelectedArpeggiatorPattern],
  [UPDATE_KEYBOARD_INSTRUMENT, updateKeyboardInstrument],
  [UPDATE_KEYBOARD_OCTAVE, updateKeyboardOctave],
  [UPDATE_KEYBOARD_VOLUME, updateKeyboardVolume],
  [UPDATE_PATTERN_INSTRUMENT, updatePatternInstrument],
  [UPDATE_PATTERN_OCTAVE, updatePatternOctave],
  [UPDATE_PATTERN_VOLUME, updatePatternVolume],
  [UPDATE_PATTERN_X_LENGTH, updatePatternXLength],
  [UPDATE_ROOT_NOTE, updateRootNote],
  [UPDATE_SELECTED_SCALE, updateSelectedScale]
] = (function * (t) { while (true) yield [t = Symbol(), createAction(t)] })()
<commit_msg>Move generator to top of file<commit_after>function* createActions () {
  const createAction = type => payload => ({type, payload})
  while (true) {
    let sym = Symbol()
    yield [sym, createAction(sym)]
  }
}

export const [
  [ADD_CHANNEL, addChannel],
  [ADD_EFFECT_TO_CHANNEL, addEffectToChannel],
  [ADD_EFFECT, addEffect],
  [ADD_INSTRUMENT_TO_CHANNEL, addInstrumentToChannel],
  [ADD_NEW_PATTERN, addNewPattern],
  [DELETE_PATTERN, deletePattern],
  [INSTANTIATE_EFFECT, instantiateEffect],
  [INSTANTIATE_INSTRUMENT, instantiateInstrument],
  [LOAD_PLUGIN_EFFECT, loadPluginEffect],
  [LOAD_PLUGIN_INSTRUMENT, loadPluginInstrument],
  [PATTERN_CELL_CLICK, patternCellClick],
  [REMOVE_CHANNEL, removeChannel],
  [REMOVE_EFFECT_FROM_CHANNEL, removeEffectFromChannel],
  [REMOVE_INSTRUMENT_FROM_CHANNEL, removeInstrumentFromChannel],
  [SET_PATTERN_ACTIVE_POSITION, setPatternActivePosition],
  [SET_PATTERN_PLAYING, setPatternPlaying],
  [SET_PATTERN_Y_LENGTH, setPatternYLength],
  [SET_SONG_ACTIVE_POSITION, setSongActivePosition],
  [SONG_CELL_CLICK, songCellClick],
  [UPDATE_BPM, updateBpm],
  [UPDATE_CONTROL_PAD_ARPEGGIATOR_IS_ON, updateControlPadArpeggiatorIsOn],
  [UPDATE_CONTROL_PAD_ARPEGGIATOR_OCTAVES, updateControlPadArpeggiatorOctaves],
  [UPDATE_CONTROL_PAD_INSTRUMENT, updateControlPadInstrument],
  [UPDATE_CONTROL_PAD_NO_SCALE, updateControlPadNoScale],
  [UPDATE_CONTROL_PAD_OCTAVE, updateControlPadOctave],
  [UPDATE_CONTROL_PAD_PORTAMENTO, updateControlPadPortamento],
  [UPDATE_CONTROL_PAD_RANGE, updateControlPadRange],
  [UPDATE_CONTROL_PAD_SELECTED_ARPEGGIATOR_PATTERN, updateControlPadSelectedArpeggiatorPattern],
  [UPDATE_KEYBOARD_INSTRUMENT, updateKeyboardInstrument],
  [UPDATE_KEYBOARD_OCTAVE, updateKeyboardOctave],
  [UPDATE_KEYBOARD_VOLUME, updateKeyboardVolume],
  [UPDATE_PATTERN_INSTRUMENT, updatePatternInstrument],
  [UPDATE_PATTERN_OCTAVE, updatePatternOctave],
  [UPDATE_PATTERN_VOLUME, updatePatternVolume],
  [UPDATE_PATTERN_X_LENGTH, updatePatternXLength],
  [UPDATE_ROOT_NOTE, updateRootNote],
  [UPDATE_SELECTED_SCALE, updateSelectedScale]
] = createActions()

{'fraction_non_alphanumeric': 0.08741594620557157, 'fraction_numerical': 0.0, 'mean_word_length': 10.106666666666667, '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': '7507297', 'n_tokens_mistral': 1467, 'n_tokens_neox': 1426, 'n_words': 188}