<commit_before>import React from 'react';

export default React.createClass({
    propTypes: {
        isInvited: React.PropTypes.bool.isRequired
    },

    render() {
        if (this.props.isInvited) {
            return null;
        }

        return <a onClick={this.props.onClick}>invite</a>;
    }
});<commit_msg>Convert <InviteButton /> to ES6 class<commit_after>import React from 'react';

export default class InviteButton extends React.Component {
    render() {
        if (this.props.isInvited) {
            return null;
        }

        return <a onClick={this.props.onClick}>invite</a>;
    }
};

InviteButton.propTypes = {
    isInvited: React.PropTypes.bool.isRequired
};
{'fraction_non_alphanumeric': 0.12427745664739884, 'fraction_numerical': 0.001445086705202312, 'mean_word_length': 2.5906735751295336, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3623995', 'n_tokens_mistral': 214, 'n_tokens_neox': 210, 'n_words': 43}