<commit_before>import assign from 'object-assign';
import EventEmitter from 'events';
import dispatcher from '../dispatcher';

let volume = 0;
let muted = false;

const VolumeStore = assign(new EventEmitter, {
  getVolume() {
    return volume;
  },

  isMuted() {
    return snoozed;
  },

  dispatchToken: dispatcher.register(payload => {
    switch (payload.action) {
    case 'setVolume':
      volume = payload.volume;
      VolumeStore.emit('change');
      break;
    case 'mute':
      muted = true;
      VolumeStore.emit('change');
      break;
    case 'unmute':
      muted = false;
      VolumeStore.emit('change');
      break;<commit_msg>fixup! video: implement mute/unmute actions<commit_after>import assign from 'object-assign';
import EventEmitter from 'events';
import dispatcher from '../dispatcher';

let volume = 0;
let muted = false;

const VolumeStore = assign(new EventEmitter, {
  getVolume() {
    return volume;
  },

  isMuted() {
    return muted;
  },

  dispatchToken: dispatcher.register(payload => {
    switch (payload.action) {
    case 'setVolume':
      volume = payload.volume;
      VolumeStore.emit('change');
      break;
    case 'mute':
      muted = true;
      VolumeStore.emit('change');
      break;
    case 'unmute':
      muted = false;
      VolumeStore.emit('change');
      break;
{'fraction_non_alphanumeric': 0.12668665667166418, 'fraction_numerical': 0.0014992503748125937, 'mean_word_length': 2.9732142857142856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2985968', 'n_tokens_mistral': 411, 'n_tokens_neox': 406, 'n_words': 103}