<commit_before>/**
 * Copyright (c) 2015 <NAME> (@localnerve), LocalNerve LLC
 * Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
 */
'use strict';

var React = require('react');
var cx = require('classnames');
var noop = require('lodash/utility/noop');

var ContactSteps = React.createClass({
  propTypes: {
    steps: React.PropTypes.array.isRequired,
    stepCurrent: React.PropTypes.number.isRequired,
    stepFinal: React.PropTypes.number.isRequired,
    failure: React.PropTypes.bool.isRequired,
    resultMessage: React.PropTypes.string,
    retry: React.PropTypes.func.isRequired
  },

  shouldComponentUpdate: function (nextProps) {
    return nextProps.stepCurrent !== this.props.stepCurrent;<commit_msg>fix steps should update condition<commit_after>/**
 * Copyright (c) 2015 <NAME> (@localnerve), LocalNerve LLC
 * Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
 */
'use strict';

var React = require('react');
var cx = require('classnames');
var noop = require('lodash/utility/noop');

var ContactSteps = React.createClass({
  propTypes: {
    steps: React.PropTypes.array.isRequired,
    stepCurrent: React.PropTypes.number.isRequired,
    stepFinal: React.PropTypes.number.isRequired,
    failure: React.PropTypes.bool.isRequired,
    resultMessage: React.PropTypes.string,
    retry: React.PropTypes.func.isRequired
  },

  shouldComponentUpdate: function (nextProps) {
    return nextProps.stepCurrent !== this.props.stepCurrent ||
           nextProps.failure !== this.props.failure;
{'fraction_non_alphanumeric': 0.11891208096141682, 'fraction_numerical': 0.005060088551549652, 'mean_word_length': 4.5508771929824565, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2212144', 'n_tokens_mistral': 468, 'n_tokens_neox': 454, 'n_words': 113}