<commit_before>import React, { Component } from 'react';
import PropTypes from 'prop-types';

import Icon from './../atoms/Icon';

class IconButton extends Component {
    render() {
        return (
            <button
                onClick={this.props.onClick}
                className="icon-button">
                {
                    this.props.icon &&
                    <Icon class="big padded">{this.props.icon}</Icon>
                }
                { this.props.children }
            </button>
        );
    }
}

IconButton.propTypes = {
    icon: PropTypes.string,
    onClick: PropTypes.func
};

export default IconButton;<commit_msg>Add children prop to IconButton component<commit_after>import React, { Component } from 'react';
import PropTypes from 'prop-types';

import Icon from './../atoms/Icon';

class IconButton extends Component {
    render() {
        return (
            <button
                onClick={this.props.onClick}
                className="icon-button">
                {
                    this.props.icon &&
                    <Icon class="big padded">{this.props.icon}</Icon>
                }
                { this.props.children }
            </button>
        );
    }
}

IconButton.propTypes = {
    icon: PropTypes.string,
    onClick: PropTypes.func,
    children: PropTypes.any
};

export default IconButton;
{'fraction_non_alphanumeric': 0.11614317019722425, 'fraction_numerical': 0.0, 'mean_word_length': 1.6499032882011606, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '362272', 'n_tokens_mistral': 363, 'n_tokens_neox': 358, 'n_words': 78}