<commit_before>import React, { Component } from 'react';

class EventRSVPBtn extends Component {
  render() {
    return (
      <div className="rsvp-btn-group">
        <button>
          Say I'm going
        </button>
      </div>
    );
  }
}

export default EventRSVPBtn;<commit_msg>Logic in RSVP<commit_after>import React, { Component, PropTypes } from 'react';

class EventRSVPBtn extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    const user = this.props.user;
    return (
      <div className="rsvp-btn-group">
        {!user
          ? <p class="note">
              Please log in to RSVP.
            </p>
          : <button>
              Say I'm going
            </button>}
      </div>
    );
  }
}

EventRSVPBtn.propTypes = {
  user: PropTypes.any.isRequired,
};
export default EventRSVPBtn;
{'fraction_non_alphanumeric': 0.12470308788598575, 'fraction_numerical': 0.0, 'mean_word_length': 2.0654545454545454, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5858710', 'n_tokens_mistral': 268, 'n_tokens_neox': 263, 'n_words': 63}