<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import './ConfirmMessage.css';
import Button from './Button';

const ConfirmMessage = props => (
  <div className="confirm-message">
    <p>{props.popup.msg}</p>
    <div className="answer">
      <Button theme="success" onClick={props.onYesClick}>yes</Button>
      <Button theme="error" onClick={props.onNoClick}>no</Button>
    </div>
  </div>
  );

ConfirmMessage.propTypes = {
  popup: PropTypes.shape({
    pop: PropTypes.boolean,
    msg: PropTypes.string,
  }).isRequired,
  onYesClick: PropTypes.func.isRequired,
  onNoClick: PropTypes.func.isRequired,
};

export default ConfirmMessage;<commit_msg>Destructed propsparam<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import './ConfirmMessage.css';
import Button from './Button';

const ConfirmMessage = ({ popup, onYesClick, onNoClick }) => (
  <div className="confirm-message">
    <p>{popup.msg}</p>
    <div className="answer">
      <Button theme="success" onClick={onYesClick}>yes</Button>
      <Button theme="error" onClick={onNoClick}>no</Button>
    </div>
  </div>
  );

ConfirmMessage.propTypes = {
  popup: PropTypes.shape({
    pop: PropTypes.boolean,
    msg: PropTypes.string,
  }).isRequired,
  onYesClick: PropTypes.func.isRequired,
  onNoClick: PropTypes.func.isRequired,
};

export default ConfirmMessage;
{'fraction_non_alphanumeric': 0.1531272465851905, 'fraction_numerical': 0.0, 'mean_word_length': 4.5019762845849804, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '398692', 'n_tokens_mistral': 426, 'n_tokens_neox': 433, 'n_words': 92}