<commit_before>import BaseActionCreator from './base-action-creator';
import GAMES from '../constants/games';

export default class SculptureActionCreator extends BaseActionCreator {
  // Action types
  static MERGE_STATE = "merge-state";
  static START_GAME = "start-game";
  static START_NEXT_GAME = "start-next-game";
  static RESTORE_STATUS = "restore-status";
  static ANIMATION_FRAME = "animation-frame";
  static FINISH_STATUS_ANIMATION = "finish-status-animation";
  static HANDSHAKE_ACTIVATE = "handshake-activate";
  static HANDSHAKE_DEACTIVATE = "handshake-deactivate";

  /**
   * Sends an action asking the sculpture to merge some state
   * @param {Object} state - The state update to merge
   */
  sendMergeState(state) {
    this._dispatch(SculptureActionCreator.MERGE_STATE, state);
  }

  sendStartGame(game) {
    this._dispatch(SculptureActionCreator.START_GAME, { game });
  }

  sendStartNextGame() {
    this._dispatch(SculptureActionCreator.START_NEXT_GAME);
  }

  sendStartMoleGame() {
    this.sendStartGame(GAMES.MOLE);
  }

  sendStartDiskGame() {
    this.sendStartGame(GAMES.DISK);
  }

  sendStartSimonGame() {
    this.sendStartGame(GAMES.SIMON);
  }

  sendRestoreStatus() {
    this._dispatch(SculptureActionCreator.RESTORE_STATUS);
  }

  sendAnimationFrame(callback) {
    this._dispatch(SculptureActionCreator.ANIMATION_FRAME, { callback });
  }

  sendFinishStatusAnimation() {
    this._dispatch(SculptureActionCreator.FINISH_STATUS_ANIMATION);
  }

  sendHandshakeActivate(user) {
    this._dispatch(SculptureActionCreator.HANDSHAKE_ACTIVATE, { user });
  }

  sendHandshakeDeactivate(user) {
    this._dispatch(SculptureActionCreator.HANDSHAKE_DEACTIVATE, { user });
  }
}

<commit_msg>Remove obsolete action helpers<commit_after>import BaseActionCreator from './base-action-creator';
import GAMES from '../constants/games';

export default class SculptureActionCreator extends BaseActionCreator {
  // Action types
  static MERGE_STATE = "merge-state";
  static START_GAME = "start-game";
  static START_NEXT_GAME = "start-next-game";
  static RESTORE_STATUS = "restore-status";
  static ANIMATION_FRAME = "animation-frame";
  static FINISH_STATUS_ANIMATION = "finish-status-animation";
  static HANDSHAKE_ACTIVATE = "handshake-activate";
  static HANDSHAKE_DEACTIVATE = "handshake-deactivate";

  /**
   * Sends an action asking the sculpture to merge some state
   * @param {Object} state - The state update to merge
   */
  sendMergeState(state) {
    this._dispatch(SculptureActionCreator.MERGE_STATE, state);
  }

  sendStartGame(game) {
    this._dispatch(SculptureActionCreator.START_GAME, { game });
  }

  sendStartNextGame() {
    this._dispatch(SculptureActionCreator.START_NEXT_GAME);
  }

  sendRestoreStatus() {
    this._dispatch(SculptureActionCreator.RESTORE_STATUS);
  }

  sendAnimationFrame(callback) {
    this._dispatch(SculptureActionCreator.ANIMATION_FRAME, { callback });
  }

  sendFinishStatusAnimation() {
    this._dispatch(SculptureActionCreator.FINISH_STATUS_ANIMATION);
  }

  sendHandshakeActivate(user) {
    this._dispatch(SculptureActionCreator.HANDSHAKE_ACTIVATE, { user });
  }

  sendHandshakeDeactivate(user) {
    this._dispatch(SculptureActionCreator.HANDSHAKE_DEACTIVATE, { user });
  }
}


{'fraction_non_alphanumeric': 0.10531135531135531, 'fraction_numerical': 0.0, 'mean_word_length': 4.739054290718038, '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': '7243510', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1063, 'n_words': 167}