<commit_before>import React, { PropTypes } from 'react';
import RaisedButton from 'material-ui/RaisedButton';

const NextStepButton = ({ phase, onAcknowledge, onFulfill }) => {
  switch (phase) {
    case 0:
      return (
        <RaisedButton
          label="Acknowledge Now"
          onTouchTap={() => onAcknowledge()}
        />
      );
    case 1:
      return (
        <RaisedButton
          label="Submit Fulfillment Info Now"
          onTouchTap={() => onFulfill()}
        />
      );
    case 2:
      return (
        <div>Order has been fulfilled!</div>
      );
    default:
      return (
        <div>Error</div>
      );
  }
};

NextStepButton.propTypes = {
  phase: PropTypes.number,
  onAcknowledge: PropTypes.func,
  onFulfill: PropTypes.func,
};

export default NextStepButton;
<commit_msg>Simplify function assignment<commit_after>import React, { PropTypes } from 'react';
import RaisedButton from 'material-ui/RaisedButton';

const NextStepButton = ({ phase, onAcknowledge, onFulfill }) => {
  switch (phase) {
    case 0:
      return (
        <RaisedButton
          label="Acknowledge Now"
          onTouchTap={onAcknowledge}
        />
      );
    case 1:
      return (
        <RaisedButton
          label="Submit Fulfillment Info Now"
          onTouchTap={onFulfill}
        />
      );
    case 2:
      return (
        <div>Order has been fulfilled!</div>
      );
    default:
      return (
        <div>Error</div>
      );
  }
};

NextStepButton.propTypes = {
  phase: PropTypes.number,
  onAcknowledge: PropTypes.func,
  onFulfill: PropTypes.func,
};

export default NextStepButton;

{'fraction_non_alphanumeric': 0.11771919068056406, 'fraction_numerical': 0.003678724708767627, 'mean_word_length': 2.2189349112426036, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '3307327', 'n_tokens_mistral': 523, 'n_tokens_neox': 516, 'n_words': 108}