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

const ButtonBlock = ({ onClick, onExternalClick }) => (
  <div>
    <button className="custom-button" onClick={() => onClick('Text1')}>Set text1</button>
    <button onClick={() => onClick('Text2')}>Set text2</button>
    <button onClick={() => onExternalClick()}>Set text from input</button>
  </div>
);

ButtonBlock.propTypes = {
  onClick: PropTypes.func.isRequired,
  onExternalClick: PropTypes.func.isRequired,
};

export default ButtonBlock;
<commit_msg>Added button to change table content<commit_after>import React, { PropTypes } from 'react';

const ButtonBlock = ({ onClick, onExternalClick, onChangeTable }) => (
  <div>
    <button className="custom-button" onClick={() => onClick('Text1')}>Set text1</button>
    <button onClick={() => onClick('Text2')}>Set text2</button>
    <button onClick={() => onExternalClick()}>Set text from input</button>
    <button onClick={() => onChangeTable()}>Get random numbers</button>
  </div>
);

ButtonBlock.propTypes = {
  onClick: PropTypes.func.isRequired,
  onExternalClick: PropTypes.func.isRequired,
  onChangeTable: PropTypes.func.isRequired,
};

export default ButtonBlock;

{'fraction_non_alphanumeric': 0.16554621848739495, 'fraction_numerical': 0.0067226890756302525, 'mean_word_length': 5.403225806451613, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 30, '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': '2860691', 'n_tokens_mistral': 340, 'n_tokens_neox': 362, 'n_words': 81}