<commit_before>import React from 'react';

export default class Button extends React.Component {

  render() {
    return (
      <div>
        <form action="http://hack.cwru.edu">
          <input type="submit" value="Register!" />
        </form>
      </div>
    );
  }

}
<commit_msg>Add Button title and externalLink props<commit_after>import PropTypes from 'prop-types';
import React from 'react';

export default class Button extends React.Component {

  renderButton() {
    return (
      <div>
        <button>
          {this.props.title}
        </button>
      </div>
    )
  }

  render() {
    const { externalLink } = this.props;

    return (
      <div>
        {externalLink ? <a target="_blank" href={externalLink}>
          {this.renderButton()}
        </a> : this.renderButton()}
      </div>
    );
  }

}

Button.propTypes = {
  title: PropTypes.string,
  externalLink: PropTypes.string
};

{'fraction_non_alphanumeric': 0.13864628820960698, 'fraction_numerical': 0.0, 'mean_word_length': 2.275, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '6255232', 'n_tokens_mistral': 282, 'n_tokens_neox': 282, 'n_words': 65}