<commit_before>import React from 'react';
import PropTypes from 'prop-types';

const TableBody = ({ children, ...rest }) => {
    return <tbody {...rest}>{children}</tbody>;
};

TableBody.propTypes = {
    children: PropTypes.node.isRequired
};

export default TableBody;<commit_msg>Edit TableBody to handle loading state<commit_after>import React from 'react';
import PropTypes from 'prop-types';

import TableRowBusy from '.TableRowBusy';

const TableBody = ({ children, loading, ...rest }) => {
    return <tbody {...rest}>{loading ? <TableRowBusy /> : children}</tbody>;
};

TableBody.propTypes = {
    children: PropTypes.node.isRequired,
    loading: PropTypes.bool
};

TableBody.defaultProps = {
    loading: false
};

export default TableBody;
{'fraction_non_alphanumeric': 0.1478029294274301, 'fraction_numerical': 0.0, 'mean_word_length': 4.371428571428571, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '7314096', 'n_tokens_mistral': 218, 'n_tokens_neox': 221, 'n_words': 58}