<commit_before>;(function (root, factory) {
  if (typeof module !== "undefined" && module.exports) {
    module.exports = factory(require("react"));
  } else if (typeof define === "function" && define.amd) {
    define(["react"], factory);
  } else {
    root.ProgressButton = factory(root.React);
  }
})(this, function (React) {
  "use strict";

  var ProgressButton = React.createClass({displayName: "ProgressButton",
    propTypes: {
      classNamespace: React.PropTypes.string,
      durationError: React.PropTypes.number,
      durationSuccess: React.PropTypes.number,
      onClick: React.PropTypes.func,
      onError: React.PropTypes.func,
      onSuccess: React.PropTypes.func,
      state: React.PropTypes.string,
      type: React.PropTypes.string
    },

    getDefaultProps: function() {
      return {
        classNamespace: 'pb-',
        durationError: 1200,
        durationSuccess: 500,
        state: '',
        onClick: function() {}
      };
    },

    getInitialState: function() {
      return {
        currentState: this.props.state
      };
    },

    render: function() {
      return (
        React.createElement("div", {className: this.props.classNamespace + "container " + this.state.currentState,
          onClick: this.props.onClick},
          React.createElement("button", {type: this.props.type,
            className: this.props.classNamespace + "button"},
            React.createElement("span", null, this.props.children),
            React.createElement("svg", {className: this.props.classNamespace + "progress-circle",<commit_msg>add for prop<commit_after>;(function (root, factory) {
  if (typeof module !== "undefined" && module.exports) {
    module.exports = factory(require("react"));
  } else if (typeof define === "function" && define.amd) {
    define(["react"], factory);
  } else {
    root.ProgressButton = factory(root.React);
  }
})(this, function (React) {
  "use strict";

  var ProgressButton = React.createClass({displayName: "ProgressButton",
    propTypes: {
      classNamespace: React.PropTypes.string,
      durationError: React.PropTypes.number,
      durationSuccess: React.PropTypes.number,
      for: React.PropTypes.string,
      onClick: React.PropTypes.func,
      onError: React.PropTypes.func,
      onSuccess: React.PropTypes.func,
      state: React.PropTypes.string,
      type: React.PropTypes.string
    },

    getDefaultProps: function() {
      return {
        classNamespace: 'pb-',
        durationError: 1200,
        durationSuccess: 500,
        state: '',
        onClick: function() {}
      };
    },

    getInitialState: function() {
      return {
        currentState: this.props.state
      };
    },

    render: function() {
      return (
        React.createElement("div", {className: this.props.classNamespace + "container " + this.state.currentState,
          onClick: this.props.onClick},
          React.createElement("button", {type: this.props.type, for: this.props.for,
            className: this.props.classNamespace + "button"},
            React.createElement("span", null, this.props.children),
            React.createElement("svg", {className: this.props.classNamespace + "progress-circle",
{'fraction_non_alphanumeric': 0.13836086008102214, 'fraction_numerical': 0.004362729822374571, 'mean_word_length': 2.835125448028674, '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': '628855', 'n_tokens_mistral': 906, 'n_tokens_neox': 899, 'n_words': 179}