<commit_before>var React = require('react');

var Class = React.createClass({
  render: function(){
    var setMemberStr = function(){
      var length = Object.keys(this.props.info.members).length || 0;
      var word = length === 1 ? " Member" : " Members";
      return (length + word);
    };
    var setQueueLength = function(){
      var length = this.props.info.queue ? Object.keys(this.props.info.queue).length : 0;
      var word = " in Queue";
      return (length + word);
    };
    return (
      <div className="col-sm-4 card">
        <span className="pull-right" onClick={this.props.removeClass.bind(this, this.props.index, this.props.info.name)}> PENCIL </span>
        <div className="col-sm-12 text-center">
          <h2> {this.props.info.name} </h2>
          <h5> {setMemberStr.call(this)} </h5>
          <h5> {setQueueLength.call(this)} </h5>
          <div className="btn btn-primary col-sm-12">
            Enter Queue
          </div>
        </div>
      </div>
    )
  }
});

module.exports = Class;<commit_msg>Bind to null not this<commit_after>var React = require('react');

var Class = React.createClass({
  render: function(){
    var setMemberStr = function(){
      var length = Object.keys(this.props.info.members).length || 0;
      var word = length === 1 ? " Member" : " Members";
      return (length + word);
    };
    var setQueueLength = function(){
      var length = this.props.info.queue ? Object.keys(this.props.info.queue).length : 0;
      var word = " in Queue";
      return (length + word);
    };
    return (
      <div className="col-sm-4 card">
        <span className="pull-right" onClick={this.props.removeClass.bind(null, this.props.index, this.props.info.name)}> PENCIL </span>
        <div className="col-sm-12 text-center">
          <h2> {this.props.info.name} </h2>
          <h5> {setMemberStr.call(this)} </h5>
          <h5> {setQueueLength.call(this)} </h5>
          <div className="btn btn-primary col-sm-12">
            Enter Queue
          </div>
        </div>
      </div>
    )
  }
});

module.exports = Class;
{'fraction_non_alphanumeric': 0.16475095785440613, 'fraction_numerical': 0.013409961685823755, 'mean_word_length': 2.385737439222042, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '7303539', 'n_tokens_mistral': 677, 'n_tokens_neox': 667, 'n_words': 149}