<commit_before>import { Dispatcher } from 'flux';
import UserStore from '../stores/UserStore';

class Dispatch {
  constructor() {
    this._dispatcher = new Dispatcher();
  }
  dispatch(action) {
    this._dispatcher.dispatch(action);
    console.log(action);
    _LTracker.push({
        'actionType': action.actionType,
        'payload': action,
        'system_info': {
          appVersion: window.navigator.appVersion,
          language: window.navigator.language,
          oscpu: window.navigator.oscpu,
        },
        'username': UserStore.user ? UserStore.user.sub : 'not logged in',
    });
  }

  register(stuff) {
    this._dispatcher.register(stuff);
  }
}

export default new Dispatch();
<commit_msg>don't loggly download progress<commit_after>import { Dispatcher } from 'flux';
import UserStore from '../stores/UserStore';
import { UPDATE_PACKAGE_STATUS_DOWNLOADING } from '../constants/ActionTypes';

class Dispatch {
  constructor() {
    this._dispatcher = new Dispatcher();
  }
  dispatch(action) {
    this._dispatcher.dispatch(action);
    console.log(action);
    if (action.actionType != UPDATE_PACKAGE_STATUS_DOWNLOADING) {
      _LTracker.push({
          'actionType': action.actionType,
          'payload': action,
          'system_info': {
            appVersion: window.navigator.appVersion,
            language: window.navigator.language,
            oscpu: window.navigator.oscpu,
          },
          'username': UserStore.user ? UserStore.user.sub : 'not logged in',
      });
    }
  }

  register(stuff) {
    this._dispatcher.register(stuff);
  }
}

export default new Dispatch();

{'fraction_non_alphanumeric': 0.1270718232044199, 'fraction_numerical': 0.0, 'mean_word_length': 2.8534278959810875, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4295104', 'n_tokens_mistral': 496, 'n_tokens_neox': 479, 'n_words': 92}