<commit_before>import { Dispatcher } from 'flux';

const dispatcher = new Dispatcher();

export default dispatcher;
export const dispatch = ::dispatcher.dispatch;<commit_msg>dispatcher: add debug logging to dispatcher<commit_after>import { Dispatcher } from 'flux';

const debug = require('debug')('uwave:dispatcher');

class UWaveDispatcher extends Dispatcher {
  dispatch(payload) {
    debug('dispatch', payload.action, payload);
    super.dispatch(payload);
  }
}

const dispatcher = new UWaveDispatcher();

export default dispatcher;
export const dispatch = ::dispatcher.dispatch;
{'fraction_non_alphanumeric': 0.11282051282051282, 'fraction_numerical': 0.0, 'mean_word_length': 6.234567901234568, 'pattern_counts': {'":': 0, '<': 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': '3669606', 'n_tokens_mistral': 168, 'n_tokens_neox': 156, 'n_words': 46}