<commit_before>/** @jsx React.DOM */

define([
  "React"
], function(React) {
  "use strict";

  return React.createClass({
    name: "DeploymentComponent",

    propTypes: {
      model: React.PropTypes.object.isRequired,
      destroyDeployment: React.PropTypes.func.isRequired
    },

    handleDestroyDeployment: function () {
      this.props.destroyDeployment(this.props.model);
    },

    render: function() {
      var model = this.props.model;

      var isDeployingClassSet = React.addons.classSet({
        "text-warning": model.get("currentStep") < model.get("totalSteps")
      });

      /* jshint trailing:false, quotmark:false, newcap:false */
      return (
        // Set `title` on cells that potentially overflow so hovering on the
        // cells will reveal their full contents.
        <tr>
          <td className="overflow-ellipsis" title={model.get("id")}>
            {model.get("id")}
          </td>
          <td>
            <ul className="list-unstyled">
              {model.get("currentActions").map(function(action) {
                return <li key={action.apps}>{action.apps}</li>;
              })}
            </ul>
          </td>
          <td>
            <ul className="list-unstyled">
              {model.get("currentActions").map(function(action) {
                return <li key={action.action}>{action.action}</li>;
              })}
            </ul>
          </td>
          <td className="text-right">
            <span className={isDeployingClassSet}>
              {model.get("currentStep") - 1}
            </span> / {model.get("totalSteps")}
          </td>
          <td className="text-right">
            <button
                onClick={this.handleDestroyDeployment.bind(this)}
                className="btn btn-sm btn-danger">
              Destroy Deployment
            </button>
          </td>
        </tr>
      );
    }
  });
});<commit_msg>Re-adding correct binding<commit_after>/** @jsx React.DOM */

define([
  "React"
], function(React) {
  "use strict";

  return React.createClass({
    name: "DeploymentComponent",

    propTypes: {
      model: React.PropTypes.object.isRequired,
      destroyDeployment: React.PropTypes.func.isRequired
    },

    handleDestroyDeployment: function () {
      this.props.destroyDeployment(this.props.model);
    },

    render: function() {
      var model = this.props.model;

      var isDeployingClassSet = React.addons.classSet({
        "text-warning": model.get("currentStep") < model.get("totalSteps")
      });

      /* jshint trailing:false, quotmark:false, newcap:false */
      return (
        // Set `title` on cells that potentially overflow so hovering on the
        // cells will reveal their full contents.
        <tr>
          <td className="overflow-ellipsis" title={model.get("id")}>
            {model.get("id")}
          </td>
          <td>
            <ul className="list-unstyled">
              {model.get("currentActions").map(function(action) {
                return <li key={action.apps}>{action.apps}</li>;
              })}
            </ul>
          </td>
          <td>
            <ul className="list-unstyled">
              {model.get("currentActions").map(function(action) {
                return <li key={action.action}>{action.action}</li>;
              })}
            </ul>
          </td>
          <td className="text-right">
            <span className={isDeployingClassSet}>
              {model.get("currentStep") - 1}
            </span> / {model.get("totalSteps")}
          </td>
          <td className="text-right">
            <button
                onClick={this.handleDestroyDeployment.bind(null, this)}
                className="btn btn-sm btn-danger">
              Destroy Deployment
            </button>
          </td>
        </tr>
      );
    }
  });
});
{'fraction_non_alphanumeric': 0.14739583333333334, 'fraction_numerical': 0.0005208333333333333, 'mean_word_length': 1.8098024871982443, 'pattern_counts': {'":': 2, '<': 53, '<?xml version=': 0, '>': 51, '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': '4440799', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1080, 'n_words': 199}