<commit_before>import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import styles from './Util.css'

// Disables onClick behavior if props.disabled is true.

const Button = props => (
  <button
    onClick={!props.disabled && props.onClick}
    className={classnames({ [styles.disabled]: props.disabled }, styles.btn, props.style)}
  >
    {props.children}
  </button>
)

Button.propTypes = {
  disabled: PropTypes.bool,
  onClick: PropTypes.func.isRequired
}

export default Button<commit_msg>update button prop types<commit_after>import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import styles from './Util.css'

// Disables onClick behavior if props.disabled is true.

const Button = props => (
  <button
    onClick={!props.disabled && props.onClick}
    className={classnames({ [styles.disabled]: props.disabled }, styles.btn, props.style)}
  >
    {props.children}
  </button>
)

Button.propTypes = {
  disabled: PropTypes.bool,
  onClick: PropTypes.func.isRequired,
  style:PropTypes.string
}

export default Button
{'fraction_non_alphanumeric': 0.12129380053908356, 'fraction_numerical': 0.0, 'mean_word_length': 4.355769230769231, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5870885', 'n_tokens_mistral': 323, 'n_tokens_neox': 332, 'n_words': 91}